awacke1 commited on
Commit
316678f
·
1 Parent(s): e183788

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +19 -1
app.py CHANGED
@@ -41,6 +41,10 @@ digraph G2 {
41
  }
42
  ''')
43
 
 
 
 
 
44
  # Using graph language:
45
  st.graphviz_chart('''
46
  digraph G {
@@ -108,7 +112,7 @@ digraph R {
108
 
109
 
110
  # pydeck example
111
-
112
  df = pd.DataFrame(
113
  np.random.randn(1000, 2) / [50, 50] + [44.9366, -93.6661],
114
  columns=['lat', 'lon'])
@@ -143,6 +147,20 @@ st.pydeck_chart(pdk.Deck(
143
  ],
144
  ))
145
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
146
 
147
  # More graph examples
148
 
 
41
  }
42
  ''')
43
 
44
+
45
+
46
+ st.title('Graphviz Dot Language: https://graphviz.org/doc/info/lang.html')
47
+
48
  # Using graph language:
49
  st.graphviz_chart('''
50
  digraph G {
 
112
 
113
 
114
  # pydeck example
115
+ st.title('Pydeck Example: https://docs.streamlit.io/library/api-reference/charts/st.pydeck_chart')
116
  df = pd.DataFrame(
117
  np.random.randn(1000, 2) / [50, 50] + [44.9366, -93.6661],
118
  columns=['lat', 'lon'])
 
147
  ],
148
  ))
149
 
150
+ st.title('Vega Lite Example: https://docs.streamlit.io/library/api-reference/charts/st.vega_lite_chart ')
151
+ df = pd.DataFrame(
152
+ np.random.randn(200, 3),
153
+ columns=['a', 'b', 'c'])
154
+
155
+ st.vega_lite_chart(df, {
156
+ 'mark': {'type': 'circle', 'tooltip': True},
157
+ 'encoding': {
158
+ 'x': {'field': 'a', 'type': 'quantitative'},
159
+ 'y': {'field': 'b', 'type': 'quantitative'},
160
+ 'size': {'field': 'c', 'type': 'quantitative'},
161
+ 'color': {'field': 'c', 'type': 'quantitative'},
162
+ },
163
+ })
164
 
165
  # More graph examples
166