@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
|
@@ -5,10 +5,7 @@
|
|
|
5
5
|
"fontSize": "small",
|
|
6
6
|
"lineDatapointStyle": "hover",
|
|
7
7
|
"barHasBorder": "false",
|
|
8
|
-
"padding": {
|
|
9
|
-
"left": 5,
|
|
10
|
-
"right": 5
|
|
11
|
-
},
|
|
8
|
+
"padding": { "left": 5, "right": 5 },
|
|
12
9
|
"yAxis": {
|
|
13
10
|
"size": 50,
|
|
14
11
|
"gridLines": false,
|
|
@@ -18,124 +15,40 @@
|
|
|
18
15
|
"fontSize": "small",
|
|
19
16
|
"lineDatapointStyle": "hover",
|
|
20
17
|
"barHasBorder": "false",
|
|
21
|
-
"padding": {
|
|
22
|
-
|
|
23
|
-
"right": 5
|
|
24
|
-
},
|
|
25
|
-
"yAxis": {
|
|
26
|
-
"size": 50,
|
|
27
|
-
"gridLines": false,
|
|
28
|
-
"label": "X-Axis Example Label",
|
|
29
|
-
"numTicks": "10"
|
|
30
|
-
},
|
|
18
|
+
"padding": { "left": 5, "right": 5 },
|
|
19
|
+
"yAxis": { "size": 50, "gridLines": false, "label": "X-Axis Example Label", "numTicks": "10" },
|
|
31
20
|
"barThickness": "0.7",
|
|
32
21
|
"height": 560,
|
|
33
|
-
"xAxis": {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
"dataKey": "Group",
|
|
38
|
-
"label": ""
|
|
39
|
-
},
|
|
40
|
-
"table": {
|
|
41
|
-
"label": "Data Table",
|
|
42
|
-
"expanded": true,
|
|
43
|
-
"download": false,
|
|
44
|
-
"show": true
|
|
45
|
-
},
|
|
46
|
-
"legend": {
|
|
47
|
-
"behavior": "isolate",
|
|
48
|
-
"position": "right",
|
|
49
|
-
"label": "Type of Data"
|
|
50
|
-
},
|
|
51
|
-
"exclusions": {
|
|
52
|
-
"active": false,
|
|
53
|
-
"keys": []
|
|
54
|
-
},
|
|
22
|
+
"xAxis": { "type": "categorical", "size": "0", "tickRotation": 0, "dataKey": "Group", "label": "" },
|
|
23
|
+
"table": { "label": "Data Table", "expanded": true, "download": false, "show": true },
|
|
24
|
+
"legend": { "behavior": "isolate", "position": "right", "label": "Type of Data" },
|
|
25
|
+
"exclusions": { "active": false, "keys": [] },
|
|
55
26
|
"palette": "qualitative-soft",
|
|
56
27
|
"labels": false,
|
|
57
28
|
"dataFormat": {},
|
|
58
29
|
"confidenceKeys": {},
|
|
59
30
|
"data": [
|
|
60
|
-
{
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
"Work": "140",
|
|
65
|
-
"Office": "120"
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
"Group": "Combined Total of Group B",
|
|
69
|
-
"Vehicle": "150",
|
|
70
|
-
"Home": "140",
|
|
71
|
-
"Work": "100",
|
|
72
|
-
"Office": "90"
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
"Group": "Combined Total of Group C",
|
|
76
|
-
"Vehicle": "90",
|
|
77
|
-
"Home": "90",
|
|
78
|
-
"Work": "80",
|
|
79
|
-
"Office": "80"
|
|
80
|
-
},
|
|
81
|
-
{
|
|
82
|
-
"Group": "Combined Total of Group D",
|
|
83
|
-
"Vehicle": "70",
|
|
84
|
-
"Home": "60",
|
|
85
|
-
"Work": "50",
|
|
86
|
-
"Office": "70"
|
|
87
|
-
}
|
|
31
|
+
{ "Group": "Combined Total of Group A", "Vehicle": "100", "Home": "120", "Work": "140", "Office": "120" },
|
|
32
|
+
{ "Group": "Combined Total of Group B", "Vehicle": "150", "Home": "140", "Work": "100", "Office": "90" },
|
|
33
|
+
{ "Group": "Combined Total of Group C", "Vehicle": "90", "Home": "90", "Work": "80", "Office": "80" },
|
|
34
|
+
{ "Group": "Combined Total of Group D", "Vehicle": "70", "Home": "60", "Work": "50", "Office": "70" }
|
|
88
35
|
],
|
|
89
36
|
"visualizationType": "Bar",
|
|
90
37
|
"visualizationSubType": "horizontal",
|
|
91
38
|
"series": [
|
|
92
|
-
{
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
}
|
|
96
|
-
{
|
|
97
|
-
"dataKey": "Home",
|
|
98
|
-
"type": "Bar"
|
|
99
|
-
},
|
|
100
|
-
{
|
|
101
|
-
"dataKey": "Work",
|
|
102
|
-
"type": "Bar"
|
|
103
|
-
},
|
|
104
|
-
{
|
|
105
|
-
"dataKey": "Office",
|
|
106
|
-
"type": "Bar"
|
|
107
|
-
}
|
|
39
|
+
{ "dataKey": "Vehicle", "type": "Bar" },
|
|
40
|
+
{ "dataKey": "Home", "type": "Bar" },
|
|
41
|
+
{ "dataKey": "Work", "type": "Bar" },
|
|
42
|
+
{ "dataKey": "Office", "type": "Bar" }
|
|
108
43
|
],
|
|
109
44
|
"description": "This example shows a horizontal bar chart created in the visualization editor in WCMS",
|
|
110
45
|
"runtime": {
|
|
111
|
-
"seriesLabels": {
|
|
112
|
-
"Vehicle": "Vehicle",
|
|
113
|
-
"Home": "Home",
|
|
114
|
-
"Work": "Work",
|
|
115
|
-
"Office": "Office"
|
|
116
|
-
},
|
|
46
|
+
"seriesLabels": { "Vehicle": "Vehicle", "Home": "Home", "Work": "Work", "Office": "Office" },
|
|
117
47
|
"seriesLabelsAll": ["Vehicle", "Home", "Work", "Office"],
|
|
118
|
-
"originalXAxis": {
|
|
119
|
-
"type": "categorical",
|
|
120
|
-
"size": "0",
|
|
121
|
-
"tickRotation": 0,
|
|
122
|
-
"dataKey": "Group",
|
|
123
|
-
"label": ""
|
|
124
|
-
},
|
|
48
|
+
"originalXAxis": { "type": "categorical", "size": "0", "tickRotation": 0, "dataKey": "Group", "label": "" },
|
|
125
49
|
"seriesKeys": ["Vehicle", "Home", "Work", "Office"],
|
|
126
|
-
"xAxis": {
|
|
127
|
-
|
|
128
|
-
"gridLines": false,
|
|
129
|
-
"label": "X-Axis Example Label",
|
|
130
|
-
"numTicks": "10"
|
|
131
|
-
},
|
|
132
|
-
"yAxis": {
|
|
133
|
-
"type": "categorical",
|
|
134
|
-
"size": "0",
|
|
135
|
-
"tickRotation": 0,
|
|
136
|
-
"dataKey": "Group",
|
|
137
|
-
"label": ""
|
|
138
|
-
},
|
|
50
|
+
"xAxis": { "size": 50, "gridLines": false, "label": "X-Axis Example Label", "numTicks": "10" },
|
|
51
|
+
"yAxis": { "type": "categorical", "size": "0", "tickRotation": 0, "dataKey": "Group", "label": "" },
|
|
139
52
|
"horizontal": true,
|
|
140
53
|
"uniqueId": 1644353484184,
|
|
141
54
|
"editorErrorMessage": ""
|
|
@@ -147,81 +60,27 @@
|
|
|
147
60
|
},
|
|
148
61
|
"barThickness": "0.7",
|
|
149
62
|
"height": 560,
|
|
150
|
-
"xAxis": {
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
"dataKey": "Group",
|
|
155
|
-
"label": ""
|
|
156
|
-
},
|
|
157
|
-
"table": {
|
|
158
|
-
"label": "Data Table",
|
|
159
|
-
"expanded": true,
|
|
160
|
-
"download": false,
|
|
161
|
-
"show": true
|
|
162
|
-
},
|
|
163
|
-
"legend": {
|
|
164
|
-
"behavior": "isolate",
|
|
165
|
-
"position": "right",
|
|
166
|
-
"label": "Location"
|
|
167
|
-
},
|
|
168
|
-
"exclusions": {
|
|
169
|
-
"active": false,
|
|
170
|
-
"keys": []
|
|
171
|
-
},
|
|
63
|
+
"xAxis": { "type": "categorical", "size": "0", "tickRotation": 0, "dataKey": "Group", "label": "" },
|
|
64
|
+
"table": { "label": "Data Table", "expanded": true, "download": false, "show": true },
|
|
65
|
+
"legend": { "behavior": "isolate", "position": "right", "label": "Location" },
|
|
66
|
+
"exclusions": { "active": false, "keys": [] },
|
|
172
67
|
"palette": "qualitative-soft",
|
|
173
68
|
"labels": false,
|
|
174
69
|
"dataFormat": {},
|
|
175
70
|
"confidenceKeys": {},
|
|
176
71
|
"data": [
|
|
177
|
-
{
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
"Work": "140",
|
|
182
|
-
"Office": "120"
|
|
183
|
-
},
|
|
184
|
-
{
|
|
185
|
-
"Group": "Group B Survey Results",
|
|
186
|
-
"Vehicle": "150",
|
|
187
|
-
"Home": "140",
|
|
188
|
-
"Work": "100",
|
|
189
|
-
"Office": "90"
|
|
190
|
-
},
|
|
191
|
-
{
|
|
192
|
-
"Group": "Group C Survey Results",
|
|
193
|
-
"Vehicle": "90",
|
|
194
|
-
"Home": "90",
|
|
195
|
-
"Work": "80",
|
|
196
|
-
"Office": "80"
|
|
197
|
-
},
|
|
198
|
-
{
|
|
199
|
-
"Group": "Group D Survey Results",
|
|
200
|
-
"Vehicle": "70",
|
|
201
|
-
"Home": "60",
|
|
202
|
-
"Work": "50",
|
|
203
|
-
"Office": "70"
|
|
204
|
-
}
|
|
72
|
+
{ "Group": "Group A Survey Results", "Vehicle": "100", "Home": "120", "Work": "140", "Office": "120" },
|
|
73
|
+
{ "Group": "Group B Survey Results", "Vehicle": "150", "Home": "140", "Work": "100", "Office": "90" },
|
|
74
|
+
{ "Group": "Group C Survey Results", "Vehicle": "90", "Home": "90", "Work": "80", "Office": "80" },
|
|
75
|
+
{ "Group": "Group D Survey Results", "Vehicle": "70", "Home": "60", "Work": "50", "Office": "70" }
|
|
205
76
|
],
|
|
206
77
|
"visualizationType": "Bar",
|
|
207
78
|
"visualizationSubType": "horizontal",
|
|
208
79
|
"series": [
|
|
209
|
-
{
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
}
|
|
213
|
-
{
|
|
214
|
-
"dataKey": "Home",
|
|
215
|
-
"type": "Bar"
|
|
216
|
-
},
|
|
217
|
-
{
|
|
218
|
-
"dataKey": "Work",
|
|
219
|
-
"type": "Bar"
|
|
220
|
-
},
|
|
221
|
-
{
|
|
222
|
-
"dataKey": "Office",
|
|
223
|
-
"type": "Bar"
|
|
224
|
-
}
|
|
80
|
+
{ "dataKey": "Vehicle", "type": "Bar" },
|
|
81
|
+
{ "dataKey": "Home", "type": "Bar" },
|
|
82
|
+
{ "dataKey": "Work", "type": "Bar" },
|
|
83
|
+
{ "dataKey": "Office", "type": "Bar" }
|
|
225
84
|
],
|
|
226
85
|
"description": "This example shows a horizontal bar chart created in the visualization editor in WCMS",
|
|
227
86
|
"barPadding": 40,
|
|
@@ -1,47 +1,166 @@
|
|
|
1
1
|
{
|
|
2
2
|
"type": "chart",
|
|
3
3
|
"title": "Combo Bar-Line Chart",
|
|
4
|
+
"showTitle": true,
|
|
4
5
|
"theme": "theme-purple",
|
|
5
|
-
"fontSize": "medium",
|
|
6
|
-
"height": "332",
|
|
7
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",
|
|
8
17
|
"padding": {
|
|
9
18
|
"left": 5,
|
|
10
19
|
"right": 5
|
|
11
20
|
},
|
|
12
21
|
"yAxis": {
|
|
22
|
+
"hideAxis": false,
|
|
23
|
+
"displayNumbersOnBar": false,
|
|
24
|
+
"hideLabel": false,
|
|
25
|
+
"hideTicks": false,
|
|
13
26
|
"size": "68",
|
|
14
27
|
"gridLines": true,
|
|
28
|
+
"enablePadding": false,
|
|
29
|
+
"min": "",
|
|
30
|
+
"max": "",
|
|
31
|
+
"labelColor": "#333",
|
|
32
|
+
"tickLabelColor": "#333",
|
|
33
|
+
"tickColor": "#333",
|
|
34
|
+
"rightHideAxis": true,
|
|
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,
|
|
15
44
|
"label": "Y-Axis Label Example"
|
|
16
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
|
+
"total": "Total",
|
|
70
|
+
"outliers": "Outliers",
|
|
71
|
+
"values": "Values"
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
"topAxis": {
|
|
75
|
+
"hasLine": false
|
|
76
|
+
},
|
|
77
|
+
"isLegendValue": false,
|
|
17
78
|
"barThickness": 0.35,
|
|
79
|
+
"barHeight": 25,
|
|
80
|
+
"barSpace": 15,
|
|
81
|
+
"heights": {
|
|
82
|
+
"vertical": 300,
|
|
83
|
+
"horizontal": 750
|
|
84
|
+
},
|
|
18
85
|
"xAxis": {
|
|
86
|
+
"type": "date",
|
|
87
|
+
"showTargetLabel": true,
|
|
88
|
+
"targetLabel": "Target",
|
|
89
|
+
"hideAxis": false,
|
|
90
|
+
"hideLabel": false,
|
|
91
|
+
"hideTicks": false,
|
|
19
92
|
"size": "78",
|
|
20
93
|
"tickRotation": "25",
|
|
94
|
+
"min": "",
|
|
95
|
+
"max": "",
|
|
96
|
+
"labelColor": "#333",
|
|
97
|
+
"tickLabelColor": "#333",
|
|
98
|
+
"tickColor": "#333",
|
|
99
|
+
"numTicks": "",
|
|
100
|
+
"labelOffset": 65,
|
|
101
|
+
"axisPadding": 0,
|
|
102
|
+
"target": 0,
|
|
21
103
|
"dataKey": "Date",
|
|
22
104
|
"label": "X-Axis Example Label",
|
|
23
|
-
"type": "date",
|
|
24
105
|
"dateParseFormat": "%d/%m/%Y",
|
|
25
106
|
"dateDisplayFormat": "%d/%m/%Y"
|
|
26
107
|
},
|
|
27
108
|
"table": {
|
|
28
109
|
"label": "Data Table",
|
|
29
110
|
"expanded": true,
|
|
30
|
-
"
|
|
111
|
+
"limitHeight": false,
|
|
112
|
+
"height": "",
|
|
113
|
+
"caption": "",
|
|
114
|
+
"showDownloadUrl": false,
|
|
115
|
+
"download": true,
|
|
116
|
+
"show": true
|
|
31
117
|
},
|
|
118
|
+
"orientation": "vertical",
|
|
32
119
|
"legend": {
|
|
33
120
|
"behavior": "highlight",
|
|
121
|
+
"singleRow": false,
|
|
122
|
+
"colorCode": "",
|
|
123
|
+
"reverseLabelOrder": false,
|
|
124
|
+
"description": "",
|
|
125
|
+
"dynamicLegend": false,
|
|
126
|
+
"dynamicLegendDefaultText": "Show All",
|
|
127
|
+
"dynamicLegendItemLimit": 5,
|
|
128
|
+
"dynamicLegendItemLimitMessage": "Dynamic Legend Item Limit Hit.",
|
|
129
|
+
"dynamicLegendChartMessage": "Select Options from the Legend",
|
|
34
130
|
"position": "right",
|
|
35
131
|
"label": "Data Type"
|
|
36
132
|
},
|
|
133
|
+
"exclusions": {
|
|
134
|
+
"active": false,
|
|
135
|
+
"keys": []
|
|
136
|
+
},
|
|
37
137
|
"palette": "qualitative-soft",
|
|
138
|
+
"isPaletteReversed": false,
|
|
139
|
+
"twoColor": {
|
|
140
|
+
"palette": "monochrome-1",
|
|
141
|
+
"isPaletteReversed": false
|
|
142
|
+
},
|
|
38
143
|
"labels": false,
|
|
39
|
-
"dataFormat": {
|
|
144
|
+
"dataFormat": {
|
|
145
|
+
"commas": false,
|
|
146
|
+
"prefix": "",
|
|
147
|
+
"suffix": "",
|
|
148
|
+
"abbreviated": false,
|
|
149
|
+
"bottomSuffix": "",
|
|
150
|
+
"bottomPrefix": "",
|
|
151
|
+
"bottomAbbreviated": false
|
|
152
|
+
},
|
|
40
153
|
"confidenceKeys": {},
|
|
154
|
+
"visual": {
|
|
155
|
+
"border": true,
|
|
156
|
+
"accent": true,
|
|
157
|
+
"background": true
|
|
158
|
+
},
|
|
159
|
+
"height": "332",
|
|
41
160
|
"data": [
|
|
42
161
|
{
|
|
43
162
|
"Date": "1/15/2016",
|
|
44
|
-
"Data 1": "
|
|
163
|
+
"Data 1": "$1,000",
|
|
45
164
|
"Data 2": "110",
|
|
46
165
|
"Data 3": "100",
|
|
47
166
|
"Data 4": "90",
|
|
@@ -135,5 +254,24 @@
|
|
|
135
254
|
"type": "dashed-md",
|
|
136
255
|
"axis": "Left"
|
|
137
256
|
}
|
|
257
|
+
],
|
|
258
|
+
"filters": [
|
|
259
|
+
{
|
|
260
|
+
"values": [
|
|
261
|
+
"1/15/2016",
|
|
262
|
+
"2/15/2016",
|
|
263
|
+
"3/15/2016",
|
|
264
|
+
"4/15/2016",
|
|
265
|
+
"5/15/2016",
|
|
266
|
+
"6/15/2016",
|
|
267
|
+
"7/15/2016",
|
|
268
|
+
"8/15/2016",
|
|
269
|
+
"9/15/2016"
|
|
270
|
+
],
|
|
271
|
+
"active": "1/15/2016",
|
|
272
|
+
"order": "asc",
|
|
273
|
+
"columnName": "Date",
|
|
274
|
+
"filterBehavior": "dropdown"
|
|
275
|
+
}
|
|
138
276
|
]
|
|
139
|
-
}
|
|
277
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"type":"chart","title":"Bar Chart with Confidence Intervals","theme":"theme-green","animate":false,"fontSize":"medium","lineDatapointStyle":"hover","barHasBorder":"false","isLollipopChart":false,"lollipopShape":"circle","lollipopColorStyle":"two-tone","visualizationSubType":"regular","barStyle":"rounded","roundingStyle":"standard","tipRounding":"top","padding":{"left":5,"right":5},"yAxis":{"hideAxis":false,"displayNumbersOnBar":false,"hideLabel":false,"hideTicks":false,"size":"75","gridLines":true,"min":"","max":"","labelColor":"#333","tickLabelColor":"#333","tickColor":"#333","rightHideAxis":true,"rightAxisSize":50,"rightLabelOffsetSize":0,"rightAxisLabelColor":"#333","rightAxisTickLabelColor":"#333","rightAxisTickColor":"#333","isLegendValue":false,"numTicks":"","label":"Y-Axis Example Label"},"topAxis":{"hasLine":false},"barThickness":0.35,"barHeight":25,"height":300,"xAxis":{"type":"categorical","hideAxis":false,"hideLabel":false,"hideTicks":false,"size":"50","tickRotation":0,"min":"","max":"","labelColor":"#333","tickLabelColor":"#333","tickColor":"#333","isLegendValue":false,"numTicks":"","dataKey":"Date","label":"X-Axis Sample Label"},"table":{"label":"Data Table","expanded":true,"limitHeight":false,"height":"","caption":"","show":true},"orientation":"vertical","legend":{"behavior":"isolate","position":"right","singleRow":false,"colorCode":"","reverseLabelOrder":false,"description":"","dynamicLegend":false,"dynamicLegendDefaultText":"Show All","dynamicLegendItemLimit":5,"dynamicLegendItemLimitMessage":"Dynamic Legend Item Limit Hit.","dynamicLegendChartMessage":"Select Options from the Legend"},"exclusions":{"active":false,"keys":[]},"palette":"qualitative-bold","isPaletteReversed":false,"labels":false,"dataFormat":{"commas":false,"prefix":"","suffix":""},"confidenceKeys":{"upper":"high","lower":"low"},"visual":{"border":true,"accent":true,"background":true},"data":[{"Data":"data1","Date":"1/12/2016","Value":"212","high":"220","low":"200"},{"Data":"data2","Date":"1/13/2016","Value":"213","high":"230","low":"205"},{"Data":"data3","Date":"1/14/2016","Value":"214","high":"240","low":"210"}],"visualizationType":"Bar","series":[{"dataKey":"Value","type":"Bar"}]}
|
|
@@ -1,36 +1,108 @@
|
|
|
1
1
|
{
|
|
2
2
|
"type": "chart",
|
|
3
|
-
"title": "Bar Chart
|
|
4
|
-
"theme": "theme-
|
|
3
|
+
"title": "Example Bar Chart",
|
|
4
|
+
"theme": "theme-blue",
|
|
5
|
+
"animate": false,
|
|
5
6
|
"fontSize": "medium",
|
|
6
|
-
"
|
|
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",
|
|
7
16
|
"padding": {
|
|
8
17
|
"left": 5,
|
|
9
18
|
"right": 5
|
|
10
19
|
},
|
|
11
20
|
"yAxis": {
|
|
12
|
-
"
|
|
21
|
+
"hideAxis": false,
|
|
22
|
+
"displayNumbersOnBar": false,
|
|
23
|
+
"hideLabel": false,
|
|
24
|
+
"hideTicks": false,
|
|
25
|
+
"size": "150",
|
|
13
26
|
"gridLines": true,
|
|
14
|
-
"
|
|
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
|
|
15
44
|
},
|
|
16
|
-
"barThickness": 0.
|
|
45
|
+
"barThickness": "0.6",
|
|
46
|
+
"barHeight": 25,
|
|
47
|
+
"height": 300,
|
|
17
48
|
"xAxis": {
|
|
18
|
-
"
|
|
49
|
+
"type": "categorical",
|
|
50
|
+
"hideAxis": false,
|
|
51
|
+
"hideLabel": false,
|
|
52
|
+
"hideTicks": false,
|
|
53
|
+
"size": "59",
|
|
19
54
|
"tickRotation": 0,
|
|
55
|
+
"min": "",
|
|
56
|
+
"max": "",
|
|
57
|
+
"labelColor": "#333",
|
|
58
|
+
"tickLabelColor": "#333",
|
|
59
|
+
"tickColor": "#333",
|
|
60
|
+
"isLegendValue": false,
|
|
61
|
+
"numTicks": "",
|
|
20
62
|
"dataKey": "Date",
|
|
21
|
-
"label": "X
|
|
63
|
+
"label": "X Axis Example Label"
|
|
22
64
|
},
|
|
23
65
|
"table": {
|
|
24
|
-
"label": "Data
|
|
25
|
-
"expanded":
|
|
66
|
+
"label": "Data Type by Date",
|
|
67
|
+
"expanded": false,
|
|
68
|
+
"limitHeight": false,
|
|
69
|
+
"height": "",
|
|
70
|
+
"caption": "",
|
|
71
|
+
"show": true,
|
|
72
|
+
"download": true
|
|
26
73
|
},
|
|
74
|
+
"orientation": "vertical",
|
|
27
75
|
"legend": {
|
|
28
76
|
"behavior": "isolate",
|
|
29
|
-
"position": "right"
|
|
77
|
+
"position": "right",
|
|
78
|
+
"singleRow": false,
|
|
79
|
+
"colorCode": "",
|
|
80
|
+
"reverseLabelOrder": false,
|
|
81
|
+
"description": "",
|
|
82
|
+
"dynamicLegend": false,
|
|
83
|
+
"dynamicLegendDefaultText": "Show All",
|
|
84
|
+
"dynamicLegendItemLimit": 5,
|
|
85
|
+
"dynamicLegendItemLimitMessage": "Dynamic Legend Item Limit Hit.",
|
|
86
|
+
"dynamicLegendChartMessage": "Select Options from the Legend",
|
|
87
|
+
"label": "Type of Data"
|
|
88
|
+
},
|
|
89
|
+
"exclusions": {
|
|
90
|
+
"active": false,
|
|
91
|
+
"keys": []
|
|
30
92
|
},
|
|
31
93
|
"palette": "qualitative-bold",
|
|
94
|
+
"isPaletteReversed": false,
|
|
32
95
|
"labels": false,
|
|
33
|
-
"dataFormat": {
|
|
96
|
+
"dataFormat": {
|
|
97
|
+
"commas": false,
|
|
98
|
+
"prefix": "",
|
|
99
|
+
"suffix": " units"
|
|
100
|
+
},
|
|
101
|
+
"visual": {
|
|
102
|
+
"border": true,
|
|
103
|
+
"accent": true,
|
|
104
|
+
"background": true
|
|
105
|
+
},
|
|
34
106
|
"confidenceKeys": {
|
|
35
107
|
"upper": "high",
|
|
36
108
|
"lower": "low"
|
|
@@ -61,8 +133,18 @@
|
|
|
61
133
|
"visualizationType": "Bar",
|
|
62
134
|
"series": [
|
|
63
135
|
{
|
|
64
|
-
"dataKey": "
|
|
136
|
+
"dataKey": "data1",
|
|
137
|
+
"type": "Bar"
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
"dataKey": "data2",
|
|
141
|
+
"type": "Bar"
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
"dataKey": "data3",
|
|
65
145
|
"type": "Bar"
|
|
66
146
|
}
|
|
67
|
-
]
|
|
147
|
+
],
|
|
148
|
+
"description": "This example shows a bar chart created in the visualization editor in WCMS",
|
|
149
|
+
"dataCutoff": "0"
|
|
68
150
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"type":"chart","title":"Example Line Chart","theme":"theme-green","animate":true,"fontSize":"medium","lineDatapointStyle":"hover","barHasBorder":"false","isLollipopChart":false,"lollipopShape":"circle","lollipopColorStyle":"two-tone","visualizationSubType":"regular","barStyle":"","roundingStyle":"standard","tipRounding":"top","padding":{"left":5,"right":5},"yAxis":{"hideAxis":false,"displayNumbersOnBar":false,"hideLabel":false,"hideTicks":false,"size":"75","gridLines":false,"min":"","max":"","label":"Y-Axis Example Label","numTicks":"9"},"barThickness":0.35,"barHeight":25,"height":"375","xAxis":{"type":"date","hideAxis":false,"hideLabel":false,"hideTicks":false,"size":"77","tickRotation":"25","min":"","max":"","dataKey":"Date","label":"X-Axis Example Label","dateParseFormat":"%d/%m/%Y","dateDisplayFormat":"%d/%m/%Y"},"table":{"label":"Data Table","expanded":true,"limitHeight":false,"height":"","caption":"","download":true,"show":true},"orientation":"vertical","legend":{"behavior":"isolate","position":"right","colorCode":"","reverseLabelOrder":false,"description":"","dynamicLegend":false,"dynamicLegendDefaultText":"Show All","dynamicLegendItemLimit":5,"dynamicLegendItemLimitMessage":"Dynamic Legend Item Limit Hit.","dynamicLegendChartMessage":"Select Options from the Legend","label":"Type of Data"},"exclusions":{"active":false,"keys":[]},"palette":"qualitative-bold","isPaletteReversed":false,"labels":false,"dataFormat":{"commas":false,"prefix":"","suffix":""},"confidenceKeys":{},"visual":{"border":true,"accent":true,"background":true},"data":[{"Date":"1/15/2016","Data 1":"90","Data 2":"135","Data 3":"300","Data 4":"95","Data 5":"120","Data 6":"310"},{"Date":"2/15/2016","Data 1":"40","Data 2":"90","Data 3":"240","Data 4":"60","Data 5":"160","Data 6":"200"},{"Date":"3/15/2016","Data 1":"50","Data 2":"300","Data 3":"290","Data 4":"100","Data 5":"200","Data 6":"250"},{"Date":"4/15/2016","Data 1":"120","Data 2":"160","Data 3":"230","Data 4":"180","Data 5":"160","Data 6":"220"},{"Date":"5/15/2016","Data 1":"80","Data 2":"350","Data 3":"300","Data 4":"150","Data 5":"130","Data 6":"100"},{"Date":"6/15/2016","Data 1":"90","Data 2":"220","Data 3":"320","Data 4":"100","Data 5":"220","Data 6":"300"}],"visualizationType":"Line","series":[{"dataKey":"Data 1","type":"Bar"},{"dataKey":"Data 2","type":"Bar"},{"dataKey":"Data 3","type":"Bar"},{"dataKey":"Data 4","type":"Bar"},{"dataKey":"Data 5","type":"Bar"},{"dataKey":"Data 6","type":"Bar"}]}
|