@cdc/chart 4.23.3 → 4.23.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cdcchart.js +24397 -24193
- package/examples/feature/__data__/area-chart.json +56 -0
- package/examples/{planet-example-data.json → feature/__data__/planet-example-data.json} +16 -4
- package/examples/{area-chart.json → feature/area/area-chart.json} +70 -13
- package/examples/{horizontal-chart-max-increase.json → feature/bar/horizontal-chart-max-increase.json} +10 -4
- package/examples/{horizontal-chart.json → feature/bar/horizontal-chart.json} +10 -4
- package/examples/{horizontal-stacked-bar-chart.json → feature/bar/horizontal-stacked-bar-chart.json} +7 -3
- package/examples/{planet-chart-horizontal-example-config.json → feature/bar/planet-chart-horizontal-example-config.json} +8 -3
- package/examples/{planet-example-config.json → feature/bar/planet-example-config.json} +2 -2
- package/examples/{box-plot.json → feature/boxplot/boxplot.json} +7 -7
- package/examples/feature/boxplot/testing.csv +38 -0
- package/examples/feature/combo/combochart-categories_are_numbers .json +18 -0
- package/examples/{planet-combo-example-config.json → feature/combo/planet-combo-example-config.json} +1 -1
- package/examples/{planet-deviation-config.json → feature/deviation/planet-deviation-config.json} +2 -2
- package/examples/{planet-deviation-data.json → feature/deviation/planet-deviation-data.json} +9 -9
- package/examples/feature/filters/filter-testing.json +178 -0
- package/examples/feature/forecasting/case_date_example.csv +130 -0
- package/examples/feature/forecasting/effective_reproduction.json +202 -0
- package/examples/feature/forecasting/r_data.csv +130 -0
- package/examples/feature/line/line-chart.json +124 -0
- package/examples/{paired-bar-example.json → feature/paired-bar/paired-bar-example.json} +10 -4
- package/examples/{planet-pie-example-config.json → feature/pie/planet-pie-example-config.json} +2 -2
- package/examples/{scatterplot.json → feature/scatterplot/scatterplot.json} +1 -1
- package/examples/{case-rate-example-config.json → feature/tests-case-rate/case-rate-example-config.json} +2 -2
- package/examples/{covid-confidence-example-config.json → feature/tests-covid/covid-confidence-example-config.json} +8 -3
- package/examples/{covid-example-config.json → feature/tests-covid/covid-example-config.json} +7 -3
- package/examples/{cutoff-example-config.json → feature/tests-cutoff/cutoff-example-config.json} +7 -3
- package/examples/{date-exclusions-config.json → feature/tests-date-exclusions/date-exclusions-config.json} +2 -2
- package/examples/{example-bar-chart-nonnumeric.json → feature/tests-non-numerics/example-bar-chart-nonnumeric.json} +1 -1
- package/examples/{planet-pie-example-config-nonnumeric.json → feature/tests-non-numerics/planet-pie-example-config-nonnumeric.json} +2 -2
- package/examples/{sparkline-chart-nonnumeric.json → feature/tests-non-numerics/sparkline-chart-nonnumeric.json} +1 -1
- package/examples/gallery/bar-chart-vertical/combo-line-chart.json +145 -7
- package/examples/gallery/paired-bar/paired-bar-chart.json +1 -0
- package/index.html +73 -49
- package/package.json +2 -2
- package/src/CdcChart.jsx +111 -26
- package/src/components/AreaChart.jsx +105 -70
- package/src/components/BarChart.jsx +45 -28
- package/src/components/BoxPlot.jsx +28 -20
- package/src/components/DataTable.jsx +7 -6
- package/src/components/DeviationBar.jsx +2 -2
- package/src/components/EditorPanel.jsx +252 -193
- package/src/components/Legend.jsx +1 -1
- package/src/components/LineChart.jsx +10 -16
- package/src/components/LinearChart.jsx +30 -34
- package/src/components/PairedBarChart.jsx +6 -6
- package/src/components/PieChart.jsx +2 -4
- package/src/components/SparkLine.jsx +6 -42
- package/src/data/initial-state.js +7 -3
- package/src/index.jsx +2 -1
- package/src/scss/editor-panel.scss +15 -0
- package/src/scss/main.scss +8 -6
- package/examples/box-plot.csv +0 -5
- package/examples/dynamic-legends.json +0 -125
- package/examples/line-chart.json +0 -34
- package/examples/temp-example-config.json +0 -64
- package/examples/temp-example-data.json +0 -130
- package/src/components/Filters.jsx +0 -126
- /package/examples/{age-adjusted-rates.json → feature/__data__/age-adjusted-rates.json} +0 -0
- /package/examples/{new-data.csv → feature/__data__/new-data.csv} +0 -0
- /package/examples/{planet-example-data-max-increase.json → feature/__data__/planet-example-data-max-increase.json} +0 -0
- /package/examples/{Barchart_with_negative.json → feature/bar/Barchart_with_negative.json} +0 -0
- /package/examples/{example-bar-chart.json → feature/bar/example-bar-chart.json} +0 -0
- /package/examples/{stacked-vertical-bar-example-negative.json → feature/bar/stacked-vertical-bar-example-negative.json} +0 -0
- /package/examples/{stacked-vertical-bar-example.json → feature/bar/stacked-vertical-bar-example.json} +0 -0
- /package/examples/{box-plot-data.json → feature/boxplot/box-plot-data.json} +0 -0
- /package/examples/{newdata.json → feature/boxplot/boxplot-data.json} +0 -0
- /package/examples/{line-chart-max-increase.json → feature/line/line-chart-max-increase.json} +0 -0
- /package/examples/{paired-bar-data.json → feature/paired-bar/paired-bar-data.json} +0 -0
- /package/examples/{paired-bar-formatted.json → feature/paired-bar/paired-bar-formatted.json} +0 -0
- /package/examples/{scatterplot-continuous.csv → feature/scatterplot/scatterplot-continuous.csv} +0 -0
- /package/examples/{example-sparkline.json → feature/sparkline/example-sparkline.json} +0 -0
- /package/examples/{big-small-test-bar.json → feature/tests-big-small/big-small-test-bar.json} +0 -0
- /package/examples/{big-small-test-line.json → feature/tests-big-small/big-small-test-line.json} +0 -0
- /package/examples/{big-small-test-negative.json → feature/tests-big-small/big-small-test-negative.json} +0 -0
- /package/examples/{case-rate-example-data.json → feature/tests-case-rate/case-rate-example-data.json} +0 -0
- /package/examples/{covid-example-data-confidence.json → feature/tests-covid/covid-example-data-confidence.json} +0 -0
- /package/examples/{covid-example-data.json → feature/tests-covid/covid-example-data.json} +0 -0
- /package/examples/{cutoff-example-data.json → feature/tests-cutoff/cutoff-example-data.json} +0 -0
- /package/examples/{date-exclusions-data.json → feature/tests-date-exclusions/date-exclusions-data.json} +0 -0
- /package/examples/{example-combo-bar-nonnumeric.json → feature/tests-non-numerics/example-combo-bar-nonnumeric.json} +0 -0
- /package/examples/{line-chart-nonnumeric.json → feature/tests-non-numerics/line-chart-nonnumeric.json} +0 -0
- /package/examples/{planet-example-data-nonnumeric.json → feature/tests-non-numerics/planet-example-data-nonnumeric.json} +0 -0
- /package/examples/{stacked-vertical-bar-example-nonnumerics.json → feature/tests-non-numerics/stacked-vertical-bar-example-nonnumerics.json} +0 -0
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"Date": "01/15/2016",
|
|
4
|
+
"Data 1": "900",
|
|
5
|
+
"Data 2": "135",
|
|
6
|
+
"Data 3": "300",
|
|
7
|
+
"Data 4": "95",
|
|
8
|
+
"Data 5": "120",
|
|
9
|
+
"Data 6": "310"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"Date": "02/15/2016",
|
|
13
|
+
"Data 1": "4000",
|
|
14
|
+
"Data 2": "90",
|
|
15
|
+
"Data 3": "240",
|
|
16
|
+
"Data 4": "60",
|
|
17
|
+
"Data 5": "160",
|
|
18
|
+
"Data 6": "2000"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"Date": "03/15/2016",
|
|
22
|
+
"Data 1": "500",
|
|
23
|
+
"Data 2": "300",
|
|
24
|
+
"Data 3": "290",
|
|
25
|
+
"Data 4": "100",
|
|
26
|
+
"Data 5": "200",
|
|
27
|
+
"Data 6": "250"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"Date": "04/15/2016",
|
|
31
|
+
"Data 1": "1200",
|
|
32
|
+
"Data 2": "160",
|
|
33
|
+
"Data 3": "230",
|
|
34
|
+
"Data 4": "180",
|
|
35
|
+
"Data 5": "160",
|
|
36
|
+
"Data 6": "220"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"Date": "05/15/2016",
|
|
40
|
+
"Data 1": "8000",
|
|
41
|
+
"Data 2": "350",
|
|
42
|
+
"Data 3": "300",
|
|
43
|
+
"Data 4": "150",
|
|
44
|
+
"Data 5": "130",
|
|
45
|
+
"Data 6": "100"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"Date": "06/15/2016",
|
|
49
|
+
"Data 1": "9000",
|
|
50
|
+
"Data 2": "220",
|
|
51
|
+
"Data 3": "320",
|
|
52
|
+
"Data 4": "100",
|
|
53
|
+
"Data 5": "220",
|
|
54
|
+
"Data 6": "300"
|
|
55
|
+
}
|
|
56
|
+
]
|
|
@@ -13,9 +13,9 @@
|
|
|
13
13
|
},
|
|
14
14
|
{
|
|
15
15
|
"name": "Uranus",
|
|
16
|
-
"Radius": "
|
|
16
|
+
"Radius": "100",
|
|
17
17
|
"Diameter": "8",
|
|
18
|
-
"distance": "
|
|
18
|
+
"distance": "40"
|
|
19
19
|
},
|
|
20
20
|
{
|
|
21
21
|
"name": "Neptune",
|
|
@@ -27,7 +27,19 @@
|
|
|
27
27
|
"name": "Earth",
|
|
28
28
|
"Radius": "60",
|
|
29
29
|
"Diameter": "2",
|
|
30
|
-
"distance": "
|
|
30
|
+
"distance": "20"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"name": "Earth",
|
|
34
|
+
"Radius": "60",
|
|
35
|
+
"Diameter": "2",
|
|
36
|
+
"distance": "40"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"name": "Earth",
|
|
40
|
+
"Radius": "60",
|
|
41
|
+
"Diameter": "2",
|
|
42
|
+
"distance": "60"
|
|
31
43
|
},
|
|
32
44
|
{
|
|
33
45
|
"name": "Venus",
|
|
@@ -53,4 +65,4 @@
|
|
|
53
65
|
"Diameter": "0.3",
|
|
54
66
|
"distance": "0"
|
|
55
67
|
}
|
|
56
|
-
]
|
|
68
|
+
]
|
|
@@ -39,11 +39,76 @@
|
|
|
39
39
|
"numTicks": "",
|
|
40
40
|
"label": "Y Axis Example Label"
|
|
41
41
|
},
|
|
42
|
-
"boxplot": [],
|
|
43
42
|
"topAxis": {
|
|
44
43
|
"hasLine": false
|
|
45
44
|
},
|
|
46
|
-
"
|
|
45
|
+
"dataDescription": {
|
|
46
|
+
"horizontal": false,
|
|
47
|
+
"series": false
|
|
48
|
+
},
|
|
49
|
+
"dataFileName": "valid-area-chart.json",
|
|
50
|
+
"dataFileSourceType": "file",
|
|
51
|
+
"filterBehavior": "dropdown",
|
|
52
|
+
"formattedData": [
|
|
53
|
+
{
|
|
54
|
+
"Data 1": "900",
|
|
55
|
+
"Data 2": "135",
|
|
56
|
+
"Data 3": "300",
|
|
57
|
+
"Data 4": "95",
|
|
58
|
+
"Data 5": "120",
|
|
59
|
+
"Data 6": "310",
|
|
60
|
+
"Date": "1/15/2016"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"Data 1": "4000",
|
|
64
|
+
"Data 2": "90",
|
|
65
|
+
"Data 3": "240",
|
|
66
|
+
"Data 4": "60",
|
|
67
|
+
"Data 5": "160",
|
|
68
|
+
"Data 6": "2000",
|
|
69
|
+
"Date": "2/15/2016"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"Data 1": "500",
|
|
73
|
+
"Data 2": "300",
|
|
74
|
+
"Data 3": "290",
|
|
75
|
+
"Data 4": "100",
|
|
76
|
+
"Data 5": "200",
|
|
77
|
+
"Data 6": "250",
|
|
78
|
+
"Date": "3/15/2016"
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"Data 1": "1200",
|
|
82
|
+
"Data 2": "160",
|
|
83
|
+
"Data 3": "230",
|
|
84
|
+
"Data 4": "180",
|
|
85
|
+
"Data 5": "160",
|
|
86
|
+
"Data 6": "220",
|
|
87
|
+
"Date": "4/15/2016"
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"Data 1": "8000",
|
|
91
|
+
"Data 2": "350",
|
|
92
|
+
"Data 3": "300",
|
|
93
|
+
"Data 4": "150",
|
|
94
|
+
"Data 5": "130",
|
|
95
|
+
"Data 6": "100",
|
|
96
|
+
"Date": "5/15/2016"
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"Data 1": "9000",
|
|
100
|
+
"Data 2": "220",
|
|
101
|
+
"Data 3": "320",
|
|
102
|
+
"Data 4": "100",
|
|
103
|
+
"Data 5": "220",
|
|
104
|
+
"Data 6": "300",
|
|
105
|
+
"Date": "6/15/2016"
|
|
106
|
+
}
|
|
107
|
+
],
|
|
108
|
+
"heights": {
|
|
109
|
+
"horizontal": 750,
|
|
110
|
+
"vertical": 300
|
|
111
|
+
},
|
|
47
112
|
"barHeight": 25,
|
|
48
113
|
"barSpace": 20,
|
|
49
114
|
"height": 300,
|
|
@@ -99,11 +164,11 @@
|
|
|
99
164
|
"isPaletteReversed": false,
|
|
100
165
|
"labels": false,
|
|
101
166
|
"dataFormat": {
|
|
167
|
+
"abbreviated": true,
|
|
102
168
|
"commas": true,
|
|
103
169
|
"prefix": "",
|
|
104
170
|
"suffix": " units",
|
|
105
|
-
"useFormat": true
|
|
106
|
-
"abbreviated": true
|
|
171
|
+
"useFormat": true
|
|
107
172
|
},
|
|
108
173
|
"confidenceKeys": {},
|
|
109
174
|
"visual": {
|
|
@@ -171,15 +236,7 @@
|
|
|
171
236
|
"series": [
|
|
172
237
|
{
|
|
173
238
|
"dataKey": "Data 1",
|
|
174
|
-
"type": "
|
|
175
|
-
},
|
|
176
|
-
{
|
|
177
|
-
"dataKey": "Data 2",
|
|
178
|
-
"type": "Bar"
|
|
179
|
-
},
|
|
180
|
-
{
|
|
181
|
-
"dataKey": "Data 3",
|
|
182
|
-
"type": "Bar"
|
|
239
|
+
"type": "Area Chart"
|
|
183
240
|
}
|
|
184
241
|
],
|
|
185
242
|
"description": "This example shows a bar chart created in the visualization editor in WCMS",
|
|
@@ -1,14 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"title": "Planet Radius (Combo Example)",
|
|
3
|
-
"dataUrl": "/examples/planet-example-data-max-increase.json",
|
|
3
|
+
"dataUrl": "/examples/feature/__data__/planet-example-data-max-increase.json",
|
|
4
4
|
"animate": true,
|
|
5
5
|
"animateReplay": true,
|
|
6
|
-
|
|
7
6
|
"visualizationType": "Bar",
|
|
8
7
|
"visualizationSubType": "horizontal",
|
|
9
8
|
"isLollipopChart": false,
|
|
10
9
|
"barHasBorder": "true",
|
|
11
|
-
"series": [
|
|
10
|
+
"series": [
|
|
11
|
+
{
|
|
12
|
+
"dataKey": "Radius"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"dataKey": "Diameter"
|
|
16
|
+
}
|
|
17
|
+
],
|
|
12
18
|
"fontSize": "small",
|
|
13
19
|
"dataFormat": {
|
|
14
20
|
"roundTo": 1,
|
|
@@ -35,4 +41,4 @@
|
|
|
35
41
|
"expanded": false
|
|
36
42
|
},
|
|
37
43
|
"lollipopShape": "circle"
|
|
38
|
-
}
|
|
44
|
+
}
|
|
@@ -1,14 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"title": "Planet Radius (Combo Example)",
|
|
3
|
-
"dataUrl": "/examples/planet-example-data.json",
|
|
3
|
+
"dataUrl": "/examples/feature/__data__/planet-example-data.json",
|
|
4
4
|
"animate": true,
|
|
5
5
|
"animateReplay": true,
|
|
6
|
-
|
|
7
6
|
"visualizationType": "Bar",
|
|
8
7
|
"visualizationSubType": "horizontal",
|
|
9
8
|
"isLollipopChart": false,
|
|
10
9
|
"barHasBorder": "true",
|
|
11
|
-
"series": [
|
|
10
|
+
"series": [
|
|
11
|
+
{
|
|
12
|
+
"dataKey": "Radius"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"dataKey": "Diameter"
|
|
16
|
+
}
|
|
17
|
+
],
|
|
12
18
|
"fontSize": "small",
|
|
13
19
|
"dataFormat": {
|
|
14
20
|
"roundTo": 1,
|
|
@@ -35,4 +41,4 @@
|
|
|
35
41
|
"expanded": false
|
|
36
42
|
},
|
|
37
43
|
"lollipopShape": "circle"
|
|
38
|
-
}
|
|
44
|
+
}
|
package/examples/{horizontal-stacked-bar-chart.json → feature/bar/horizontal-stacked-bar-chart.json}
RENAMED
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"title": "Planet Radius (Bar Example)",
|
|
3
|
-
"dataUrl": "/examples/planet-example-data.json",
|
|
3
|
+
"dataUrl": "/examples/feature/__data__/planet-example-data.json",
|
|
4
4
|
"visualizationType": "Bar",
|
|
5
5
|
"visualizationSubType": "stacked",
|
|
6
|
-
"series": [
|
|
6
|
+
"series": [
|
|
7
|
+
{
|
|
8
|
+
"dataKey": "Radius"
|
|
9
|
+
}
|
|
10
|
+
],
|
|
7
11
|
"fontSize": "medium",
|
|
8
12
|
"dataCutoff": "0.5",
|
|
9
13
|
"orientation": "horizontal",
|
|
@@ -33,4 +37,4 @@
|
|
|
33
37
|
"expanded": false
|
|
34
38
|
},
|
|
35
39
|
"displayNumbersOnBar": true
|
|
36
|
-
}
|
|
40
|
+
}
|
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"title": "Planet Radius (Combo Example)",
|
|
3
|
-
"dataUrl": "/examples/planet-example-data.json",
|
|
3
|
+
"dataUrl": "/examples/feature/__data__/planet-example-data.json",
|
|
4
4
|
"visualizationType": "Bar",
|
|
5
5
|
"visualizationSubType": "regular",
|
|
6
6
|
"isLollipopChart": true,
|
|
7
7
|
"barHasBorder": "true",
|
|
8
|
-
"series": [
|
|
8
|
+
"series": [
|
|
9
|
+
{
|
|
10
|
+
"dataKey": "Radius",
|
|
11
|
+
"type": "Line"
|
|
12
|
+
}
|
|
13
|
+
],
|
|
9
14
|
"fontSize": "small",
|
|
10
15
|
"dataFormat": {
|
|
11
16
|
"roundTo": 1,
|
|
@@ -32,4 +37,4 @@
|
|
|
32
37
|
"expanded": false
|
|
33
38
|
},
|
|
34
39
|
"lollipopShape": "circle"
|
|
35
|
-
}
|
|
40
|
+
}
|
|
@@ -143,7 +143,7 @@
|
|
|
143
143
|
"accent": true,
|
|
144
144
|
"background": true
|
|
145
145
|
},
|
|
146
|
-
"dataUrl": "/examples/planet-example-data.json",
|
|
146
|
+
"dataUrl": "/examples/feature/__data__/planet-example-data.json",
|
|
147
147
|
"visualizationType": "Deviation Bar",
|
|
148
148
|
"series": [
|
|
149
149
|
{
|
|
@@ -153,4 +153,4 @@
|
|
|
153
153
|
}
|
|
154
154
|
],
|
|
155
155
|
"dataCutoff": "0.5"
|
|
156
|
-
}
|
|
156
|
+
}
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"right": 5
|
|
19
19
|
},
|
|
20
20
|
"yAxis": {
|
|
21
|
-
"dataKey": "
|
|
21
|
+
"dataKey": "value",
|
|
22
22
|
"hideAxis": false,
|
|
23
23
|
"displayNumbersOnBar": false,
|
|
24
24
|
"hideLabel": false,
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"tickColor": "#333",
|
|
61
61
|
"isLegendValue": false,
|
|
62
62
|
"numTicks": "",
|
|
63
|
-
"dataKey": "
|
|
63
|
+
"dataKey": "category one",
|
|
64
64
|
"label": "Groups"
|
|
65
65
|
},
|
|
66
66
|
"table": {
|
|
@@ -104,20 +104,20 @@
|
|
|
104
104
|
"accent": true,
|
|
105
105
|
"background": true
|
|
106
106
|
},
|
|
107
|
-
"dataUrl": "/examples/
|
|
107
|
+
"dataUrl": "/examples/feature/boxplot/testing.csv",
|
|
108
108
|
"visualizationType": "Box Plot",
|
|
109
109
|
"description": "Lorem ipsum is placeholder text commonly used in the graphic, print, and publishing industries for previewing layouts and visual mockups.",
|
|
110
110
|
"dataDescription": {
|
|
111
111
|
"horizontal": false,
|
|
112
112
|
"series": false,
|
|
113
113
|
"singleRow": true,
|
|
114
|
-
"xKey": "
|
|
115
|
-
"valueKey": "
|
|
114
|
+
"xKey": "category one",
|
|
115
|
+
"valueKey": "value"
|
|
116
116
|
},
|
|
117
117
|
"series": [
|
|
118
118
|
{
|
|
119
|
-
"dataKey": "
|
|
119
|
+
"dataKey": "value",
|
|
120
120
|
"type": "Bar"
|
|
121
121
|
}
|
|
122
122
|
]
|
|
123
|
-
}
|
|
123
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
category one,value
|
|
2
|
+
Group A,16
|
|
3
|
+
Group A,24
|
|
4
|
+
Group A,32
|
|
5
|
+
Group A,40
|
|
6
|
+
Group A,43
|
|
7
|
+
Group A,72
|
|
8
|
+
Group A,83
|
|
9
|
+
Group A,104
|
|
10
|
+
Group A,137
|
|
11
|
+
Group A,152
|
|
12
|
+
Group A,168
|
|
13
|
+
Group A,174
|
|
14
|
+
Group A,450
|
|
15
|
+
Group B,27
|
|
16
|
+
Group B,42
|
|
17
|
+
Group B,52
|
|
18
|
+
Group B,55
|
|
19
|
+
Group B,60
|
|
20
|
+
Group B,62
|
|
21
|
+
Group B,90
|
|
22
|
+
Group B,131
|
|
23
|
+
Group B,157
|
|
24
|
+
Group B,160
|
|
25
|
+
Group B,200
|
|
26
|
+
Group B,212
|
|
27
|
+
Group C,38
|
|
28
|
+
Group C,44
|
|
29
|
+
Group C,46
|
|
30
|
+
Group C,63
|
|
31
|
+
Group C,76
|
|
32
|
+
Group C,88
|
|
33
|
+
Group C,94
|
|
34
|
+
Group C,167
|
|
35
|
+
Group C,184
|
|
36
|
+
Group C,212
|
|
37
|
+
Group C,232
|
|
38
|
+
Group C,250
|
package/examples/{planet-deviation-config.json → feature/deviation/planet-deviation-config.json}
RENAMED
|
@@ -155,7 +155,7 @@
|
|
|
155
155
|
"accent": true,
|
|
156
156
|
"background": true
|
|
157
157
|
},
|
|
158
|
-
"dataUrl": "/examples/planet-deviation-data.json",
|
|
158
|
+
"dataUrl": "/examples/feature/deviation/planet-deviation-data.json",
|
|
159
159
|
"visualizationType": "Deviation Bar",
|
|
160
160
|
"series": [
|
|
161
161
|
{
|
|
@@ -165,4 +165,4 @@
|
|
|
165
165
|
}
|
|
166
166
|
],
|
|
167
167
|
"dataCutoff": "0.5"
|
|
168
|
-
}
|
|
168
|
+
}
|
package/examples/{planet-deviation-data.json → feature/deviation/planet-deviation-data.json}
RENAMED
|
@@ -1,38 +1,38 @@
|
|
|
1
1
|
[
|
|
2
2
|
{
|
|
3
3
|
"name": "Jupiter",
|
|
4
|
-
"Radius": "
|
|
4
|
+
"Radius": "100"
|
|
5
5
|
},
|
|
6
6
|
{
|
|
7
7
|
"name": "Saturn",
|
|
8
|
-
"Radius": "
|
|
8
|
+
"Radius": "90"
|
|
9
9
|
},
|
|
10
10
|
{
|
|
11
11
|
"name": "Uranus",
|
|
12
|
-
"Radius": "
|
|
12
|
+
"Radius": "95"
|
|
13
13
|
},
|
|
14
14
|
{
|
|
15
15
|
"name": "Neptune",
|
|
16
|
-
"Radius": "
|
|
16
|
+
"Radius": "89"
|
|
17
17
|
},
|
|
18
18
|
{
|
|
19
19
|
"name": "Earth",
|
|
20
|
-
"Radius": "
|
|
20
|
+
"Radius": "92"
|
|
21
21
|
},
|
|
22
22
|
{
|
|
23
23
|
"name": "Venus",
|
|
24
|
-
"Radius": "
|
|
24
|
+
"Radius": "85"
|
|
25
25
|
},
|
|
26
26
|
{
|
|
27
27
|
"name": "Mars",
|
|
28
|
-
"Radius": "
|
|
28
|
+
"Radius": "99"
|
|
29
29
|
},
|
|
30
30
|
{
|
|
31
31
|
"name": "Mercury",
|
|
32
|
-
"Radius": "
|
|
32
|
+
"Radius": "66"
|
|
33
33
|
},
|
|
34
34
|
{
|
|
35
35
|
"name": "Pluto",
|
|
36
|
-
"Radius": "
|
|
36
|
+
"Radius": "79"
|
|
37
37
|
}
|
|
38
38
|
]
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
{
|
|
2
|
+
"type": "chart",
|
|
3
|
+
"title": "Planet Radius (Combo Example)",
|
|
4
|
+
"showTitle": true,
|
|
5
|
+
"theme": "theme-blue",
|
|
6
|
+
"animate": true,
|
|
7
|
+
"fontSize": "medium",
|
|
8
|
+
"lineDatapointStyle": "hover",
|
|
9
|
+
"barHasBorder": "false",
|
|
10
|
+
"isLollipopChart": false,
|
|
11
|
+
"lollipopShape": "circle",
|
|
12
|
+
"lollipopColorStyle": "two-tone",
|
|
13
|
+
"visualizationSubType": "regular",
|
|
14
|
+
"barStyle": "",
|
|
15
|
+
"roundingStyle": "standard",
|
|
16
|
+
"tipRounding": "top",
|
|
17
|
+
"padding": {
|
|
18
|
+
"left": 0,
|
|
19
|
+
"right": 0
|
|
20
|
+
},
|
|
21
|
+
"yAxis": {
|
|
22
|
+
"hideAxis": false,
|
|
23
|
+
"displayNumbersOnBar": false,
|
|
24
|
+
"hideLabel": false,
|
|
25
|
+
"hideTicks": false,
|
|
26
|
+
"size": 50,
|
|
27
|
+
"gridLines": false,
|
|
28
|
+
"enablePadding": false,
|
|
29
|
+
"min": "",
|
|
30
|
+
"max": "",
|
|
31
|
+
"labelColor": "#333",
|
|
32
|
+
"tickLabelColor": "#333",
|
|
33
|
+
"tickColor": "#333",
|
|
34
|
+
"rightHideAxis": false,
|
|
35
|
+
"rightAxisSize": 50,
|
|
36
|
+
"rightLabel": "",
|
|
37
|
+
"rightLabelOffsetSize": 0,
|
|
38
|
+
"rightAxisLabelColor": "#333",
|
|
39
|
+
"rightAxisTickLabelColor": "#333",
|
|
40
|
+
"rightAxisTickColor": "#333",
|
|
41
|
+
"numTicks": "",
|
|
42
|
+
"axisPadding": 0,
|
|
43
|
+
"tickRotation": 0,
|
|
44
|
+
"label": "Measurement (1000km)"
|
|
45
|
+
},
|
|
46
|
+
"boxplot": {
|
|
47
|
+
"plots": [],
|
|
48
|
+
"borders": "true",
|
|
49
|
+
"firstQuartilePercentage": 25,
|
|
50
|
+
"thirdQuartilePercentage": 75,
|
|
51
|
+
"boxWidthPercentage": 40,
|
|
52
|
+
"plotOutlierValues": false,
|
|
53
|
+
"plotNonOutlierValues": true,
|
|
54
|
+
"legend": {
|
|
55
|
+
"showHowToReadText": false,
|
|
56
|
+
"howToReadText": ""
|
|
57
|
+
},
|
|
58
|
+
"labels": {
|
|
59
|
+
"q1": "Lower Quartile",
|
|
60
|
+
"q2": "q2",
|
|
61
|
+
"q3": "Upper Quartile",
|
|
62
|
+
"q4": "q4",
|
|
63
|
+
"minimum": "Minimum",
|
|
64
|
+
"maximum": "Maximum",
|
|
65
|
+
"mean": "Mean",
|
|
66
|
+
"median": "Median",
|
|
67
|
+
"sd": "Standard Deviation",
|
|
68
|
+
"iqr": "Interquartile Range",
|
|
69
|
+
"count": "Count",
|
|
70
|
+
"outliers": "Outliers",
|
|
71
|
+
"values": "Values"
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
"topAxis": {
|
|
75
|
+
"hasLine": true
|
|
76
|
+
},
|
|
77
|
+
"isLegendValue": false,
|
|
78
|
+
"barThickness": 0.35,
|
|
79
|
+
"barHeight": 25,
|
|
80
|
+
"barSpace": 15,
|
|
81
|
+
"heights": {
|
|
82
|
+
"vertical": 300,
|
|
83
|
+
"horizontal": 750
|
|
84
|
+
},
|
|
85
|
+
"xAxis": {
|
|
86
|
+
"type": "categorical",
|
|
87
|
+
"showTargetLabel": true,
|
|
88
|
+
"targetLabel": "Target",
|
|
89
|
+
"hideAxis": false,
|
|
90
|
+
"hideLabel": false,
|
|
91
|
+
"hideTicks": false,
|
|
92
|
+
"size": 75,
|
|
93
|
+
"tickRotation": 30,
|
|
94
|
+
"min": "",
|
|
95
|
+
"max": "",
|
|
96
|
+
"labelColor": "#333",
|
|
97
|
+
"tickLabelColor": "#333",
|
|
98
|
+
"tickColor": "#333",
|
|
99
|
+
"numTicks": "",
|
|
100
|
+
"labelOffset": 65,
|
|
101
|
+
"axisPadding": 0,
|
|
102
|
+
"target": 0,
|
|
103
|
+
"label": "Planet",
|
|
104
|
+
"dataKey": "name"
|
|
105
|
+
},
|
|
106
|
+
"table": {
|
|
107
|
+
"label": "Data Table",
|
|
108
|
+
"expanded": false,
|
|
109
|
+
"limitHeight": false,
|
|
110
|
+
"height": "",
|
|
111
|
+
"caption": "",
|
|
112
|
+
"showDownloadUrl": false,
|
|
113
|
+
"showDataTableLink": true,
|
|
114
|
+
"show": true
|
|
115
|
+
},
|
|
116
|
+
"orientation": "vertical",
|
|
117
|
+
"legend": {
|
|
118
|
+
"behavior": "isolate",
|
|
119
|
+
"singleRow": false,
|
|
120
|
+
"colorCode": "",
|
|
121
|
+
"reverseLabelOrder": false,
|
|
122
|
+
"description": "",
|
|
123
|
+
"dynamicLegend": false,
|
|
124
|
+
"dynamicLegendDefaultText": "Show All",
|
|
125
|
+
"dynamicLegendItemLimit": 5,
|
|
126
|
+
"dynamicLegendItemLimitMessage": "Dynamic Legend Item Limit Hit.",
|
|
127
|
+
"dynamicLegendChartMessage": "Select Options from the Legend",
|
|
128
|
+
"position": "right",
|
|
129
|
+
"hide": false
|
|
130
|
+
},
|
|
131
|
+
"exclusions": {
|
|
132
|
+
"active": false,
|
|
133
|
+
"keys": []
|
|
134
|
+
},
|
|
135
|
+
"palette": "qualitative-bold",
|
|
136
|
+
"isPaletteReversed": false,
|
|
137
|
+
"twoColor": {
|
|
138
|
+
"palette": "monochrome-1",
|
|
139
|
+
"isPaletteReversed": false
|
|
140
|
+
},
|
|
141
|
+
"labels": false,
|
|
142
|
+
"dataFormat": {
|
|
143
|
+
"commas": false,
|
|
144
|
+
"prefix": "",
|
|
145
|
+
"suffix": "km",
|
|
146
|
+
"abbreviated": false,
|
|
147
|
+
"bottomSuffix": "",
|
|
148
|
+
"bottomPrefix": "",
|
|
149
|
+
"bottomAbbreviated": false,
|
|
150
|
+
"roundTo": 1
|
|
151
|
+
},
|
|
152
|
+
"confidenceKeys": {},
|
|
153
|
+
"visual": {
|
|
154
|
+
"border": true,
|
|
155
|
+
"accent": true,
|
|
156
|
+
"background": true
|
|
157
|
+
},
|
|
158
|
+
"filterBehavior": "Apply Button",
|
|
159
|
+
"dataUrl": "/examples/feature/__data__/planet-example-data.json",
|
|
160
|
+
"animateReplay": true,
|
|
161
|
+
"visualizationType": "Combo",
|
|
162
|
+
"series": [
|
|
163
|
+
{
|
|
164
|
+
"dataKey": "Radius",
|
|
165
|
+
"type": "Line",
|
|
166
|
+
"axis": "Right"
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
"dataKey": "Diameter",
|
|
170
|
+
"type": "Bar"
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
"dataKey": "distance",
|
|
174
|
+
"type": "Bar",
|
|
175
|
+
"axis": "Left"
|
|
176
|
+
}
|
|
177
|
+
]
|
|
178
|
+
}
|