@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
|
@@ -0,0 +1,561 @@
|
|
|
1
|
+
{
|
|
2
|
+
"type": "chart",
|
|
3
|
+
"title": "Example Line Chart",
|
|
4
|
+
"showTitle": true,
|
|
5
|
+
"theme": "theme-green",
|
|
6
|
+
"animate": false,
|
|
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": 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
|
+
"anchors": [],
|
|
45
|
+
"type": "chart",
|
|
46
|
+
"title": "Example Line Chart",
|
|
47
|
+
"showTitle": true,
|
|
48
|
+
"theme": "theme-green",
|
|
49
|
+
"animate": false,
|
|
50
|
+
"fontSize": "medium",
|
|
51
|
+
"lineDatapointStyle": "hover",
|
|
52
|
+
"barHasBorder": "false",
|
|
53
|
+
"isLollipopChart": false,
|
|
54
|
+
"lollipopShape": "circle",
|
|
55
|
+
"lollipopColorStyle": "two-tone",
|
|
56
|
+
"visualizationSubType": "regular",
|
|
57
|
+
"barStyle": "",
|
|
58
|
+
"roundingStyle": "standard",
|
|
59
|
+
"tipRounding": "top",
|
|
60
|
+
"padding": {
|
|
61
|
+
"left": 5,
|
|
62
|
+
"right": 5
|
|
63
|
+
},
|
|
64
|
+
"yAxis": {
|
|
65
|
+
"hideAxis": false,
|
|
66
|
+
"displayNumbersOnBar": false,
|
|
67
|
+
"hideLabel": false,
|
|
68
|
+
"hideTicks": false,
|
|
69
|
+
"size": "75",
|
|
70
|
+
"gridLines": false,
|
|
71
|
+
"enablePadding": false,
|
|
72
|
+
"min": "",
|
|
73
|
+
"max": "",
|
|
74
|
+
"labelColor": "#333",
|
|
75
|
+
"tickLabelColor": "#333",
|
|
76
|
+
"tickColor": "#333",
|
|
77
|
+
"rightHideAxis": true,
|
|
78
|
+
"rightAxisSize": 50,
|
|
79
|
+
"rightLabel": "",
|
|
80
|
+
"rightLabelOffsetSize": 0,
|
|
81
|
+
"rightAxisLabelColor": "#333",
|
|
82
|
+
"rightAxisTickLabelColor": "#333",
|
|
83
|
+
"rightAxisTickColor": "#333",
|
|
84
|
+
"numTicks": "9",
|
|
85
|
+
"axisPadding": 0,
|
|
86
|
+
"tickRotation": 0,
|
|
87
|
+
"anchors": [],
|
|
88
|
+
"label": "Y-Axis Example Label"
|
|
89
|
+
},
|
|
90
|
+
"boxplot": {
|
|
91
|
+
"plots": [],
|
|
92
|
+
"borders": "true",
|
|
93
|
+
"firstQuartilePercentage": 25,
|
|
94
|
+
"thirdQuartilePercentage": 75,
|
|
95
|
+
"boxWidthPercentage": 40,
|
|
96
|
+
"plotOutlierValues": false,
|
|
97
|
+
"plotNonOutlierValues": true,
|
|
98
|
+
"legend": {
|
|
99
|
+
"showHowToReadText": false,
|
|
100
|
+
"howToReadText": ""
|
|
101
|
+
},
|
|
102
|
+
"labels": {
|
|
103
|
+
"q1": "Lower Quartile",
|
|
104
|
+
"q2": "q2",
|
|
105
|
+
"q3": "Upper Quartile",
|
|
106
|
+
"q4": "q4",
|
|
107
|
+
"minimum": "Minimum",
|
|
108
|
+
"maximum": "Maximum",
|
|
109
|
+
"mean": "Mean",
|
|
110
|
+
"median": "Median",
|
|
111
|
+
"sd": "Standard Deviation",
|
|
112
|
+
"iqr": "Interquartile Range",
|
|
113
|
+
"total": "Total",
|
|
114
|
+
"outliers": "Outliers",
|
|
115
|
+
"values": "Values",
|
|
116
|
+
"lowerBounds": "Lower Bounds",
|
|
117
|
+
"upperBounds": "Upper Bounds"
|
|
118
|
+
}
|
|
119
|
+
},
|
|
120
|
+
"topAxis": {
|
|
121
|
+
"hasLine": false
|
|
122
|
+
},
|
|
123
|
+
"isLegendValue": false,
|
|
124
|
+
"barThickness": 0.35,
|
|
125
|
+
"barHeight": 25,
|
|
126
|
+
"barSpace": 15,
|
|
127
|
+
"heights": {
|
|
128
|
+
"vertical": 300,
|
|
129
|
+
"horizontal": 240
|
|
130
|
+
},
|
|
131
|
+
"xAxis": {
|
|
132
|
+
"anchors": [],
|
|
133
|
+
"type": "date",
|
|
134
|
+
"showTargetLabel": true,
|
|
135
|
+
"targetLabel": "Target",
|
|
136
|
+
"hideAxis": false,
|
|
137
|
+
"hideLabel": false,
|
|
138
|
+
"hideTicks": false,
|
|
139
|
+
"size": "77",
|
|
140
|
+
"tickRotation": "25",
|
|
141
|
+
"min": "",
|
|
142
|
+
"max": "",
|
|
143
|
+
"labelColor": "#333",
|
|
144
|
+
"tickLabelColor": "#333",
|
|
145
|
+
"tickColor": "#333",
|
|
146
|
+
"numTicks": "",
|
|
147
|
+
"labelOffset": 65,
|
|
148
|
+
"axisPadding": 0,
|
|
149
|
+
"target": 0,
|
|
150
|
+
"dataKey": "Date",
|
|
151
|
+
"label": "X-Axis Example Label",
|
|
152
|
+
"dateParseFormat": "%m/%d/%Y",
|
|
153
|
+
"dateDisplayFormat": "%m/%d/%Y"
|
|
154
|
+
},
|
|
155
|
+
"table": {
|
|
156
|
+
"label": "Data Table",
|
|
157
|
+
"expanded": true,
|
|
158
|
+
"limitHeight": false,
|
|
159
|
+
"height": "",
|
|
160
|
+
"caption": "",
|
|
161
|
+
"showDownloadUrl": false,
|
|
162
|
+
"showDataTableLink": true,
|
|
163
|
+
"download": true,
|
|
164
|
+
"show": true
|
|
165
|
+
},
|
|
166
|
+
"orientation": "horizontal",
|
|
167
|
+
"legend": {
|
|
168
|
+
"behavior": "isolate",
|
|
169
|
+
"singleRow": false,
|
|
170
|
+
"colorCode": "",
|
|
171
|
+
"reverseLabelOrder": false,
|
|
172
|
+
"description": "",
|
|
173
|
+
"dynamicLegend": false,
|
|
174
|
+
"dynamicLegendDefaultText": "Show All",
|
|
175
|
+
"dynamicLegendItemLimit": 5,
|
|
176
|
+
"dynamicLegendItemLimitMessage": "Dynamic Legend Item Limit Hit.",
|
|
177
|
+
"dynamicLegendChartMessage": "Select Options from the Legend",
|
|
178
|
+
"position": "right",
|
|
179
|
+
"label": "Type of Data"
|
|
180
|
+
},
|
|
181
|
+
"exclusions": {
|
|
182
|
+
"active": false,
|
|
183
|
+
"keys": []
|
|
184
|
+
},
|
|
185
|
+
"palette": "qualitative-bold",
|
|
186
|
+
"isPaletteReversed": false,
|
|
187
|
+
"twoColor": {
|
|
188
|
+
"palette": "monochrome-1",
|
|
189
|
+
"isPaletteReversed": false
|
|
190
|
+
},
|
|
191
|
+
"labels": false,
|
|
192
|
+
"dataFormat": {
|
|
193
|
+
"commas": false,
|
|
194
|
+
"prefix": "",
|
|
195
|
+
"suffix": "",
|
|
196
|
+
"abbreviated": false,
|
|
197
|
+
"bottomSuffix": "",
|
|
198
|
+
"bottomPrefix": "",
|
|
199
|
+
"bottomAbbreviated": false
|
|
200
|
+
},
|
|
201
|
+
"confidenceKeys": {},
|
|
202
|
+
"visual": {
|
|
203
|
+
"border": true,
|
|
204
|
+
"accent": true,
|
|
205
|
+
"background": true
|
|
206
|
+
},
|
|
207
|
+
"useLogScale": false,
|
|
208
|
+
"filterBehavior": "Filter Change",
|
|
209
|
+
"highlightedBarValues": [],
|
|
210
|
+
"series": [
|
|
211
|
+
{
|
|
212
|
+
"dataKey": "Date",
|
|
213
|
+
"type": "Bar"
|
|
214
|
+
}
|
|
215
|
+
],
|
|
216
|
+
"height": "375",
|
|
217
|
+
"data": [
|
|
218
|
+
{
|
|
219
|
+
"Date": "1/15/2016",
|
|
220
|
+
"Data 1": "foo",
|
|
221
|
+
"Data 2": "135",
|
|
222
|
+
"Data 3": "300",
|
|
223
|
+
"Data 4": "95",
|
|
224
|
+
"Data 5": "120",
|
|
225
|
+
"Data 6": "310"
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
"Date": "2/15/2016",
|
|
229
|
+
"Data 1": "40",
|
|
230
|
+
"Data 2": "90",
|
|
231
|
+
"Data 3": "240",
|
|
232
|
+
"Data 4": "60",
|
|
233
|
+
"Data 5": "160",
|
|
234
|
+
"Data 6": "200"
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
"Date": "3/15/2016",
|
|
238
|
+
"Data 1": "50",
|
|
239
|
+
"Data 2": "300",
|
|
240
|
+
"Data 3": "290",
|
|
241
|
+
"Data 4": "100",
|
|
242
|
+
"Data 5": "200",
|
|
243
|
+
"Data 6": "250"
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
"Date": "4/15/2016",
|
|
247
|
+
"Data 1": "120",
|
|
248
|
+
"Data 2": "160",
|
|
249
|
+
"Data 3": "230",
|
|
250
|
+
"Data 4": "180",
|
|
251
|
+
"Data 5": "160",
|
|
252
|
+
"Data 6": "220"
|
|
253
|
+
},
|
|
254
|
+
{
|
|
255
|
+
"Date": "5/15/2016",
|
|
256
|
+
"Data 1": "80",
|
|
257
|
+
"Data 2": "350",
|
|
258
|
+
"Data 3": "300",
|
|
259
|
+
"Data 4": "150",
|
|
260
|
+
"Data 5": "130",
|
|
261
|
+
"Data 6": "100"
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
"Date": "6/15/2016",
|
|
265
|
+
"Data 1": "90",
|
|
266
|
+
"Data 2": "220",
|
|
267
|
+
"Data 3": "320",
|
|
268
|
+
"Data 4": "100",
|
|
269
|
+
"Data 5": "220",
|
|
270
|
+
"Data 6": "300"
|
|
271
|
+
}
|
|
272
|
+
],
|
|
273
|
+
"visualizationType": "Bar",
|
|
274
|
+
"runtime": {
|
|
275
|
+
"seriesLabels": [],
|
|
276
|
+
"seriesLabelsAll": [
|
|
277
|
+
"Date"
|
|
278
|
+
],
|
|
279
|
+
"originalXAxis": {
|
|
280
|
+
"anchors": [],
|
|
281
|
+
"type": "date",
|
|
282
|
+
"showTargetLabel": true,
|
|
283
|
+
"targetLabel": "Target",
|
|
284
|
+
"hideAxis": false,
|
|
285
|
+
"hideLabel": false,
|
|
286
|
+
"hideTicks": false,
|
|
287
|
+
"size": "77",
|
|
288
|
+
"tickRotation": "25",
|
|
289
|
+
"min": "",
|
|
290
|
+
"max": "",
|
|
291
|
+
"labelColor": "#333",
|
|
292
|
+
"tickLabelColor": "#333",
|
|
293
|
+
"tickColor": "#333",
|
|
294
|
+
"numTicks": "",
|
|
295
|
+
"labelOffset": 65,
|
|
296
|
+
"axisPadding": 0,
|
|
297
|
+
"target": 0,
|
|
298
|
+
"dataKey": "Date",
|
|
299
|
+
"label": "X-Axis Example Label",
|
|
300
|
+
"dateParseFormat": "%m/%d/%Y",
|
|
301
|
+
"dateDisplayFormat": "%m/%d/%Y"
|
|
302
|
+
},
|
|
303
|
+
"seriesKeys": [
|
|
304
|
+
"Date"
|
|
305
|
+
],
|
|
306
|
+
"xAxis": {
|
|
307
|
+
"hideAxis": false,
|
|
308
|
+
"displayNumbersOnBar": false,
|
|
309
|
+
"hideLabel": false,
|
|
310
|
+
"hideTicks": false,
|
|
311
|
+
"size": "75",
|
|
312
|
+
"gridLines": false,
|
|
313
|
+
"enablePadding": false,
|
|
314
|
+
"min": "",
|
|
315
|
+
"max": "",
|
|
316
|
+
"labelColor": "#333",
|
|
317
|
+
"tickLabelColor": "#333",
|
|
318
|
+
"tickColor": "#333",
|
|
319
|
+
"rightHideAxis": true,
|
|
320
|
+
"rightAxisSize": 50,
|
|
321
|
+
"rightLabel": "",
|
|
322
|
+
"rightLabelOffsetSize": 0,
|
|
323
|
+
"rightAxisLabelColor": "#333",
|
|
324
|
+
"rightAxisTickLabelColor": "#333",
|
|
325
|
+
"rightAxisTickColor": "#333",
|
|
326
|
+
"numTicks": "9",
|
|
327
|
+
"axisPadding": 0,
|
|
328
|
+
"tickRotation": 0,
|
|
329
|
+
"anchors": [],
|
|
330
|
+
"label": "Y-Axis Example Label"
|
|
331
|
+
},
|
|
332
|
+
"yAxis": {
|
|
333
|
+
"anchors": [],
|
|
334
|
+
"type": "date",
|
|
335
|
+
"showTargetLabel": true,
|
|
336
|
+
"targetLabel": "Target",
|
|
337
|
+
"hideAxis": false,
|
|
338
|
+
"hideLabel": false,
|
|
339
|
+
"hideTicks": false,
|
|
340
|
+
"size": "77",
|
|
341
|
+
"tickRotation": "25",
|
|
342
|
+
"min": "",
|
|
343
|
+
"max": "",
|
|
344
|
+
"labelColor": "#333",
|
|
345
|
+
"tickLabelColor": "#333",
|
|
346
|
+
"tickColor": "#333",
|
|
347
|
+
"numTicks": "",
|
|
348
|
+
"labelOffset": 65,
|
|
349
|
+
"axisPadding": 0,
|
|
350
|
+
"target": 0,
|
|
351
|
+
"dataKey": "Date",
|
|
352
|
+
"label": "X-Axis Example Label",
|
|
353
|
+
"dateParseFormat": "%m/%d/%Y",
|
|
354
|
+
"dateDisplayFormat": "%m/%d/%Y"
|
|
355
|
+
},
|
|
356
|
+
"horizontal": true,
|
|
357
|
+
"uniqueId": 1683836397584,
|
|
358
|
+
"editorErrorMessage": ""
|
|
359
|
+
},
|
|
360
|
+
"labelPlacement": "Below Bar"
|
|
361
|
+
},
|
|
362
|
+
"boxplot": {
|
|
363
|
+
"plots": [],
|
|
364
|
+
"borders": "true",
|
|
365
|
+
"firstQuartilePercentage": 25,
|
|
366
|
+
"thirdQuartilePercentage": 75,
|
|
367
|
+
"boxWidthPercentage": 40,
|
|
368
|
+
"plotOutlierValues": false,
|
|
369
|
+
"plotNonOutlierValues": true,
|
|
370
|
+
"legend": {
|
|
371
|
+
"showHowToReadText": false,
|
|
372
|
+
"howToReadText": ""
|
|
373
|
+
},
|
|
374
|
+
"labels": {
|
|
375
|
+
"q1": "Lower Quartile",
|
|
376
|
+
"q2": "q2",
|
|
377
|
+
"q3": "Upper Quartile",
|
|
378
|
+
"q4": "q4",
|
|
379
|
+
"minimum": "Minimum",
|
|
380
|
+
"maximum": "Maximum",
|
|
381
|
+
"mean": "Mean",
|
|
382
|
+
"median": "Median",
|
|
383
|
+
"sd": "Standard Deviation",
|
|
384
|
+
"iqr": "Interquartile Range",
|
|
385
|
+
"total": "Total",
|
|
386
|
+
"outliers": "Outliers",
|
|
387
|
+
"values": "Values",
|
|
388
|
+
"lowerBounds": "Lower Bounds",
|
|
389
|
+
"upperBounds": "Upper Bounds"
|
|
390
|
+
}
|
|
391
|
+
},
|
|
392
|
+
"topAxis": {
|
|
393
|
+
"hasLine": false
|
|
394
|
+
},
|
|
395
|
+
"isLegendValue": false,
|
|
396
|
+
"barThickness": 0.35,
|
|
397
|
+
"barHeight": 25,
|
|
398
|
+
"barSpace": 15,
|
|
399
|
+
"heights": {
|
|
400
|
+
"vertical": 300,
|
|
401
|
+
"horizontal": 369.59999999999997
|
|
402
|
+
},
|
|
403
|
+
"xAxis": {
|
|
404
|
+
"anchors": [],
|
|
405
|
+
"type": "date",
|
|
406
|
+
"showTargetLabel": true,
|
|
407
|
+
"targetLabel": "Target",
|
|
408
|
+
"hideAxis": false,
|
|
409
|
+
"hideLabel": false,
|
|
410
|
+
"hideTicks": false,
|
|
411
|
+
"size": "77",
|
|
412
|
+
"tickRotation": "25",
|
|
413
|
+
"min": "",
|
|
414
|
+
"max": "",
|
|
415
|
+
"labelColor": "#333",
|
|
416
|
+
"tickLabelColor": "#333",
|
|
417
|
+
"tickColor": "#333",
|
|
418
|
+
"numTicks": "",
|
|
419
|
+
"labelOffset": 65,
|
|
420
|
+
"axisPadding": 0,
|
|
421
|
+
"target": 0,
|
|
422
|
+
"dataKey": "Date",
|
|
423
|
+
"label": "X-Axis Example Label",
|
|
424
|
+
"dateParseFormat": "%m/%d/%Y",
|
|
425
|
+
"dateDisplayFormat": "%m/%d/%Y"
|
|
426
|
+
},
|
|
427
|
+
"table": {
|
|
428
|
+
"label": "Data Table",
|
|
429
|
+
"expanded": true,
|
|
430
|
+
"limitHeight": false,
|
|
431
|
+
"height": "",
|
|
432
|
+
"caption": "",
|
|
433
|
+
"showDownloadUrl": false,
|
|
434
|
+
"showDataTableLink": true,
|
|
435
|
+
"download": true,
|
|
436
|
+
"show": true
|
|
437
|
+
},
|
|
438
|
+
"orientation": "vertical",
|
|
439
|
+
"legend": {
|
|
440
|
+
"behavior": "isolate",
|
|
441
|
+
"singleRow": false,
|
|
442
|
+
"colorCode": "",
|
|
443
|
+
"reverseLabelOrder": false,
|
|
444
|
+
"description": "",
|
|
445
|
+
"dynamicLegend": false,
|
|
446
|
+
"dynamicLegendDefaultText": "Show All",
|
|
447
|
+
"dynamicLegendItemLimit": 5,
|
|
448
|
+
"dynamicLegendItemLimitMessage": "Dynamic Legend Item Limit Hit.",
|
|
449
|
+
"dynamicLegendChartMessage": "Select Options from the Legend",
|
|
450
|
+
"position": "right",
|
|
451
|
+
"label": "Type of Data"
|
|
452
|
+
},
|
|
453
|
+
"exclusions": {
|
|
454
|
+
"active": false,
|
|
455
|
+
"keys": []
|
|
456
|
+
},
|
|
457
|
+
"palette": "qualitative-bold",
|
|
458
|
+
"isPaletteReversed": false,
|
|
459
|
+
"twoColor": {
|
|
460
|
+
"palette": "monochrome-1",
|
|
461
|
+
"isPaletteReversed": false
|
|
462
|
+
},
|
|
463
|
+
"labels": false,
|
|
464
|
+
"dataFormat": {
|
|
465
|
+
"commas": false,
|
|
466
|
+
"prefix": "",
|
|
467
|
+
"suffix": "",
|
|
468
|
+
"abbreviated": false,
|
|
469
|
+
"bottomSuffix": "",
|
|
470
|
+
"bottomPrefix": "",
|
|
471
|
+
"bottomAbbreviated": false
|
|
472
|
+
},
|
|
473
|
+
"confidenceKeys": {},
|
|
474
|
+
"visual": {
|
|
475
|
+
"border": true,
|
|
476
|
+
"accent": true,
|
|
477
|
+
"background": true
|
|
478
|
+
},
|
|
479
|
+
"useLogScale": false,
|
|
480
|
+
"filterBehavior": "Filter Change",
|
|
481
|
+
"highlightedBarValues": [
|
|
482
|
+
{
|
|
483
|
+
"dataKey": "Data 1",
|
|
484
|
+
"value": "2/15/2016",
|
|
485
|
+
"legendLabel": "label",
|
|
486
|
+
"color": "blue"
|
|
487
|
+
}
|
|
488
|
+
],
|
|
489
|
+
"series": [
|
|
490
|
+
{
|
|
491
|
+
"dataKey": "Data 1",
|
|
492
|
+
"type": "Bar"
|
|
493
|
+
}
|
|
494
|
+
],
|
|
495
|
+
"height": "375",
|
|
496
|
+
"data": [
|
|
497
|
+
{
|
|
498
|
+
"Date": "1/15/2016",
|
|
499
|
+
"Data 1": "foo",
|
|
500
|
+
"Data 2": "135",
|
|
501
|
+
"Data 3": "300",
|
|
502
|
+
"Data 4": "95",
|
|
503
|
+
"Data 5": "120",
|
|
504
|
+
"Data 6": "310"
|
|
505
|
+
},
|
|
506
|
+
{
|
|
507
|
+
"Date": "2/15/2016",
|
|
508
|
+
"Data 1": "40",
|
|
509
|
+
"Data 2": "90",
|
|
510
|
+
"Data 3": "240",
|
|
511
|
+
"Data 4": "60",
|
|
512
|
+
"Data 5": "160",
|
|
513
|
+
"Data 6": "200"
|
|
514
|
+
},
|
|
515
|
+
{
|
|
516
|
+
"Date": "3/15/2016",
|
|
517
|
+
"Data 1": "50",
|
|
518
|
+
"Data 2": "300",
|
|
519
|
+
"Data 3": "290",
|
|
520
|
+
"Data 4": "100",
|
|
521
|
+
"Data 5": "200",
|
|
522
|
+
"Data 6": "250"
|
|
523
|
+
},
|
|
524
|
+
{
|
|
525
|
+
"Date": "4/15/2016",
|
|
526
|
+
"Data 1": "120",
|
|
527
|
+
"Data 2": "160",
|
|
528
|
+
"Data 3": "230",
|
|
529
|
+
"Data 4": "180",
|
|
530
|
+
"Data 5": "160",
|
|
531
|
+
"Data 6": "220"
|
|
532
|
+
},
|
|
533
|
+
{
|
|
534
|
+
"Date": "5/15/2016",
|
|
535
|
+
"Data 1": "80",
|
|
536
|
+
"Data 2": "350",
|
|
537
|
+
"Data 3": "300",
|
|
538
|
+
"Data 4": "150",
|
|
539
|
+
"Data 5": "130",
|
|
540
|
+
"Data 6": "100"
|
|
541
|
+
},
|
|
542
|
+
{
|
|
543
|
+
"Date": "6/15/2016",
|
|
544
|
+
"Data 1": "90",
|
|
545
|
+
"Data 2": "220",
|
|
546
|
+
"Data 3": "320",
|
|
547
|
+
"Data 4": "100",
|
|
548
|
+
"Data 5": "220",
|
|
549
|
+
"Data 6": "300"
|
|
550
|
+
}
|
|
551
|
+
],
|
|
552
|
+
"visualizationType": "Bar",
|
|
553
|
+
"copyOfHighlightedBarValues": [
|
|
554
|
+
{
|
|
555
|
+
"dataKey": "Data 1",
|
|
556
|
+
"value": "2/15/2016",
|
|
557
|
+
"legendLabel": "label",
|
|
558
|
+
"color": "blue"
|
|
559
|
+
}
|
|
560
|
+
]
|
|
561
|
+
}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
{
|
|
2
|
+
"type": "chart",
|
|
3
|
+
"title": "Example Line Chart",
|
|
4
|
+
"theme": "theme-green",
|
|
5
|
+
"fontSize": "medium",
|
|
6
|
+
"height": "375",
|
|
7
|
+
"padding": {
|
|
8
|
+
"left": 5,
|
|
9
|
+
"right": 5
|
|
10
|
+
},
|
|
11
|
+
"yAxis": {
|
|
12
|
+
"size": "75",
|
|
13
|
+
"gridLines": false,
|
|
14
|
+
"label": "Y-Axis Example Label",
|
|
15
|
+
"numTicks": "9"
|
|
16
|
+
},
|
|
17
|
+
"barThickness": 0.35,
|
|
18
|
+
"xAxis": {
|
|
19
|
+
"size": "77",
|
|
20
|
+
"tickRotation": "25",
|
|
21
|
+
"dataKey": "Date",
|
|
22
|
+
"label": "X-Axis Example Label",
|
|
23
|
+
"type": "date",
|
|
24
|
+
"dateParseFormat": "%m/%d/%Y",
|
|
25
|
+
"dateDisplayFormat": "%m/%d/%Y"
|
|
26
|
+
},
|
|
27
|
+
"table": {
|
|
28
|
+
"label": "Data Table",
|
|
29
|
+
"expanded": true,
|
|
30
|
+
"download": true
|
|
31
|
+
},
|
|
32
|
+
"legend": {
|
|
33
|
+
"behavior": "isolate",
|
|
34
|
+
"position": "right",
|
|
35
|
+
"label": "Type of Data"
|
|
36
|
+
},
|
|
37
|
+
"palette": "qualitative-bold",
|
|
38
|
+
"labels": false,
|
|
39
|
+
"dataFormat": {},
|
|
40
|
+
"confidenceKeys": {},
|
|
41
|
+
"data": [
|
|
42
|
+
{
|
|
43
|
+
"Date": "1/15/2016",
|
|
44
|
+
"Data 1": "foo",
|
|
45
|
+
"Data 2": "135",
|
|
46
|
+
"Data 3": "300",
|
|
47
|
+
"Data 4": "95",
|
|
48
|
+
"Data 5": "120",
|
|
49
|
+
"Data 6": "310"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"Date": "2/15/2016",
|
|
53
|
+
"Data 1": "40",
|
|
54
|
+
"Data 2": "90",
|
|
55
|
+
"Data 3": "240",
|
|
56
|
+
"Data 4": "60",
|
|
57
|
+
"Data 5": "160",
|
|
58
|
+
"Data 6": "200"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"Date": "3/15/2016",
|
|
62
|
+
"Data 1": "50",
|
|
63
|
+
"Data 2": "300",
|
|
64
|
+
"Data 3": "290",
|
|
65
|
+
"Data 4": "100",
|
|
66
|
+
"Data 5": "200",
|
|
67
|
+
"Data 6": "250"
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"Date": "4/15/2016",
|
|
71
|
+
"Data 1": "120",
|
|
72
|
+
"Data 2": "160",
|
|
73
|
+
"Data 3": "230",
|
|
74
|
+
"Data 4": "180",
|
|
75
|
+
"Data 5": "160",
|
|
76
|
+
"Data 6": "220"
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"Date": "5/15/2016",
|
|
80
|
+
"Data 1": "80",
|
|
81
|
+
"Data 2": "350",
|
|
82
|
+
"Data 3": "300",
|
|
83
|
+
"Data 4": "150",
|
|
84
|
+
"Data 5": "130",
|
|
85
|
+
"Data 6": "100"
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"Date": "6/15/2016",
|
|
89
|
+
"Data 1": "90",
|
|
90
|
+
"Data 2": "220",
|
|
91
|
+
"Data 3": "320",
|
|
92
|
+
"Data 4": "100",
|
|
93
|
+
"Data 5": "220",
|
|
94
|
+
"Data 6": "300"
|
|
95
|
+
}
|
|
96
|
+
],
|
|
97
|
+
"visualizationType": "Bar",
|
|
98
|
+
"orientation": "horizontal",
|
|
99
|
+
"series": []
|
|
100
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"title": "Case Rate Data",
|
|
3
3
|
"theme": "theme-blue",
|
|
4
|
-
"dataUrl": "/examples/case-rate-example-data.json",
|
|
4
|
+
"dataUrl": "/examples/feature/tests-case-rate/case-rate-example-data.json",
|
|
5
5
|
"visualizationType": "Bar",
|
|
6
6
|
"visualizationSubType": "horizontal",
|
|
7
7
|
"series": [],
|
|
@@ -33,4 +33,4 @@
|
|
|
33
33
|
"expanded": true,
|
|
34
34
|
"download": true
|
|
35
35
|
}
|
|
36
|
-
}
|
|
36
|
+
}
|
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"title": "Confidence Age-adjusted COVID-19-associated hospitalization rates by race and ethnicity — COVID-NET, March 1–December 26, 2020",
|
|
3
|
-
"dataUrl": "/examples/covid-example-data-confidence.json",
|
|
3
|
+
"dataUrl": "/examples/feature/tests-covid/covid-example-data-confidence.json",
|
|
4
4
|
"visualizationType": "Bar",
|
|
5
5
|
"fontSize": "small",
|
|
6
|
-
"series": [
|
|
6
|
+
"series": [
|
|
7
|
+
{
|
|
8
|
+
"dataKey": "Age-adjusted rate",
|
|
9
|
+
"label": "Rate"
|
|
10
|
+
}
|
|
11
|
+
],
|
|
7
12
|
"confidenceKeys": {
|
|
8
13
|
"lower": "Lower",
|
|
9
14
|
"upper": "Upper"
|
|
@@ -32,4 +37,4 @@
|
|
|
32
37
|
"label": "Age-adjusted COVID-19-associated hospitalization rates by race and ethnicity",
|
|
33
38
|
"expanded": true
|
|
34
39
|
}
|
|
35
|
-
}
|
|
40
|
+
}
|