-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathconfig.js
57 lines (57 loc) · 1.23 KB
/
config.js
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
config = {
"essential": {
"graphic_data_url": "data.csv",
"legendLabels": { "min": "Moved travel to work area (TTWA)", "max": "Moved region" },
//the keys match the column names
"colour_palette": ["#118C7B", "#206095"],
"sourceText": "Office for National Statistics (ONS) analysis using Longitudinal Education Outcomes (LEO) from the Department for Education (DfE)",
"accessibleSummary":
"Here is the screenreader text describing the chart.",
"numberFormat": ".0%",
"xAxisTickFormat": ".0%",
"xAxisLabel": "Percentage",
"xDomain": [0.2,0.95],
// either auto or a custom domain as an array e.g [0,100]
"showDataLabels": false
},
"optional": {
"chart_every": {
"sm" : 1,
"md" : 2,
"lg" : 2
},
"dropYAxis": true,
"margin": {
"sm": {
"top": 20,
"right": 20,
"bottom": 20,
"left": 140
},
"md": {
"top": 20,
"right": 20,
"bottom": 20,
"left": 140
},
"lg": {
"top": 20,
"right": 20,
"bottom": 40,
"left": 150
}
},
"seriesHeight": {
"sm": 40,
"md": 40,
"lg": 40
},
"xAxisTicks": {
"sm": 5,
"md": 5,
"lg": 5
},
"mobileBreakpoint": 510,
"mediumBreakpoint": 600
}
};