Skip to content

Instantly share code, notes, and snippets.

@cereniyim
Created January 17, 2020 10:02
Show Gist options
  • Save cereniyim/58928368420645a2aaa9ee9ae6e86ed6 to your computer and use it in GitHub Desktop.
Save cereniyim/58928368420645a2aaa9ee9ae6e86ed6 to your computer and use it in GitHub Desktop.
Gapminder's animated bubble chart
px.scatter(gapminder_df,
x="Income",
y="Life Expectancy",
size="Population",
size_max=60,
color="Region",
hover_name="Country",
animation_frame="Year",
animation_group="Country",
color_discrete_sequence=["#FF69B4", "#87CEFA",
"#FFFF00", "#32CD32"],
log_x=True,
range_x=[100, 100000],
range_y=[25, 90])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment