@cdc/chart 4.23.2 → 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 +42292 -40337
- package/examples/feature/__data__/area-chart.json +56 -0
- package/examples/{planet-example-data.json → feature/__data__/planet-example-data-max-increase.json} +4 -4
- package/examples/feature/__data__/planet-example-data.json +68 -0
- package/examples/feature/area/area-chart.json +244 -0
- package/examples/{example-bar-chart.json → feature/bar/example-bar-chart.json} +4 -1
- package/examples/feature/bar/horizontal-chart-max-increase.json +44 -0
- 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/feature/bar/planet-example-config.json +156 -0
- package/examples/{box-plot.json → feature/boxplot/boxplot.json} +7 -8
- 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/feature/deviation/planet-deviation-config.json +168 -0
- package/examples/feature/deviation/planet-deviation-data.json +38 -0
- 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-max-increase.json +32 -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-continuous.csv → feature/scatterplot/scatterplot-continuous.csv} +3 -3
- package/examples/{scatterplot.json → feature/scatterplot/scatterplot.json} +3 -3
- package/examples/feature/sparkline/example-sparkline.json +76 -0
- package/examples/feature/tests-big-small/big-small-test-bar.json +328 -0
- package/examples/feature/tests-big-small/big-small-test-line.json +328 -0
- package/examples/feature/tests-big-small/big-small-test-negative.json +328 -0
- 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/{line-chart-nonnumeric.json → feature/tests-non-numerics/line-chart-nonnumeric.json} +5 -5
- 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} +2 -2
- package/examples/gallery/bar-chart-horizontal/horizontal-bar-chart.json +31 -172
- package/examples/gallery/bar-chart-vertical/combo-line-chart.json +145 -7
- package/examples/gallery/bar-chart-vertical/vertical-bar-chart-confidence.json +1 -0
- package/examples/gallery/bar-chart-vertical/vertical-bar-chart-with-confidence.json +96 -14
- package/examples/gallery/line/line.json +1 -0
- package/examples/gallery/paired-bar/paired-bar-chart.json +1 -0
- package/index.html +76 -35
- package/package.json +6 -3
- package/src/CdcChart.jsx +245 -106
- package/src/components/AreaChart.jsx +233 -0
- package/src/components/BarChart.jsx +103 -62
- package/src/components/BoxPlot.jsx +39 -18
- package/src/components/DataTable.jsx +26 -21
- package/src/components/DeviationBar.jsx +191 -0
- package/src/components/EditorPanel.jsx +662 -298
- package/src/components/Legend.jsx +59 -46
- package/src/components/LineChart.jsx +12 -36
- package/src/components/LinearChart.jsx +163 -64
- package/src/components/PairedBarChart.jsx +6 -7
- package/src/components/PieChart.jsx +12 -17
- package/src/components/ScatterPlot.jsx +19 -16
- package/src/components/SparkLine.jsx +84 -118
- package/src/components/useIntersectionObserver.jsx +1 -1
- package/src/data/initial-state.js +27 -7
- package/src/hooks/useColorPalette.js +58 -48
- package/src/hooks/useReduceData.js +3 -4
- package/src/index.jsx +3 -2
- package/src/scss/editor-panel.scss +20 -0
- package/src/scss/main.scss +8 -6
- package/src/test/CdcChart.test.jsx +6 -0
- package/examples/box-plot.csv +0 -5
- package/examples/dynamic-legends.json +0 -125
- package/examples/line-chart.json +0 -34
- package/examples/planet-example-config.json +0 -37
- package/examples/temp-example-config.json +0 -64
- package/examples/temp-example-data.json +0 -130
- package/src/components/Filters.jsx +0 -125
- /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/{Barchart_with_negative.json → feature/bar/Barchart_with_negative.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/{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/{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/{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
|
+
]
|
package/examples/{planet-example-data.json → feature/__data__/planet-example-data-max-increase.json}
RENAMED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
{
|
|
3
3
|
"name": "Jupiter",
|
|
4
4
|
"Radius": "10.97",
|
|
5
|
-
"Diameter": "
|
|
5
|
+
"Diameter": "25.1",
|
|
6
6
|
"distance": "0"
|
|
7
7
|
},
|
|
8
8
|
{
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
},
|
|
14
14
|
{
|
|
15
15
|
"name": "Uranus",
|
|
16
|
-
"Radius": "-
|
|
17
|
-
"Diameter": "
|
|
16
|
+
"Radius": "-4",
|
|
17
|
+
"Diameter": "-30",
|
|
18
18
|
"distance": "0"
|
|
19
19
|
},
|
|
20
20
|
{
|
|
@@ -53,4 +53,4 @@
|
|
|
53
53
|
"Diameter": "0.3",
|
|
54
54
|
"distance": "0"
|
|
55
55
|
}
|
|
56
|
-
]
|
|
56
|
+
]
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"name": "Jupiter",
|
|
4
|
+
"Radius": "100",
|
|
5
|
+
"Diameter": "22",
|
|
6
|
+
"distance": "0"
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
"name": "Saturn",
|
|
10
|
+
"Radius": "90",
|
|
11
|
+
"Diameter": "18",
|
|
12
|
+
"distance": "0"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"name": "Uranus",
|
|
16
|
+
"Radius": "100",
|
|
17
|
+
"Diameter": "8",
|
|
18
|
+
"distance": "40"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"name": "Neptune",
|
|
22
|
+
"Radius": "70",
|
|
23
|
+
"Diameter": "7",
|
|
24
|
+
"distance": "0"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"name": "Earth",
|
|
28
|
+
"Radius": "60",
|
|
29
|
+
"Diameter": "2",
|
|
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"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"name": "Venus",
|
|
46
|
+
"Radius": "50",
|
|
47
|
+
"Diameter": "2",
|
|
48
|
+
"distance": "0"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"name": "Mars",
|
|
52
|
+
"Radius": "-40",
|
|
53
|
+
"Diameter": "1",
|
|
54
|
+
"distance": "0"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"name": "Mercury",
|
|
58
|
+
"Radius": "30",
|
|
59
|
+
"Diameter": "0.7",
|
|
60
|
+
"distance": "0"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"name": "Pluto",
|
|
64
|
+
"Radius": "20",
|
|
65
|
+
"Diameter": "0.3",
|
|
66
|
+
"distance": "0"
|
|
67
|
+
}
|
|
68
|
+
]
|
|
@@ -0,0 +1,244 @@
|
|
|
1
|
+
{
|
|
2
|
+
"type": "chart",
|
|
3
|
+
"title": "Example Area Chart",
|
|
4
|
+
"theme": "theme-blue",
|
|
5
|
+
"animate": false,
|
|
6
|
+
"fontSize": "medium",
|
|
7
|
+
"lineDatapointStyle": "hover",
|
|
8
|
+
"barHasBorder": "false",
|
|
9
|
+
"isLollipopChart": false,
|
|
10
|
+
"lollipopShape": "circle",
|
|
11
|
+
"lollipopColorStyle": "two-tone",
|
|
12
|
+
"visualizationSubType": "regular",
|
|
13
|
+
"barStyle": "",
|
|
14
|
+
"roundingStyle": "standard",
|
|
15
|
+
"tipRounding": "top",
|
|
16
|
+
"padding": {
|
|
17
|
+
"left": 5,
|
|
18
|
+
"right": 5
|
|
19
|
+
},
|
|
20
|
+
"yAxis": {
|
|
21
|
+
"hideAxis": false,
|
|
22
|
+
"displayNumbersOnBar": false,
|
|
23
|
+
"hideLabel": false,
|
|
24
|
+
"hideTicks": false,
|
|
25
|
+
"size": "150",
|
|
26
|
+
"gridLines": false,
|
|
27
|
+
"min": "",
|
|
28
|
+
"max": "",
|
|
29
|
+
"labelColor": "#333",
|
|
30
|
+
"tickLabelColor": "#333",
|
|
31
|
+
"tickColor": "#333",
|
|
32
|
+
"rightHideAxis": true,
|
|
33
|
+
"rightAxisSize": 0,
|
|
34
|
+
"rightLabelOffsetSize": 0,
|
|
35
|
+
"rightAxisLabelColor": "#333",
|
|
36
|
+
"rightAxisTickLabelColor": "#333",
|
|
37
|
+
"rightAxisTickColor": "#333",
|
|
38
|
+
"isLegendValue": false,
|
|
39
|
+
"numTicks": "",
|
|
40
|
+
"label": "Y Axis Example Label"
|
|
41
|
+
},
|
|
42
|
+
"topAxis": {
|
|
43
|
+
"hasLine": false
|
|
44
|
+
},
|
|
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
|
+
},
|
|
112
|
+
"barHeight": 25,
|
|
113
|
+
"barSpace": 20,
|
|
114
|
+
"height": 300,
|
|
115
|
+
"xAxis": {
|
|
116
|
+
"type": "date",
|
|
117
|
+
"hideAxis": false,
|
|
118
|
+
"hideLabel": false,
|
|
119
|
+
"hideTicks": false,
|
|
120
|
+
"size": "50",
|
|
121
|
+
"tickRotation": 0,
|
|
122
|
+
"min": "",
|
|
123
|
+
"max": "",
|
|
124
|
+
"labelColor": "#333",
|
|
125
|
+
"tickLabelColor": "#333",
|
|
126
|
+
"tickColor": "#333",
|
|
127
|
+
"isLegendValue": false,
|
|
128
|
+
"numTicks": "9",
|
|
129
|
+
"dataKey": "Date",
|
|
130
|
+
"label": "X Axis Example Label",
|
|
131
|
+
"dateParseFormat": "%m/%d/%Y",
|
|
132
|
+
"dateDisplayFormat": "%m/%d/%Y"
|
|
133
|
+
},
|
|
134
|
+
"table": {
|
|
135
|
+
"label": "Data Type by Date",
|
|
136
|
+
"expanded": false,
|
|
137
|
+
"limitHeight": false,
|
|
138
|
+
"height": "",
|
|
139
|
+
"caption": "",
|
|
140
|
+
"showDownloadUrl": true,
|
|
141
|
+
"show": true,
|
|
142
|
+
"download": true
|
|
143
|
+
},
|
|
144
|
+
"orientation": "vertical",
|
|
145
|
+
"legend": {
|
|
146
|
+
"behavior": "isolate",
|
|
147
|
+
"position": "right",
|
|
148
|
+
"singleRow": false,
|
|
149
|
+
"colorCode": "",
|
|
150
|
+
"reverseLabelOrder": false,
|
|
151
|
+
"description": "",
|
|
152
|
+
"dynamicLegend": false,
|
|
153
|
+
"dynamicLegendDefaultText": "Show All",
|
|
154
|
+
"dynamicLegendItemLimit": 5,
|
|
155
|
+
"dynamicLegendItemLimitMessage": "Dynamic Legend Item Limit Hit.",
|
|
156
|
+
"dynamicLegendChartMessage": "Select Options from the Legend",
|
|
157
|
+
"label": "Type of Data"
|
|
158
|
+
},
|
|
159
|
+
"exclusions": {
|
|
160
|
+
"active": true,
|
|
161
|
+
"keys": []
|
|
162
|
+
},
|
|
163
|
+
"palette": "qualitative-bold",
|
|
164
|
+
"isPaletteReversed": false,
|
|
165
|
+
"labels": false,
|
|
166
|
+
"dataFormat": {
|
|
167
|
+
"abbreviated": true,
|
|
168
|
+
"commas": true,
|
|
169
|
+
"prefix": "",
|
|
170
|
+
"suffix": " units",
|
|
171
|
+
"useFormat": true
|
|
172
|
+
},
|
|
173
|
+
"confidenceKeys": {},
|
|
174
|
+
"visual": {
|
|
175
|
+
"border": true,
|
|
176
|
+
"accent": true,
|
|
177
|
+
"background": true
|
|
178
|
+
},
|
|
179
|
+
"data": [
|
|
180
|
+
{
|
|
181
|
+
"Date": "01/15/2016",
|
|
182
|
+
"Data 1": "900",
|
|
183
|
+
"Data 2": "135",
|
|
184
|
+
"Data 3": "300",
|
|
185
|
+
"Data 4": "95",
|
|
186
|
+
"Data 5": "120",
|
|
187
|
+
"Data 6": "310"
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
"Date": "02/15/2016",
|
|
191
|
+
"Data 1": "4000",
|
|
192
|
+
"Data 2": "90",
|
|
193
|
+
"Data 3": "240",
|
|
194
|
+
"Data 4": "60",
|
|
195
|
+
"Data 5": "160",
|
|
196
|
+
"Data 6": "2000"
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
"Date": "03/15/2016",
|
|
200
|
+
"Data 1": "500",
|
|
201
|
+
"Data 2": "300",
|
|
202
|
+
"Data 3": "290",
|
|
203
|
+
"Data 4": "100",
|
|
204
|
+
"Data 5": "200",
|
|
205
|
+
"Data 6": "250"
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
"Date": "04/15/2016",
|
|
209
|
+
"Data 1": "1200",
|
|
210
|
+
"Data 2": "160",
|
|
211
|
+
"Data 3": "230",
|
|
212
|
+
"Data 4": "180",
|
|
213
|
+
"Data 5": "160",
|
|
214
|
+
"Data 6": "220"
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
"Date": "05/15/2016",
|
|
218
|
+
"Data 1": "8000",
|
|
219
|
+
"Data 2": "350",
|
|
220
|
+
"Data 3": "300",
|
|
221
|
+
"Data 4": "150",
|
|
222
|
+
"Data 5": "130",
|
|
223
|
+
"Data 6": "100"
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
"Date": "06/15/2016",
|
|
227
|
+
"Data 1": "9000",
|
|
228
|
+
"Data 2": "220",
|
|
229
|
+
"Data 3": "320",
|
|
230
|
+
"Data 4": "100",
|
|
231
|
+
"Data 5": "220",
|
|
232
|
+
"Data 6": "300"
|
|
233
|
+
}
|
|
234
|
+
],
|
|
235
|
+
"visualizationType": "Area Chart",
|
|
236
|
+
"series": [
|
|
237
|
+
{
|
|
238
|
+
"dataKey": "Data 1",
|
|
239
|
+
"type": "Area Chart"
|
|
240
|
+
}
|
|
241
|
+
],
|
|
242
|
+
"description": "This example shows a bar chart created in the visualization editor in WCMS",
|
|
243
|
+
"dataCutoff": "0"
|
|
244
|
+
}
|
|
@@ -26,7 +26,10 @@
|
|
|
26
26
|
"series": [
|
|
27
27
|
{ "dataKey": "Data 1", "type": "Bar" },
|
|
28
28
|
{ "dataKey": "Data 2", "type": "Bar" },
|
|
29
|
-
{ "dataKey": "Data 3", "type": "Bar" }
|
|
29
|
+
{ "dataKey": "Data 3", "type": "Bar" },
|
|
30
|
+
{ "dataKey": "Data 4", "type": "Bar" },
|
|
31
|
+
{ "dataKey": "Data 5", "type": "Bar" },
|
|
32
|
+
{ "dataKey": "Data 6", "type": "Bar" }
|
|
30
33
|
],
|
|
31
34
|
"description": "This example shows a bar chart created in the visualization editor in WCMS",
|
|
32
35
|
"dataCutoff": "0"
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
{
|
|
2
|
+
"title": "Planet Radius (Combo Example)",
|
|
3
|
+
"dataUrl": "/examples/feature/__data__/planet-example-data-max-increase.json",
|
|
4
|
+
"animate": true,
|
|
5
|
+
"animateReplay": true,
|
|
6
|
+
"visualizationType": "Bar",
|
|
7
|
+
"visualizationSubType": "horizontal",
|
|
8
|
+
"isLollipopChart": false,
|
|
9
|
+
"barHasBorder": "true",
|
|
10
|
+
"series": [
|
|
11
|
+
{
|
|
12
|
+
"dataKey": "Radius"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"dataKey": "Diameter"
|
|
16
|
+
}
|
|
17
|
+
],
|
|
18
|
+
"fontSize": "small",
|
|
19
|
+
"dataFormat": {
|
|
20
|
+
"roundTo": 1,
|
|
21
|
+
"commas": false,
|
|
22
|
+
"prefix": "",
|
|
23
|
+
"suffix": "km"
|
|
24
|
+
},
|
|
25
|
+
"padding": {
|
|
26
|
+
"left": 0,
|
|
27
|
+
"right": 0
|
|
28
|
+
},
|
|
29
|
+
"yAxis": {
|
|
30
|
+
"label": "Measurement (1000km)",
|
|
31
|
+
"displayNumbersOnBar": false,
|
|
32
|
+
"labelPlacement": "On Date/Category Axis"
|
|
33
|
+
},
|
|
34
|
+
"xAxis": {
|
|
35
|
+
"label": "Planet",
|
|
36
|
+
"dataKey": "name",
|
|
37
|
+
"size": 75
|
|
38
|
+
},
|
|
39
|
+
"table": {
|
|
40
|
+
"label": "Data Table",
|
|
41
|
+
"expanded": false
|
|
42
|
+
},
|
|
43
|
+
"lollipopShape": "circle"
|
|
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
|
+
}
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
{
|
|
2
|
+
"type": "chart",
|
|
3
|
+
"title": "Planet Radius (Bar Example)",
|
|
4
|
+
"theme": "theme-blue",
|
|
5
|
+
"animate": false,
|
|
6
|
+
"fontSize": "medium",
|
|
7
|
+
"lineDatapointStyle": "hover",
|
|
8
|
+
"barHasBorder": "false",
|
|
9
|
+
"isLollipopChart": false,
|
|
10
|
+
"lollipopShape": "circle",
|
|
11
|
+
"lollipopColorStyle": "two-tone",
|
|
12
|
+
"visualizationSubType": "regular",
|
|
13
|
+
"barStyle": "",
|
|
14
|
+
"roundingStyle": "standard",
|
|
15
|
+
"tipRounding": "top",
|
|
16
|
+
"padding": {
|
|
17
|
+
"left": 5,
|
|
18
|
+
"right": 5
|
|
19
|
+
},
|
|
20
|
+
"yAxis": {
|
|
21
|
+
"hideAxis": false,
|
|
22
|
+
"displayNumbersOnBar": false,
|
|
23
|
+
"hideLabel": false,
|
|
24
|
+
"hideTicks": false,
|
|
25
|
+
"size": 50,
|
|
26
|
+
"gridLines": false,
|
|
27
|
+
"min": "",
|
|
28
|
+
"max": "",
|
|
29
|
+
"labelColor": "#333",
|
|
30
|
+
"tickLabelColor": "#333",
|
|
31
|
+
"tickColor": "#333",
|
|
32
|
+
"rightHideAxis": true,
|
|
33
|
+
"rightAxisSize": 50,
|
|
34
|
+
"rightLabel": "testing",
|
|
35
|
+
"rightLabelOffsetSize": 0,
|
|
36
|
+
"rightAxisLabelColor": "#333",
|
|
37
|
+
"rightAxisTickLabelColor": "#333",
|
|
38
|
+
"rightAxisTickColor": "#333",
|
|
39
|
+
"numTicks": "11",
|
|
40
|
+
"axisPadding": 0,
|
|
41
|
+
"tickRotation": 0,
|
|
42
|
+
"label": "Measurement (1000km)",
|
|
43
|
+
"rightSeries": "Diameter"
|
|
44
|
+
},
|
|
45
|
+
"boxplot": {
|
|
46
|
+
"plots": [],
|
|
47
|
+
"borders": "true",
|
|
48
|
+
"firstQuartilePercentage": 25,
|
|
49
|
+
"thirdQuartilePercentage": 75,
|
|
50
|
+
"boxWidthPercentage": 40,
|
|
51
|
+
"plotOutlierValues": false,
|
|
52
|
+
"plotNonOutlierValues": true,
|
|
53
|
+
"legend": {
|
|
54
|
+
"showHowToReadText": false,
|
|
55
|
+
"howToReadText": ""
|
|
56
|
+
},
|
|
57
|
+
"labels": {
|
|
58
|
+
"q1": "Lower Quartile",
|
|
59
|
+
"q2": "q2",
|
|
60
|
+
"q3": "Upper Quartile",
|
|
61
|
+
"q4": "q4",
|
|
62
|
+
"minimum": "Minimum",
|
|
63
|
+
"maximum": "Maximum",
|
|
64
|
+
"mean": "Mean",
|
|
65
|
+
"median": "Median",
|
|
66
|
+
"sd": "Standard Deviation",
|
|
67
|
+
"iqr": "Interquartile Range",
|
|
68
|
+
"count": "Count",
|
|
69
|
+
"outliers": "Outliers",
|
|
70
|
+
"values": "Values"
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
"topAxis": {
|
|
74
|
+
"hasLine": false
|
|
75
|
+
},
|
|
76
|
+
"isLegendValue": false,
|
|
77
|
+
"barThickness": 0.35,
|
|
78
|
+
"barHeight": 25,
|
|
79
|
+
"barSpace": 15,
|
|
80
|
+
"heights": {
|
|
81
|
+
"vertical": 300,
|
|
82
|
+
"horizontal": 405
|
|
83
|
+
},
|
|
84
|
+
"xAxis": {
|
|
85
|
+
"type": "categorical",
|
|
86
|
+
"hideAxis": false,
|
|
87
|
+
"hideLabel": false,
|
|
88
|
+
"hideTicks": false,
|
|
89
|
+
"size": 75,
|
|
90
|
+
"tickRotation": "0",
|
|
91
|
+
"min": "",
|
|
92
|
+
"max": "",
|
|
93
|
+
"labelColor": "#333",
|
|
94
|
+
"tickLabelColor": "#333",
|
|
95
|
+
"tickColor": "#333",
|
|
96
|
+
"numTicks": "",
|
|
97
|
+
"labelOffset": 65,
|
|
98
|
+
"axisPadding": 0,
|
|
99
|
+
"label": "Planet",
|
|
100
|
+
"dataKey": "name"
|
|
101
|
+
},
|
|
102
|
+
"table": {
|
|
103
|
+
"label": "Data Table",
|
|
104
|
+
"expanded": false,
|
|
105
|
+
"limitHeight": false,
|
|
106
|
+
"height": "",
|
|
107
|
+
"caption": "",
|
|
108
|
+
"showDownloadUrl": false,
|
|
109
|
+
"show": true
|
|
110
|
+
},
|
|
111
|
+
"orientation": "horizontal",
|
|
112
|
+
"legend": {
|
|
113
|
+
"behavior": "isolate",
|
|
114
|
+
"position": "right",
|
|
115
|
+
"singleRow": false,
|
|
116
|
+
"colorCode": "",
|
|
117
|
+
"reverseLabelOrder": false,
|
|
118
|
+
"description": "",
|
|
119
|
+
"dynamicLegend": false,
|
|
120
|
+
"dynamicLegendDefaultText": "Show All",
|
|
121
|
+
"dynamicLegendItemLimit": 5,
|
|
122
|
+
"dynamicLegendItemLimitMessage": "Dynamic Legend Item Limit Hit.",
|
|
123
|
+
"dynamicLegendChartMessage": "Select Options from the Legend",
|
|
124
|
+
"hide": false
|
|
125
|
+
},
|
|
126
|
+
"exclusions": {
|
|
127
|
+
"active": false,
|
|
128
|
+
"keys": []
|
|
129
|
+
},
|
|
130
|
+
"palette": "qualitative-bold",
|
|
131
|
+
"isPaletteReversed": false,
|
|
132
|
+
"labels": false,
|
|
133
|
+
"dataFormat": {
|
|
134
|
+
"commas": false,
|
|
135
|
+
"prefix": "",
|
|
136
|
+
"suffix": "km",
|
|
137
|
+
"abbreviated": false,
|
|
138
|
+
"roundTo": 1
|
|
139
|
+
},
|
|
140
|
+
"confidenceKeys": {},
|
|
141
|
+
"visual": {
|
|
142
|
+
"border": true,
|
|
143
|
+
"accent": true,
|
|
144
|
+
"background": true
|
|
145
|
+
},
|
|
146
|
+
"dataUrl": "/examples/feature/__data__/planet-example-data.json",
|
|
147
|
+
"visualizationType": "Deviation Bar",
|
|
148
|
+
"series": [
|
|
149
|
+
{
|
|
150
|
+
"dataKey": "Radius",
|
|
151
|
+
"type": "Deviation Bar",
|
|
152
|
+
"axis": "Left"
|
|
153
|
+
}
|
|
154
|
+
],
|
|
155
|
+
"dataCutoff": "0.5"
|
|
156
|
+
}
|