peter2000 commited on
Commit
a784fd2
1 Parent(s): 8dc5cc8

Update apps/sdg_pd.py

Browse files
Files changed (1) hide show
  1. apps/sdg_pd.py +12 -3
apps/sdg_pd.py CHANGED
@@ -17,9 +17,18 @@ def app():
17
 
18
  with st.spinner("👑 create visualisation"):
19
  fig = px.scatter_3d(
20
- df_osdg, x='coord_x', y='coord_y', z='coord_z',
21
- color='labels',
22
  opacity = .5, hover_data=[keys])
23
  fig.update_scenes(xaxis_visible=False, yaxis_visible=False,zaxis_visible=False )
24
  fig.update_traces(marker_size=4)
25
- st.plotly_chart(fig)
 
 
 
 
 
 
 
 
 
 
 
17
 
18
  with st.spinner("👑 create visualisation"):
19
  fig = px.scatter_3d(
20
+ df_osdg, x='coord_x', y='coord_y', z='coord_z',
 
21
  opacity = .5, hover_data=[keys])
22
  fig.update_scenes(xaxis_visible=False, yaxis_visible=False,zaxis_visible=False )
23
  fig.update_traces(marker_size=4)
24
+ st.plotly_chart(fig)
25
+
26
+ if st.button("Embed"):
27
+ with st.spinner("👑 create visualisation"):
28
+ fig = px.scatter_3d(
29
+ df_osdg, x='coord_x', y='coord_y', z='coord_z',
30
+ color='labels',
31
+ opacity = .5, hover_data=[keys])
32
+ fig.update_scenes(xaxis_visible=False, yaxis_visible=False,zaxis_visible=False )
33
+ fig.update_traces(marker_size=4)
34
+ st.plotly_chart(fig)