forked from christabor/flask_jsondash
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhorizontal_error_bars.json
63 lines (63 loc) · 1.47 KB
/
horizontal_error_bars.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
{
"description": "A bar chart showing the US population distribution of age groups in 2000.",
"data": {"url": "data/population.json"},
"transform": {"filter": "datum.year == 2000"},
"layers": [
{
"mark": "rule",
"encoding": {
"y": {"field": "age","type": "ordinal"},
"x": {
"aggregate": "min",
"field": "people",
"type": "quantitative",
"axis": {"title": "population"}
},
"x2": {
"aggregate": "max",
"field": "people",
"type": "quantitative"
}
}
},
{
"mark": "tick",
"encoding": {
"y": {"field": "age","type": "ordinal"},
"x": {
"aggregate": "min",
"field": "people",
"type": "quantitative",
"axis": {"title": "population"}
},
"size": {"value": 5}
}
},
{
"mark": "tick",
"encoding": {
"y": {"field": "age","type": "ordinal"},
"x": {
"aggregate": "max",
"field": "people",
"type": "quantitative",
"axis": {"title": "population"}
},
"size": {"value": 5}
}
},
{
"mark": "point",
"encoding": {
"y": {"field": "age","type": "ordinal"},
"x": {
"aggregate": "mean",
"field": "people",
"type": "quantitative",
"axis": {"title": "population"}
},
"size": {"value": 2}
}
}
]
}