@cdc/chart 4.23.3 → 4.23.5
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 +52543 -50830
- package/examples/feature/__data__/area-chart.json +56 -0
- package/examples/{planet-example-data.json → feature/__data__/planet-example-data.json} +3 -8
- package/examples/feature/__data__/planet-logaritmic-data.json +56 -0
- package/examples/feature/area/area-chart-category.json +240 -0
- package/examples/{area-chart.json → feature/area/area-chart-date.json} +70 -13
- package/examples/feature/bar/example-bar-chart.json +558 -0
- 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/feature/bar/planet-chart-logaritmic-config.json +170 -0
- 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/boxplot/valid-boxplot.csv +17 -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 +212 -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/forecasting/random_data.csv +366 -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/feature/test-highlight/test-highlight-2.json +789 -0
- package/examples/feature/test-highlight/test-highlight-vertical.json +561 -0
- package/examples/feature/test-highlight/test-highlight.json +100 -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/{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/{stacked-vertical-bar-example-nonnumerics.json → feature/tests-non-numerics/stacked-vertical-bar-example-nonnumerics.json} +1 -2
- package/examples/gallery/bar-chart-horizontal/horizontal-highlight.json +345 -0
- 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 +405 -40
- package/src/components/AreaChart.jsx +122 -80
- package/src/components/BarChart.jsx +126 -49
- package/src/components/BoxPlot.jsx +28 -20
- package/src/components/DataTable.jsx +7 -6
- package/src/components/DeviationBar.jsx +34 -34
- package/src/components/EditorPanel.jsx +1332 -352
- package/src/components/Legend.jsx +40 -4
- package/src/components/LineChart.jsx +10 -23
- package/src/components/LinearChart.jsx +133 -286
- 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 +23 -4
- package/src/hooks/useHighlightedBars.js +154 -0
- package/src/hooks/useMinMax.js +92 -0
- package/src/hooks/useReduceData.js +31 -57
- package/src/hooks/useScales.js +202 -0
- 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/example-bar-chart.json +0 -36
- 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/{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/{covid-example-config.json → feature/tests-covid/covid-example-config.json}
RENAMED
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"title": "Non Configdence Age-adjusted COVID-19-associated hospitalization rates by race and ethnicity — COVID-NET, March 1–December 26, 2020",
|
|
3
3
|
"theme": "theme-brown",
|
|
4
|
-
"dataUrl": "/examples/covid-example-data.json",
|
|
4
|
+
"dataUrl": "/examples/feature/tests-covid/covid-example-data.json",
|
|
5
5
|
"visualizationType": "Bar",
|
|
6
6
|
"visualizationSubType": "horizontal",
|
|
7
|
-
"series": [
|
|
7
|
+
"series": [
|
|
8
|
+
{
|
|
9
|
+
"dataKey": "Age-adjusted rate"
|
|
10
|
+
}
|
|
11
|
+
],
|
|
8
12
|
"barThickness": 0.3,
|
|
9
13
|
"height": 300,
|
|
10
14
|
"dataFormat": {
|
|
@@ -33,4 +37,4 @@
|
|
|
33
37
|
"expanded": true,
|
|
34
38
|
"download": true
|
|
35
39
|
}
|
|
36
|
-
}
|
|
40
|
+
}
|
package/examples/{cutoff-example-config.json → feature/tests-cutoff/cutoff-example-config.json}
RENAMED
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"title": "Data Cutoff Example (< 0.1)",
|
|
3
3
|
"theme": "theme-blue",
|
|
4
|
-
"dataUrl": "/examples/cutoff-example-data.json",
|
|
4
|
+
"dataUrl": "/examples/feature/tests-cutoff/cutoff-example-data.json",
|
|
5
5
|
"animate": true,
|
|
6
6
|
"animateReplay": true,
|
|
7
7
|
"visualizationType": "Line",
|
|
8
|
-
"series": [
|
|
8
|
+
"series": [
|
|
9
|
+
{
|
|
10
|
+
"dataKey": "Value"
|
|
11
|
+
}
|
|
12
|
+
],
|
|
9
13
|
"barThickness": 0.3,
|
|
10
14
|
"height": 300,
|
|
11
15
|
"dataCutoff": "0.1",
|
|
@@ -35,4 +39,4 @@
|
|
|
35
39
|
"expanded": true,
|
|
36
40
|
"download": true
|
|
37
41
|
}
|
|
38
|
-
}
|
|
42
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"title": "",
|
|
3
|
-
"dataUrl": "/examples/date-exclusions-data.json",
|
|
3
|
+
"dataUrl": "/examples/feature/tests-date-exclusions/date-exclusions-data.json",
|
|
4
4
|
"type": "chart",
|
|
5
5
|
"theme": "theme-blue",
|
|
6
6
|
"fontSize": "medium",
|
|
@@ -59,4 +59,4 @@
|
|
|
59
59
|
"type": "Bar"
|
|
60
60
|
}
|
|
61
61
|
]
|
|
62
|
-
}
|
|
62
|
+
}
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"dataFormat": { "suffix": " units" },
|
|
16
16
|
"confidenceKeys": {},
|
|
17
17
|
"data": [
|
|
18
|
-
{ "Date": "1/15/2016", "Data 1": "90", "Data 2": "1323.5", "Data 3": "
|
|
18
|
+
{ "Date": "1/15/2016", "Data 1": "90", "Data 2": "1323.5", "Data 3": "$1,000", "Data 4": "95", "Data 5": "120", "Data 6": "310" },
|
|
19
19
|
{ "Date": "2/15/2016", "Data 1": "NA", "Data 2": "90.3", "Data 3": "240", "Data 4": "60", "Data 5": "160", "Data 6": "200" },
|
|
20
20
|
{ "Date": "3/15/2016", "Data 1": "50", "Data 2": "booo", "Data 3": "290", "Data 4": "100", "Data 5": "200", "Data 6": "250" },
|
|
21
21
|
{ "Date": "4/15/2016", "Data 1": "", "Data 2": "160", "Data 3": "230", "Data 4": "180", "Data 5": "160", "Data 6": "220" },
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"title": "Planet Radius (Pie Example)",
|
|
3
|
-
"dataUrl": "/examples/planet-example-data-nonnumeric.json",
|
|
3
|
+
"dataUrl": "/examples/feature/tests-non-numerics/planet-example-data-nonnumeric.json",
|
|
4
4
|
"animate": true,
|
|
5
5
|
"animateReplay": true,
|
|
6
6
|
"visualizationType": "Pie",
|
|
@@ -27,4 +27,4 @@
|
|
|
27
27
|
"label": "Data Table",
|
|
28
28
|
"expanded": false
|
|
29
29
|
}
|
|
30
|
-
}
|
|
30
|
+
}
|
|
@@ -0,0 +1,345 @@
|
|
|
1
|
+
{
|
|
2
|
+
"type": "chart",
|
|
3
|
+
"title": "Example Horizontal Bar Chart",
|
|
4
|
+
"showTitle": true,
|
|
5
|
+
"theme": "theme-teal",
|
|
6
|
+
"animate": false,
|
|
7
|
+
"fontSize": "small",
|
|
8
|
+
"lineDatapointStyle": "hover",
|
|
9
|
+
"barHasBorder": "false",
|
|
10
|
+
"isLollipopChart": false,
|
|
11
|
+
"lollipopShape": "circle",
|
|
12
|
+
"lollipopColorStyle": "two-tone",
|
|
13
|
+
"visualizationSubType": "horizontal",
|
|
14
|
+
"barStyle": "",
|
|
15
|
+
"roundingStyle": "standard",
|
|
16
|
+
"tipRounding": "top",
|
|
17
|
+
"padding": {
|
|
18
|
+
"left": 5,
|
|
19
|
+
"right": 5
|
|
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": 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,
|
|
44
|
+
"type": "chart",
|
|
45
|
+
"title": "Example Horizontal Bar Chart",
|
|
46
|
+
"theme": "theme-teal",
|
|
47
|
+
"fontSize": "small",
|
|
48
|
+
"lineDatapointStyle": "hover",
|
|
49
|
+
"barHasBorder": "false",
|
|
50
|
+
"padding": {
|
|
51
|
+
"left": 5,
|
|
52
|
+
"right": 5
|
|
53
|
+
},
|
|
54
|
+
"yAxis": {
|
|
55
|
+
"size": 50,
|
|
56
|
+
"gridLines": false,
|
|
57
|
+
"label": "X-Axis Example Label",
|
|
58
|
+
"numTicks": "10"
|
|
59
|
+
},
|
|
60
|
+
"barThickness": "0.7",
|
|
61
|
+
"height": 560,
|
|
62
|
+
"xAxis": {
|
|
63
|
+
"type": "categorical",
|
|
64
|
+
"size": "0",
|
|
65
|
+
"tickRotation": 0,
|
|
66
|
+
"dataKey": "Group",
|
|
67
|
+
"label": ""
|
|
68
|
+
},
|
|
69
|
+
"table": {
|
|
70
|
+
"label": "Data Table",
|
|
71
|
+
"expanded": true,
|
|
72
|
+
"download": false,
|
|
73
|
+
"show": true
|
|
74
|
+
},
|
|
75
|
+
"legend": {
|
|
76
|
+
"behavior": "isolate",
|
|
77
|
+
"position": "right",
|
|
78
|
+
"label": "Type of Data"
|
|
79
|
+
},
|
|
80
|
+
"exclusions": {
|
|
81
|
+
"active": false,
|
|
82
|
+
"keys": []
|
|
83
|
+
},
|
|
84
|
+
"palette": "qualitative-soft",
|
|
85
|
+
"labels": false,
|
|
86
|
+
"dataFormat": {},
|
|
87
|
+
"confidenceKeys": {},
|
|
88
|
+
"data": [
|
|
89
|
+
{
|
|
90
|
+
"Group": "Combined Total of Group A",
|
|
91
|
+
"Vehicle": "100",
|
|
92
|
+
"Home": "120",
|
|
93
|
+
"Work": "140",
|
|
94
|
+
"Office": "120"
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"Group": "Combined Total of Group B",
|
|
98
|
+
"Vehicle": "150",
|
|
99
|
+
"Home": "140",
|
|
100
|
+
"Work": "100",
|
|
101
|
+
"Office": "90"
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"Group": "Combined Total of Group C",
|
|
105
|
+
"Vehicle": "90",
|
|
106
|
+
"Home": "90",
|
|
107
|
+
"Work": "80",
|
|
108
|
+
"Office": "80"
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"Group": "Combined Total of Group D",
|
|
112
|
+
"Vehicle": "70",
|
|
113
|
+
"Home": "60",
|
|
114
|
+
"Work": "50",
|
|
115
|
+
"Office": "70"
|
|
116
|
+
}
|
|
117
|
+
],
|
|
118
|
+
"visualizationType": "Bar",
|
|
119
|
+
"visualizationSubType": "horizontal",
|
|
120
|
+
"series": [
|
|
121
|
+
{
|
|
122
|
+
"dataKey": "Vehicle",
|
|
123
|
+
"type": "Bar"
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"dataKey": "Home",
|
|
127
|
+
"type": "Bar"
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"dataKey": "Work",
|
|
131
|
+
"type": "Bar"
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
"dataKey": "Office",
|
|
135
|
+
"type": "Bar"
|
|
136
|
+
}
|
|
137
|
+
],
|
|
138
|
+
"description": "This example shows a horizontal bar chart created in the visualization editor in WCMS",
|
|
139
|
+
"runtime": {
|
|
140
|
+
"seriesLabels": {
|
|
141
|
+
"Vehicle": "Vehicle",
|
|
142
|
+
"Home": "Home",
|
|
143
|
+
"Work": "Work",
|
|
144
|
+
"Office": "Office"
|
|
145
|
+
},
|
|
146
|
+
"seriesLabelsAll": [
|
|
147
|
+
"Vehicle",
|
|
148
|
+
"Home",
|
|
149
|
+
"Work",
|
|
150
|
+
"Office"
|
|
151
|
+
],
|
|
152
|
+
"originalXAxis": {
|
|
153
|
+
"type": "categorical",
|
|
154
|
+
"size": "0",
|
|
155
|
+
"tickRotation": 0,
|
|
156
|
+
"dataKey": "Group",
|
|
157
|
+
"label": ""
|
|
158
|
+
},
|
|
159
|
+
"seriesKeys": [
|
|
160
|
+
"Vehicle",
|
|
161
|
+
"Home",
|
|
162
|
+
"Work",
|
|
163
|
+
"Office"
|
|
164
|
+
],
|
|
165
|
+
"xAxis": {
|
|
166
|
+
"size": 50,
|
|
167
|
+
"gridLines": false,
|
|
168
|
+
"label": "X-Axis Example Label",
|
|
169
|
+
"numTicks": "10"
|
|
170
|
+
},
|
|
171
|
+
"yAxis": {
|
|
172
|
+
"type": "categorical",
|
|
173
|
+
"size": "0",
|
|
174
|
+
"tickRotation": 0,
|
|
175
|
+
"dataKey": "Group",
|
|
176
|
+
"label": ""
|
|
177
|
+
},
|
|
178
|
+
"horizontal": true,
|
|
179
|
+
"uniqueId": 1644353484184,
|
|
180
|
+
"editorErrorMessage": ""
|
|
181
|
+
},
|
|
182
|
+
"barPadding": 40,
|
|
183
|
+
"barHeight": 25,
|
|
184
|
+
"labelPlacement": "Below Bar",
|
|
185
|
+
"label": "Accidents"
|
|
186
|
+
},
|
|
187
|
+
"boxplot": {
|
|
188
|
+
"plots": [],
|
|
189
|
+
"borders": "true",
|
|
190
|
+
"firstQuartilePercentage": 25,
|
|
191
|
+
"thirdQuartilePercentage": 75,
|
|
192
|
+
"boxWidthPercentage": 40,
|
|
193
|
+
"plotOutlierValues": false,
|
|
194
|
+
"plotNonOutlierValues": true,
|
|
195
|
+
"legend": {
|
|
196
|
+
"showHowToReadText": false,
|
|
197
|
+
"howToReadText": ""
|
|
198
|
+
},
|
|
199
|
+
"labels": {
|
|
200
|
+
"q1": "Lower Quartile",
|
|
201
|
+
"q2": "q2",
|
|
202
|
+
"q3": "Upper Quartile",
|
|
203
|
+
"q4": "q4",
|
|
204
|
+
"minimum": "Minimum",
|
|
205
|
+
"maximum": "Maximum",
|
|
206
|
+
"mean": "Mean",
|
|
207
|
+
"median": "Median",
|
|
208
|
+
"sd": "Standard Deviation",
|
|
209
|
+
"iqr": "Interquartile Range",
|
|
210
|
+
"total": "Total",
|
|
211
|
+
"outliers": "Outliers",
|
|
212
|
+
"values": "Values",
|
|
213
|
+
"lowerBounds": "Lower Bounds",
|
|
214
|
+
"upperBounds": "Upper Bounds"
|
|
215
|
+
}
|
|
216
|
+
},
|
|
217
|
+
"topAxis": {
|
|
218
|
+
"hasLine": false
|
|
219
|
+
},
|
|
220
|
+
"isLegendValue": false,
|
|
221
|
+
"barThickness": "0.7",
|
|
222
|
+
"barHeight": 25,
|
|
223
|
+
"barSpace": 15,
|
|
224
|
+
"heights": {
|
|
225
|
+
"vertical": 300,
|
|
226
|
+
"horizontal": 236.8
|
|
227
|
+
},
|
|
228
|
+
"xAxis": {
|
|
229
|
+
"type": "categorical",
|
|
230
|
+
"showTargetLabel": true,
|
|
231
|
+
"targetLabel": "Target",
|
|
232
|
+
"hideAxis": false,
|
|
233
|
+
"hideLabel": false,
|
|
234
|
+
"hideTicks": false,
|
|
235
|
+
"size": "0",
|
|
236
|
+
"tickRotation": 0,
|
|
237
|
+
"min": "",
|
|
238
|
+
"max": "",
|
|
239
|
+
"labelColor": "#333",
|
|
240
|
+
"tickLabelColor": "#333",
|
|
241
|
+
"tickColor": "#333",
|
|
242
|
+
"numTicks": "",
|
|
243
|
+
"labelOffset": 65,
|
|
244
|
+
"axisPadding": 0,
|
|
245
|
+
"target": 0,
|
|
246
|
+
"dataKey": "Group",
|
|
247
|
+
"label": ""
|
|
248
|
+
},
|
|
249
|
+
"table": {
|
|
250
|
+
"label": "Data Table",
|
|
251
|
+
"expanded": true,
|
|
252
|
+
"limitHeight": false,
|
|
253
|
+
"height": "",
|
|
254
|
+
"caption": "",
|
|
255
|
+
"showDownloadUrl": false,
|
|
256
|
+
"showDataTableLink": true,
|
|
257
|
+
"download": false,
|
|
258
|
+
"show": true
|
|
259
|
+
},
|
|
260
|
+
"orientation": "horizontal",
|
|
261
|
+
"legend": {
|
|
262
|
+
"behavior": "isolate",
|
|
263
|
+
"singleRow": false,
|
|
264
|
+
"colorCode": "",
|
|
265
|
+
"reverseLabelOrder": false,
|
|
266
|
+
"description": "",
|
|
267
|
+
"dynamicLegend": false,
|
|
268
|
+
"dynamicLegendDefaultText": "Show All",
|
|
269
|
+
"dynamicLegendItemLimit": 5,
|
|
270
|
+
"dynamicLegendItemLimitMessage": "Dynamic Legend Item Limit Hit.",
|
|
271
|
+
"dynamicLegendChartMessage": "Select Options from the Legend",
|
|
272
|
+
"position": "right",
|
|
273
|
+
"label": "Location"
|
|
274
|
+
},
|
|
275
|
+
"exclusions": {
|
|
276
|
+
"active": false,
|
|
277
|
+
"keys": []
|
|
278
|
+
},
|
|
279
|
+
"palette": "qualitative-soft",
|
|
280
|
+
"isPaletteReversed": false,
|
|
281
|
+
"twoColor": {
|
|
282
|
+
"palette": "monochrome-1",
|
|
283
|
+
"isPaletteReversed": false
|
|
284
|
+
},
|
|
285
|
+
"labels": false,
|
|
286
|
+
"dataFormat": {
|
|
287
|
+
"commas": false,
|
|
288
|
+
"prefix": "",
|
|
289
|
+
"suffix": "",
|
|
290
|
+
"abbreviated": false,
|
|
291
|
+
"bottomSuffix": "",
|
|
292
|
+
"bottomPrefix": "",
|
|
293
|
+
"bottomAbbreviated": false
|
|
294
|
+
},
|
|
295
|
+
"confidenceKeys": {},
|
|
296
|
+
"visual": {
|
|
297
|
+
"border": true,
|
|
298
|
+
"accent": true,
|
|
299
|
+
"background": true
|
|
300
|
+
},
|
|
301
|
+
"filterBehavior": "Filter Change",
|
|
302
|
+
"highlightedBarValues": [],
|
|
303
|
+
"height": 560,
|
|
304
|
+
"data": [
|
|
305
|
+
{
|
|
306
|
+
"Group": "Group A Survey Results",
|
|
307
|
+
"Vehicle": "100",
|
|
308
|
+
"Home": "120",
|
|
309
|
+
"Work": "140",
|
|
310
|
+
"Office": "120"
|
|
311
|
+
},
|
|
312
|
+
{
|
|
313
|
+
"Group": "Group B Survey Results",
|
|
314
|
+
"Vehicle": "150",
|
|
315
|
+
"Home": "140",
|
|
316
|
+
"Work": "100",
|
|
317
|
+
"Office": "90"
|
|
318
|
+
},
|
|
319
|
+
{
|
|
320
|
+
"Group": "Group C Survey Results",
|
|
321
|
+
"Vehicle": "90",
|
|
322
|
+
"Home": "90",
|
|
323
|
+
"Work": "80",
|
|
324
|
+
"Office": "80"
|
|
325
|
+
},
|
|
326
|
+
{
|
|
327
|
+
"Group": "Group D Survey Results",
|
|
328
|
+
"Vehicle": "70",
|
|
329
|
+
"Home": "60",
|
|
330
|
+
"Work": "50",
|
|
331
|
+
"Office": "70"
|
|
332
|
+
}
|
|
333
|
+
],
|
|
334
|
+
"visualizationType": "Bar",
|
|
335
|
+
"series": [
|
|
336
|
+
{
|
|
337
|
+
"dataKey": "Vehicle",
|
|
338
|
+
"type": "Bar"
|
|
339
|
+
}
|
|
340
|
+
],
|
|
341
|
+
"description": "This example shows a horizontal bar chart created in the visualization editor in WCMS",
|
|
342
|
+
"barPadding": 40,
|
|
343
|
+
"dataFileName": "3-CSV_Source_Example_for_Horizontal_Bar_viz - Fixed.csv",
|
|
344
|
+
"dataFileSourceType": "file"
|
|
345
|
+
}
|
|
@@ -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
|
+
}
|