首页 > 解决方案 > 更改气泡图中气泡的大小

问题描述

我正在创建一个气泡图,其中每个气泡都代表一个国家。

我的代码如下所示:

from bubbly.bubbly import bubbleplot

figure = bubbleplot(dataset=df_subset1, x_column="GDP per capita (constant 2005 US$)", 

y_column="Fertility rate, total (births per woman)", 

bubble_column="CountryName", time_column="Year", color_column="CountryCode", 

x_title="GDP per capita", y_title="Fertility",

x_logscale=True, scale_bubble=3, height=650)

iplot(figure, config={'scrollzoom':True})

如何更改气泡的大小?

标签: python

解决方案


推荐阅读