File tree 2 files changed +46
-37
lines changed
streamlit_g2/frontend/src
2 files changed +46
-37
lines changed Original file line number Diff line number Diff line change 12
12
"""
13
13
14
14
"""
15
- ----
16
15
## Bar Chart
17
16
"""
18
17
36
35
37
36
g2 (options = options )
38
37
39
- """
38
+ source = st .expander ("Source Code" )
39
+ source .markdown ("""
40
40
```py
41
41
import streamlit as st
42
42
from streamlit_g2 import g2
61
61
62
62
g2(options=options)
63
63
```
64
- """
64
+ """ )
65
+
66
+
65
67
66
68
"""
67
- ----
68
69
## Column Chart
69
70
"""
70
71
93
94
94
95
g2 (options = options )
95
96
96
- """
97
+ source = st .expander ("Source Code" )
98
+ source .markdown ("""
97
99
```py
98
100
import streamlit as st
99
101
from streamlit_g2 import g2
123
125
124
126
g2(options=options)
125
127
```
126
- """
128
+ """ )
129
+
127
130
128
131
129
132
"""
130
- ----
131
133
## Line Chart
132
134
"""
133
135
147
149
148
150
g2 (options = options )
149
151
150
- """
152
+ source = st .expander ("Source Code" )
153
+ source .markdown ("""
151
154
```py
152
155
import streamlit as st
153
156
from streamlit_g2 import g2
168
171
169
172
g2(options=options)
170
173
```
171
- """
174
+ """ )
175
+
172
176
173
177
174
178
"""
175
- ----
176
179
## Area Chart
177
180
"""
178
181
192
195
193
196
g2 (options = options )
194
197
195
- """
198
+ source = st .expander ("Source Code" )
199
+ source .markdown ("""
196
200
```py
197
201
import streamlit as st
198
202
from streamlit_g2 import g2
213
217
214
218
g2(options=options)
215
219
```
216
- """
220
+ """ )
221
+
217
222
218
223
219
224
"""
220
- ----
221
225
## Pie Chart
222
226
"""
223
227
224
228
options = {
229
+ "autoFit" : True ,
230
+ "theme" : "dark" ,
225
231
"type" : "interval" ,
226
232
"coordinate" : {
227
233
"type" : "theta"
262
268
263
269
g2 (options = options )
264
270
265
- """
271
+ source = st .expander ("Source Code" )
272
+ source .markdown ("""
266
273
```py
267
274
import streamlit as st
268
275
from streamlit_g2 import g2
308
315
309
316
g2(options=options)
310
317
```
311
- """
318
+ """ )
312
319
313
320
314
321
315
322
"""
316
- ----
317
323
## DualAxes Chart
318
324
"""
319
325
475
481
476
482
g2 (options = options )
477
483
478
- """
484
+ source = st .expander ("Source Code" )
485
+ source .markdown ("""
479
486
```py
480
487
import streamlit as st
481
488
from streamlit_g2 import g2
638
645
639
646
g2(options=options)
640
647
```
641
- """
648
+ """ )
649
+
642
650
643
651
644
652
"""
645
- ----
646
653
## Scatter Chart
647
654
"""
648
655
664
671
665
672
g2 (options = options )
666
673
667
- """
674
+ source = st .expander ("Source Code" )
675
+ source .markdown ("""
668
676
```py
669
677
import streamlit as st
670
678
from streamlit_g2 import g2
687
695
688
696
g2(options=options)
689
697
```
690
- """
698
+ """ )
691
699
692
700
693
701
694
702
"""
695
- ----
696
703
## Liquid Chart
697
704
"""
698
705
712
719
713
720
g2 (options = options )
714
721
715
- """
722
+ source = st .expander ("Source Code" )
723
+ source .markdown ("""
716
724
```py
717
725
import streamlit as st
718
726
from streamlit_g2 import g2
733
741
734
742
g2(options=options)
735
743
```
736
- """
744
+ """ )
737
745
738
746
739
747
740
748
"""
741
- ----
742
749
## Ring Chart
743
750
"""
744
751
810
817
811
818
g2 (options = options )
812
819
813
- """
820
+ source = st .expander ("Source Code" )
821
+ source .markdown ("""
814
822
```py
815
823
import streamlit as st
816
824
from streamlit_g2 import g2
883
891
884
892
g2(options=options)
885
893
```
886
- """
894
+ """ )
895
+
887
896
888
897
889
898
"""
890
- ----
891
899
## Boxplot
892
900
"""
893
901
914
922
915
923
g2 (options = options )
916
924
917
- """
925
+ source = st .expander ("Source Code" )
926
+ source .markdown ("""
918
927
```py
919
928
import streamlit as st
920
929
from streamlit_g2 import g2
942
951
943
952
g2(options=options)
944
953
```
945
- """
954
+ """ )
946
955
947
956
948
957
949
958
"""
950
- ----
951
959
## Funnel Chart
952
960
"""
953
961
1002
1010
1003
1011
g2 (options = options )
1004
1012
1005
- """
1013
+ source = st .expander ("Source Code" )
1014
+ source .markdown ("""
1006
1015
```py
1007
1016
import streamlit as st
1008
1017
from streamlit_g2 import g2
1058
1067
1059
1068
g2(options=options)
1060
1069
```
1061
- """
1070
+ """ )
1062
1071
1063
1072
1064
1073
1065
1074
"""
1066
- ----
1067
1075
## Histogram
1068
1076
"""
1069
1077
1096
1104
1097
1105
g2 (options = options )
1098
1106
1099
- """
1107
+ source = st .expander ("Source Code" )
1108
+ source .markdown ("""
1100
1109
```py
1101
1110
import streamlit as st
1102
1111
from streamlit_g2 import g2
1130
1139
1131
1140
g2(options=options)
1132
1141
```
1133
- """
1142
+ """ )
Original file line number Diff line number Diff line change 1
- import React , { useEffect } from 'react' ;
1
+ import React from 'react' ;
2
2
import {
3
3
Streamlit ,
4
4
withStreamlitConnection ,
You can’t perform that action at this time.
0 commit comments