Skip to content

Commit 716a707

Browse files
authored
Add files via upload
1 parent c1d28a1 commit 716a707

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
import plotly.express as px
2+
3+
data = px.data.gapminder()
4+
5+
fig = px.scatter(
6+
data,
7+
x='gdpPercap',
8+
y='lifeExp',
9+
animation_frame='year',
10+
animation_group='country',
11+
size='pop',
12+
color='continent',
13+
hover_name='country',
14+
log_x=True,
15+
size_max=60,
16+
range_x=[200,600],
17+
range_y=[20, 90],
18+
title='Animated Scatter Plot: Life Expectancy vs GDP Per Capita'
19+
)
20+
fig.show()

0 commit comments

Comments
 (0)