Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
python-visualization
GitHub Repository: python-visualization/folium
Path: blob/main/examples/data/vis2.json
1588 views
1
{
2
"axes": [
3
{
4
"scale": "x",
5
"title": "Wind Speed (m/s)",
6
"type": "x"
7
},
8
{
9
"scale": "y",
10
"title": "# of Obs",
11
"type": "y"
12
}
13
],
14
"data": [
15
{
16
"name": "table",
17
"values": [
18
{
19
"col": "data",
20
"idx": 0,
21
"val": 85
22
},
23
{
24
"col": "data",
25
"idx": 1,
26
"val": 251
27
},
28
{
29
"col": "data",
30
"idx": 2,
31
"val": 389
32
},
33
{
34
"col": "data",
35
"idx": 3,
36
"val": 455
37
},
38
{
39
"col": "data",
40
"idx": 4,
41
"val": 569
42
},
43
{
44
"col": "data",
45
"idx": 5,
46
"val": 473
47
},
48
{
49
"col": "data",
50
"idx": 6,
51
"val": 434
52
},
53
{
54
"col": "data",
55
"idx": 7,
56
"val": 503
57
},
58
{
59
"col": "data",
60
"idx": 8,
61
"val": 500
62
},
63
{
64
"col": "data",
65
"idx": 9,
66
"val": 344
67
},
68
{
69
"col": "data",
70
"idx": 10,
71
"val": 233
72
},
73
{
74
"col": "data",
75
"idx": 11,
76
"val": 83
77
}
78
]
79
},
80
{
81
"name": "stats",
82
"source": "table",
83
"transform": [
84
{
85
"keys": [
86
"data.idx"
87
],
88
"type": "facet"
89
},
90
{
91
"type": "stats",
92
"value": "data.val"
93
}
94
]
95
}
96
],
97
"height": 200,
98
"legends": [],
99
"marks": [
100
{
101
"from": {
102
"data": "table",
103
"transform": [
104
{
105
"keys": [
106
"data.col"
107
],
108
"type": "facet"
109
},
110
{
111
"height": "data.val",
112
"point": "data.idx",
113
"type": "stack"
114
}
115
]
116
},
117
"marks": [
118
{
119
"properties": {
120
"enter": {
121
"fill": {
122
"field": "data.col",
123
"scale": "color"
124
},
125
"width": {
126
"band": true,
127
"offset": -1,
128
"scale": "x"
129
},
130
"x": {
131
"field": "data.idx",
132
"scale": "x"
133
},
134
"y": {
135
"field": "y",
136
"scale": "y"
137
},
138
"y2": {
139
"field": "y2",
140
"scale": "y"
141
}
142
}
143
},
144
"type": "rect"
145
}
146
],
147
"type": "group"
148
}
149
],
150
"padding": "auto",
151
"scales": [
152
{
153
"domain": {
154
"data": "table",
155
"field": "data.idx"
156
},
157
"name": "x",
158
"range": "width",
159
"type": "ordinal",
160
"zero": false
161
},
162
{
163
"domain": {
164
"data": "stats",
165
"field": "sum"
166
},
167
"name": "y",
168
"nice": true,
169
"range": "height"
170
},
171
{
172
"domain": {
173
"data": "table",
174
"field": "data.col"
175
},
176
"name": "color",
177
"range": "category20",
178
"type": "ordinal"
179
}
180
],
181
"width": 400
182
}
183