@cdc/chart 4.23.9 → 4.23.10
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/LICENSE +201 -0
- package/dist/cdcchart.js +44099 -44436
- package/examples/feature/__data__/area-chart-date-apple.json +1 -5073
- package/examples/feature/area/area-chart-date-apple.json +73 -10316
- package/examples/feature/area/area-chart-date-city-temperature.json +204 -80
- package/examples/feature/area/area-chart-stacked.json +239 -0
- package/examples/feature/filters/bar-filter.json +5027 -0
- package/examples/feature/legend-highlights/highlights.json +567 -0
- package/index.html +9 -6
- package/package.json +3 -2
- package/src/{CdcChart.jsx → CdcChart.tsx} +77 -71
- package/src/components/AreaChart.Stacked.jsx +73 -0
- package/src/components/AreaChart.jsx +24 -26
- package/src/components/DeviationBar.jsx +67 -13
- package/src/components/EditorPanel.jsx +483 -452
- package/src/components/Forecasting.jsx +5 -5
- package/src/components/Legend.jsx +6 -5
- package/src/components/LineChart.Circle.tsx +108 -0
- package/src/components/{LineChart.jsx → LineChart.tsx} +10 -42
- package/src/components/LinearChart.jsx +460 -443
- package/src/components/PieChart.jsx +54 -25
- package/src/components/Series.jsx +63 -17
- package/src/components/SparkLine.jsx +7 -19
- package/src/data/initial-state.js +6 -0
- package/src/hooks/useEditorPermissions.js +87 -24
- package/src/hooks/useReduceData.js +5 -0
- package/src/hooks/useScales.js +1 -1
- package/src/hooks/useTooltip.jsx +19 -6
- package/src/scss/main.scss +6 -12
- package/src/components/DataTable.jsx +0 -494
- /package/src/{components → hooks}/useIntersectionObserver.jsx +0 -0
|
@@ -0,0 +1,567 @@
|
|
|
1
|
+
{
|
|
2
|
+
"type": "chart",
|
|
3
|
+
"debugSvg": false,
|
|
4
|
+
"chartMessage": {
|
|
5
|
+
"noData": "No Data Available"
|
|
6
|
+
},
|
|
7
|
+
"title": "Planet Radius (Bar Example)",
|
|
8
|
+
"showTitle": true,
|
|
9
|
+
"showDownloadMediaButton": false,
|
|
10
|
+
"showChartBrush": false,
|
|
11
|
+
"theme": "theme-blue",
|
|
12
|
+
"animate": false,
|
|
13
|
+
"fontSize": "medium",
|
|
14
|
+
"lineDatapointStyle": "hover",
|
|
15
|
+
"barHasBorder": "false",
|
|
16
|
+
"isLollipopChart": false,
|
|
17
|
+
"lollipopShape": "circle",
|
|
18
|
+
"lollipopColorStyle": "two-tone",
|
|
19
|
+
"visualizationSubType": "regular",
|
|
20
|
+
"barStyle": "",
|
|
21
|
+
"roundingStyle": "standard",
|
|
22
|
+
"tipRounding": "top",
|
|
23
|
+
"isResponsiveTicks": false,
|
|
24
|
+
"general": {
|
|
25
|
+
"showDownloadButton": false
|
|
26
|
+
},
|
|
27
|
+
"padding": {
|
|
28
|
+
"left": 5,
|
|
29
|
+
"right": 5
|
|
30
|
+
},
|
|
31
|
+
"yAxis": {
|
|
32
|
+
"hideAxis": false,
|
|
33
|
+
"displayNumbersOnBar": false,
|
|
34
|
+
"hideLabel": false,
|
|
35
|
+
"hideTicks": false,
|
|
36
|
+
"size": 50,
|
|
37
|
+
"gridLines": false,
|
|
38
|
+
"enablePadding": false,
|
|
39
|
+
"min": "",
|
|
40
|
+
"max": "",
|
|
41
|
+
"labelColor": "#333",
|
|
42
|
+
"tickLabelColor": "#333",
|
|
43
|
+
"tickColor": "#333",
|
|
44
|
+
"rightHideAxis": true,
|
|
45
|
+
"rightAxisSize": 0,
|
|
46
|
+
"rightLabel": "",
|
|
47
|
+
"rightLabelOffsetSize": 0,
|
|
48
|
+
"rightAxisLabelColor": "#333",
|
|
49
|
+
"rightAxisTickLabelColor": "#333",
|
|
50
|
+
"rightAxisTickColor": "#333",
|
|
51
|
+
"numTicks": "",
|
|
52
|
+
"axisPadding": 0,
|
|
53
|
+
"tickRotation": 0,
|
|
54
|
+
"anchors": [],
|
|
55
|
+
"type": "chart",
|
|
56
|
+
"debugSvg": false,
|
|
57
|
+
"chartMessage": {
|
|
58
|
+
"noData": "No Data Available"
|
|
59
|
+
},
|
|
60
|
+
"title": "Planet Radius (Bar Example)",
|
|
61
|
+
"showTitle": true,
|
|
62
|
+
"showDownloadMediaButton": false,
|
|
63
|
+
"showChartBrush": false,
|
|
64
|
+
"theme": "theme-blue",
|
|
65
|
+
"animate": false,
|
|
66
|
+
"fontSize": "medium",
|
|
67
|
+
"lineDatapointStyle": "hover",
|
|
68
|
+
"barHasBorder": "false",
|
|
69
|
+
"isLollipopChart": false,
|
|
70
|
+
"lollipopShape": "circle",
|
|
71
|
+
"lollipopColorStyle": "two-tone",
|
|
72
|
+
"visualizationSubType": "regular",
|
|
73
|
+
"barStyle": "",
|
|
74
|
+
"roundingStyle": "standard",
|
|
75
|
+
"tipRounding": "top",
|
|
76
|
+
"isResponsiveTicks": false,
|
|
77
|
+
"general": {
|
|
78
|
+
"showDownloadButton": false
|
|
79
|
+
},
|
|
80
|
+
"padding": {
|
|
81
|
+
"left": 5,
|
|
82
|
+
"right": 5
|
|
83
|
+
},
|
|
84
|
+
"yAxis": {
|
|
85
|
+
"hideAxis": false,
|
|
86
|
+
"displayNumbersOnBar": false,
|
|
87
|
+
"hideLabel": false,
|
|
88
|
+
"hideTicks": false,
|
|
89
|
+
"size": 50,
|
|
90
|
+
"gridLines": false,
|
|
91
|
+
"enablePadding": false,
|
|
92
|
+
"min": "",
|
|
93
|
+
"max": "",
|
|
94
|
+
"labelColor": "#333",
|
|
95
|
+
"tickLabelColor": "#333",
|
|
96
|
+
"tickColor": "#333",
|
|
97
|
+
"rightHideAxis": true,
|
|
98
|
+
"rightAxisSize": 50,
|
|
99
|
+
"rightLabel": "testing",
|
|
100
|
+
"rightLabelOffsetSize": 0,
|
|
101
|
+
"rightAxisLabelColor": "#333",
|
|
102
|
+
"rightAxisTickLabelColor": "#333",
|
|
103
|
+
"rightAxisTickColor": "#333",
|
|
104
|
+
"numTicks": "11",
|
|
105
|
+
"axisPadding": 0,
|
|
106
|
+
"tickRotation": 0,
|
|
107
|
+
"anchors": [],
|
|
108
|
+
"label": "Measurement (1000km)",
|
|
109
|
+
"rightSeries": "Diameter"
|
|
110
|
+
},
|
|
111
|
+
"boxplot": {
|
|
112
|
+
"plots": [],
|
|
113
|
+
"borders": "true",
|
|
114
|
+
"firstQuartilePercentage": 25,
|
|
115
|
+
"thirdQuartilePercentage": 75,
|
|
116
|
+
"boxWidthPercentage": 40,
|
|
117
|
+
"plotOutlierValues": false,
|
|
118
|
+
"plotNonOutlierValues": true,
|
|
119
|
+
"legend": {
|
|
120
|
+
"showHowToReadText": false,
|
|
121
|
+
"howToReadText": ""
|
|
122
|
+
},
|
|
123
|
+
"labels": {
|
|
124
|
+
"q1": "Lower Quartile",
|
|
125
|
+
"q2": "q2",
|
|
126
|
+
"q3": "Upper Quartile",
|
|
127
|
+
"q4": "q4",
|
|
128
|
+
"minimum": "Minimum",
|
|
129
|
+
"maximum": "Maximum",
|
|
130
|
+
"mean": "Mean",
|
|
131
|
+
"median": "Median",
|
|
132
|
+
"sd": "Standard Deviation",
|
|
133
|
+
"iqr": "Interquartile Range",
|
|
134
|
+
"count": "Count",
|
|
135
|
+
"outliers": "Outliers",
|
|
136
|
+
"values": "Values"
|
|
137
|
+
}
|
|
138
|
+
},
|
|
139
|
+
"topAxis": {
|
|
140
|
+
"hasLine": false
|
|
141
|
+
},
|
|
142
|
+
"isLegendValue": false,
|
|
143
|
+
"barThickness": 0.35,
|
|
144
|
+
"barHeight": 25,
|
|
145
|
+
"barSpace": 15,
|
|
146
|
+
"heights": {
|
|
147
|
+
"vertical": 300,
|
|
148
|
+
"horizontal": 320
|
|
149
|
+
},
|
|
150
|
+
"xAxis": {
|
|
151
|
+
"anchors": [],
|
|
152
|
+
"type": "categorical",
|
|
153
|
+
"showTargetLabel": true,
|
|
154
|
+
"targetLabel": "Target",
|
|
155
|
+
"hideAxis": false,
|
|
156
|
+
"hideLabel": false,
|
|
157
|
+
"hideTicks": false,
|
|
158
|
+
"size": 75,
|
|
159
|
+
"tickRotation": "0",
|
|
160
|
+
"min": "",
|
|
161
|
+
"max": "",
|
|
162
|
+
"labelColor": "#333",
|
|
163
|
+
"tickLabelColor": "#333",
|
|
164
|
+
"tickColor": "#333",
|
|
165
|
+
"numTicks": "",
|
|
166
|
+
"labelOffset": 65,
|
|
167
|
+
"axisPadding": 0,
|
|
168
|
+
"target": 0,
|
|
169
|
+
"maxTickRotation": 0,
|
|
170
|
+
"label": "Planet",
|
|
171
|
+
"dataKey": "name"
|
|
172
|
+
},
|
|
173
|
+
"table": {
|
|
174
|
+
"label": "Data Table",
|
|
175
|
+
"expanded": false,
|
|
176
|
+
"limitHeight": false,
|
|
177
|
+
"height": "",
|
|
178
|
+
"caption": "",
|
|
179
|
+
"showDownloadUrl": false,
|
|
180
|
+
"showDataTableLink": true,
|
|
181
|
+
"indexLabel": "",
|
|
182
|
+
"download": false,
|
|
183
|
+
"showVertical": false,
|
|
184
|
+
"show": true
|
|
185
|
+
},
|
|
186
|
+
"orientation": "horizontal",
|
|
187
|
+
"color": "pinkpurple",
|
|
188
|
+
"columns": {},
|
|
189
|
+
"legend": {
|
|
190
|
+
"behavior": "highlight",
|
|
191
|
+
"singleRow": false,
|
|
192
|
+
"colorCode": "",
|
|
193
|
+
"reverseLabelOrder": false,
|
|
194
|
+
"description": "",
|
|
195
|
+
"dynamicLegend": false,
|
|
196
|
+
"dynamicLegendDefaultText": "Show All",
|
|
197
|
+
"dynamicLegendItemLimit": 5,
|
|
198
|
+
"dynamicLegendItemLimitMessage": "Dynamic Legend Item Limit Hit.",
|
|
199
|
+
"dynamicLegendChartMessage": "Select Options from the Legend",
|
|
200
|
+
"position": "right",
|
|
201
|
+
"hide": false
|
|
202
|
+
},
|
|
203
|
+
"exclusions": {
|
|
204
|
+
"active": false,
|
|
205
|
+
"keys": []
|
|
206
|
+
},
|
|
207
|
+
"palette": "qualitative-bold",
|
|
208
|
+
"isPaletteReversed": false,
|
|
209
|
+
"twoColor": {
|
|
210
|
+
"palette": "monochrome-1",
|
|
211
|
+
"isPaletteReversed": false
|
|
212
|
+
},
|
|
213
|
+
"labels": false,
|
|
214
|
+
"dataFormat": {
|
|
215
|
+
"commas": false,
|
|
216
|
+
"prefix": "",
|
|
217
|
+
"suffix": "km",
|
|
218
|
+
"abbreviated": false,
|
|
219
|
+
"bottomSuffix": "",
|
|
220
|
+
"bottomPrefix": "",
|
|
221
|
+
"bottomAbbreviated": false,
|
|
222
|
+
"roundTo": 1
|
|
223
|
+
},
|
|
224
|
+
"confidenceKeys": {},
|
|
225
|
+
"visual": {
|
|
226
|
+
"border": true,
|
|
227
|
+
"accent": true,
|
|
228
|
+
"background": true,
|
|
229
|
+
"verticalHoverLine": false,
|
|
230
|
+
"horizontalHoverLine": false
|
|
231
|
+
},
|
|
232
|
+
"useLogScale": false,
|
|
233
|
+
"filterBehavior": "Filter Change",
|
|
234
|
+
"highlightedBarValues": [],
|
|
235
|
+
"series": [
|
|
236
|
+
{
|
|
237
|
+
"dataKey": "Radius",
|
|
238
|
+
"type": "Deviation Bar",
|
|
239
|
+
"axis": "Left",
|
|
240
|
+
"tooltip": true
|
|
241
|
+
}
|
|
242
|
+
],
|
|
243
|
+
"tooltips": {
|
|
244
|
+
"opacity": 90
|
|
245
|
+
},
|
|
246
|
+
"forestPlot": {
|
|
247
|
+
"startAt": 0,
|
|
248
|
+
"width": "auto",
|
|
249
|
+
"colors": {
|
|
250
|
+
"line": "",
|
|
251
|
+
"shape": ""
|
|
252
|
+
},
|
|
253
|
+
"estimateField": "",
|
|
254
|
+
"estimateRadius": "",
|
|
255
|
+
"lowerCiField": "",
|
|
256
|
+
"upperCiField": "",
|
|
257
|
+
"shape": "",
|
|
258
|
+
"rowHeight": 20,
|
|
259
|
+
"showZeroLine": false,
|
|
260
|
+
"description": {
|
|
261
|
+
"show": true,
|
|
262
|
+
"text": "description",
|
|
263
|
+
"location": 0
|
|
264
|
+
},
|
|
265
|
+
"result": {
|
|
266
|
+
"show": true,
|
|
267
|
+
"text": "result",
|
|
268
|
+
"location": 100
|
|
269
|
+
},
|
|
270
|
+
"radius": {
|
|
271
|
+
"min": 1,
|
|
272
|
+
"max": 8,
|
|
273
|
+
"scalingColumn": ""
|
|
274
|
+
},
|
|
275
|
+
"regression": {
|
|
276
|
+
"lower": 0,
|
|
277
|
+
"upper": 0,
|
|
278
|
+
"estimateField": 0
|
|
279
|
+
},
|
|
280
|
+
"leftWidthOffset": 0,
|
|
281
|
+
"rightWidthOffset": 0
|
|
282
|
+
},
|
|
283
|
+
"brush": {
|
|
284
|
+
"pattern_id": "brush_pattern",
|
|
285
|
+
"accent_color": "#ddd"
|
|
286
|
+
},
|
|
287
|
+
"area": {
|
|
288
|
+
"isStacked": false
|
|
289
|
+
},
|
|
290
|
+
"dataUrl": "/examples/feature/__data__/planet-example-data.json",
|
|
291
|
+
"visualizationType": "Bar",
|
|
292
|
+
"dataCutoff": "0.5",
|
|
293
|
+
"validated": 4.23,
|
|
294
|
+
"runtime": {
|
|
295
|
+
"originalXAxis": {
|
|
296
|
+
"anchors": [],
|
|
297
|
+
"type": "categorical",
|
|
298
|
+
"showTargetLabel": true,
|
|
299
|
+
"targetLabel": "Target",
|
|
300
|
+
"hideAxis": false,
|
|
301
|
+
"hideLabel": false,
|
|
302
|
+
"hideTicks": false,
|
|
303
|
+
"size": 75,
|
|
304
|
+
"tickRotation": "0",
|
|
305
|
+
"min": "",
|
|
306
|
+
"max": "",
|
|
307
|
+
"labelColor": "#333",
|
|
308
|
+
"tickLabelColor": "#333",
|
|
309
|
+
"tickColor": "#333",
|
|
310
|
+
"numTicks": "",
|
|
311
|
+
"labelOffset": 65,
|
|
312
|
+
"axisPadding": 0,
|
|
313
|
+
"target": 0,
|
|
314
|
+
"maxTickRotation": 0,
|
|
315
|
+
"label": "Planet",
|
|
316
|
+
"dataKey": "name"
|
|
317
|
+
},
|
|
318
|
+
"xAxis": {
|
|
319
|
+
"hideAxis": false,
|
|
320
|
+
"displayNumbersOnBar": false,
|
|
321
|
+
"hideLabel": false,
|
|
322
|
+
"hideTicks": false,
|
|
323
|
+
"size": 50,
|
|
324
|
+
"gridLines": false,
|
|
325
|
+
"enablePadding": false,
|
|
326
|
+
"min": "",
|
|
327
|
+
"max": "",
|
|
328
|
+
"labelColor": "#333",
|
|
329
|
+
"tickLabelColor": "#333",
|
|
330
|
+
"tickColor": "#333",
|
|
331
|
+
"rightHideAxis": true,
|
|
332
|
+
"rightAxisSize": 50,
|
|
333
|
+
"rightLabel": "testing",
|
|
334
|
+
"rightLabelOffsetSize": 0,
|
|
335
|
+
"rightAxisLabelColor": "#333",
|
|
336
|
+
"rightAxisTickLabelColor": "#333",
|
|
337
|
+
"rightAxisTickColor": "#333",
|
|
338
|
+
"numTicks": "11",
|
|
339
|
+
"axisPadding": 0,
|
|
340
|
+
"tickRotation": 0,
|
|
341
|
+
"anchors": [],
|
|
342
|
+
"label": "Measurement (1000km)",
|
|
343
|
+
"rightSeries": "Diameter"
|
|
344
|
+
},
|
|
345
|
+
"yAxis": {
|
|
346
|
+
"anchors": [],
|
|
347
|
+
"type": "categorical",
|
|
348
|
+
"showTargetLabel": true,
|
|
349
|
+
"targetLabel": "Target",
|
|
350
|
+
"hideAxis": false,
|
|
351
|
+
"hideLabel": false,
|
|
352
|
+
"hideTicks": false,
|
|
353
|
+
"size": 75,
|
|
354
|
+
"tickRotation": "0",
|
|
355
|
+
"min": "",
|
|
356
|
+
"max": "",
|
|
357
|
+
"labelColor": "#333",
|
|
358
|
+
"tickLabelColor": "#333",
|
|
359
|
+
"tickColor": "#333",
|
|
360
|
+
"numTicks": "",
|
|
361
|
+
"labelOffset": 65,
|
|
362
|
+
"axisPadding": 0,
|
|
363
|
+
"target": 0,
|
|
364
|
+
"maxTickRotation": 0,
|
|
365
|
+
"label": "Planet",
|
|
366
|
+
"dataKey": "name"
|
|
367
|
+
},
|
|
368
|
+
"horizontal": true,
|
|
369
|
+
"uniqueId": 1695151712094,
|
|
370
|
+
"editorErrorMessage": ""
|
|
371
|
+
},
|
|
372
|
+
"dynamicMarginTop": 0,
|
|
373
|
+
"labelPlacement": "Below Bar"
|
|
374
|
+
},
|
|
375
|
+
"boxplot": {
|
|
376
|
+
"plots": [],
|
|
377
|
+
"borders": "true",
|
|
378
|
+
"firstQuartilePercentage": 25,
|
|
379
|
+
"thirdQuartilePercentage": 75,
|
|
380
|
+
"boxWidthPercentage": 40,
|
|
381
|
+
"plotOutlierValues": false,
|
|
382
|
+
"plotNonOutlierValues": true,
|
|
383
|
+
"legend": {
|
|
384
|
+
"showHowToReadText": false,
|
|
385
|
+
"howToReadText": ""
|
|
386
|
+
},
|
|
387
|
+
"labels": {
|
|
388
|
+
"q1": "Lower Quartile",
|
|
389
|
+
"q2": "q2",
|
|
390
|
+
"q3": "Upper Quartile",
|
|
391
|
+
"q4": "q4",
|
|
392
|
+
"minimum": "Minimum",
|
|
393
|
+
"maximum": "Maximum",
|
|
394
|
+
"mean": "Mean",
|
|
395
|
+
"median": "Median",
|
|
396
|
+
"sd": "Standard Deviation",
|
|
397
|
+
"iqr": "Interquartile Range",
|
|
398
|
+
"count": "Count",
|
|
399
|
+
"outliers": "Outliers",
|
|
400
|
+
"values": "Values"
|
|
401
|
+
}
|
|
402
|
+
},
|
|
403
|
+
"topAxis": {
|
|
404
|
+
"hasLine": false
|
|
405
|
+
},
|
|
406
|
+
"isLegendValue": false,
|
|
407
|
+
"barThickness": 0.35,
|
|
408
|
+
"barHeight": 25,
|
|
409
|
+
"barSpace": 15,
|
|
410
|
+
"heights": {
|
|
411
|
+
"vertical": 300,
|
|
412
|
+
"horizontal": 692.8
|
|
413
|
+
},
|
|
414
|
+
"xAxis": {
|
|
415
|
+
"anchors": [],
|
|
416
|
+
"type": "categorical",
|
|
417
|
+
"showTargetLabel": true,
|
|
418
|
+
"targetLabel": "Target",
|
|
419
|
+
"hideAxis": false,
|
|
420
|
+
"hideLabel": false,
|
|
421
|
+
"hideTicks": false,
|
|
422
|
+
"size": 75,
|
|
423
|
+
"tickRotation": "0",
|
|
424
|
+
"min": "",
|
|
425
|
+
"max": "",
|
|
426
|
+
"labelColor": "#333",
|
|
427
|
+
"tickLabelColor": "#333",
|
|
428
|
+
"tickColor": "#333",
|
|
429
|
+
"numTicks": "",
|
|
430
|
+
"labelOffset": 65,
|
|
431
|
+
"axisPadding": 0,
|
|
432
|
+
"target": 0,
|
|
433
|
+
"maxTickRotation": 0,
|
|
434
|
+
"label": "Planet",
|
|
435
|
+
"dataKey": "name"
|
|
436
|
+
},
|
|
437
|
+
"table": {
|
|
438
|
+
"label": "Data Table",
|
|
439
|
+
"expanded": false,
|
|
440
|
+
"limitHeight": false,
|
|
441
|
+
"height": "",
|
|
442
|
+
"caption": "",
|
|
443
|
+
"showDownloadUrl": false,
|
|
444
|
+
"showDataTableLink": true,
|
|
445
|
+
"indexLabel": "",
|
|
446
|
+
"download": false,
|
|
447
|
+
"showVertical": false,
|
|
448
|
+
"show": true
|
|
449
|
+
},
|
|
450
|
+
"orientation": "vertical",
|
|
451
|
+
"color": "pinkpurple",
|
|
452
|
+
"columns": {},
|
|
453
|
+
"legend": {
|
|
454
|
+
"behavior": "highlight",
|
|
455
|
+
"singleRow": false,
|
|
456
|
+
"colorCode": "",
|
|
457
|
+
"reverseLabelOrder": false,
|
|
458
|
+
"description": "",
|
|
459
|
+
"dynamicLegend": false,
|
|
460
|
+
"dynamicLegendDefaultText": "Show All",
|
|
461
|
+
"dynamicLegendItemLimit": 5,
|
|
462
|
+
"dynamicLegendItemLimitMessage": "Dynamic Legend Item Limit Hit.",
|
|
463
|
+
"dynamicLegendChartMessage": "Select Options from the Legend",
|
|
464
|
+
"position": "right",
|
|
465
|
+
"hide": false
|
|
466
|
+
},
|
|
467
|
+
"exclusions": {
|
|
468
|
+
"active": false,
|
|
469
|
+
"keys": []
|
|
470
|
+
},
|
|
471
|
+
"palette": "qualitative-bold",
|
|
472
|
+
"isPaletteReversed": false,
|
|
473
|
+
"twoColor": {
|
|
474
|
+
"palette": "monochrome-1",
|
|
475
|
+
"isPaletteReversed": false
|
|
476
|
+
},
|
|
477
|
+
"labels": false,
|
|
478
|
+
"dataFormat": {
|
|
479
|
+
"commas": false,
|
|
480
|
+
"prefix": "",
|
|
481
|
+
"suffix": "km",
|
|
482
|
+
"abbreviated": false,
|
|
483
|
+
"bottomSuffix": "",
|
|
484
|
+
"bottomPrefix": "",
|
|
485
|
+
"bottomAbbreviated": false,
|
|
486
|
+
"roundTo": 1
|
|
487
|
+
},
|
|
488
|
+
"confidenceKeys": {},
|
|
489
|
+
"visual": {
|
|
490
|
+
"border": true,
|
|
491
|
+
"accent": true,
|
|
492
|
+
"background": true,
|
|
493
|
+
"verticalHoverLine": false,
|
|
494
|
+
"horizontalHoverLine": false
|
|
495
|
+
},
|
|
496
|
+
"useLogScale": false,
|
|
497
|
+
"filterBehavior": "Filter Change",
|
|
498
|
+
"highlightedBarValues": [],
|
|
499
|
+
"series": [
|
|
500
|
+
{
|
|
501
|
+
"dataKey": "Radius",
|
|
502
|
+
"type": "Bar",
|
|
503
|
+
"axis": "Left",
|
|
504
|
+
"tooltip": true,
|
|
505
|
+
"name": ""
|
|
506
|
+
},
|
|
507
|
+
{
|
|
508
|
+
"dataKey": "Diameter",
|
|
509
|
+
"type": "Bar",
|
|
510
|
+
"axis": "Left",
|
|
511
|
+
"tooltip": true,
|
|
512
|
+
"name": ""
|
|
513
|
+
}
|
|
514
|
+
],
|
|
515
|
+
"tooltips": {
|
|
516
|
+
"opacity": 90
|
|
517
|
+
},
|
|
518
|
+
"forestPlot": {
|
|
519
|
+
"startAt": 0,
|
|
520
|
+
"width": "auto",
|
|
521
|
+
"colors": {
|
|
522
|
+
"line": "",
|
|
523
|
+
"shape": ""
|
|
524
|
+
},
|
|
525
|
+
"estimateField": "",
|
|
526
|
+
"estimateRadius": "",
|
|
527
|
+
"lowerCiField": "",
|
|
528
|
+
"upperCiField": "",
|
|
529
|
+
"shape": "",
|
|
530
|
+
"rowHeight": 20,
|
|
531
|
+
"showZeroLine": false,
|
|
532
|
+
"description": {
|
|
533
|
+
"show": true,
|
|
534
|
+
"text": "description",
|
|
535
|
+
"location": 0
|
|
536
|
+
},
|
|
537
|
+
"result": {
|
|
538
|
+
"show": true,
|
|
539
|
+
"text": "result",
|
|
540
|
+
"location": 100
|
|
541
|
+
},
|
|
542
|
+
"radius": {
|
|
543
|
+
"min": 1,
|
|
544
|
+
"max": 8,
|
|
545
|
+
"scalingColumn": ""
|
|
546
|
+
},
|
|
547
|
+
"regression": {
|
|
548
|
+
"lower": 0,
|
|
549
|
+
"upper": 0,
|
|
550
|
+
"estimateField": 0
|
|
551
|
+
},
|
|
552
|
+
"leftWidthOffset": 0,
|
|
553
|
+
"rightWidthOffset": 0
|
|
554
|
+
},
|
|
555
|
+
"brush": {
|
|
556
|
+
"pattern_id": "brush_pattern",
|
|
557
|
+
"accent_color": "#ddd"
|
|
558
|
+
},
|
|
559
|
+
"area": {
|
|
560
|
+
"isStacked": false
|
|
561
|
+
},
|
|
562
|
+
"dataUrl": "/examples/feature/__data__/planet-example-data.json",
|
|
563
|
+
"visualizationType": "Line",
|
|
564
|
+
"dataCutoff": "0.5",
|
|
565
|
+
"validated": 4.23,
|
|
566
|
+
"dynamicMarginTop": 0
|
|
567
|
+
}
|
package/index.html
CHANGED
|
@@ -34,14 +34,18 @@
|
|
|
34
34
|
-->
|
|
35
35
|
|
|
36
36
|
<!-- GENERIC CHART TYPES -->
|
|
37
|
-
<!-- <div class="react-container" data-config="/examples/private/
|
|
37
|
+
<!-- <div class="react-container" data-config="/examples/private/line-breaks.json"></div> -->
|
|
38
|
+
<!-- <div class="react-container" data-config="/examples/private/combo.json"></div> -->
|
|
39
|
+
<!-- <div class="react-container" data-config="/examples/feature/legend-highlights/highlights.json"></div> -->
|
|
40
|
+
<!-- <div class="react-container" data-config="/examples/private/tooltip-issue.json"></div> -->
|
|
38
41
|
<!-- <div class="react-container" data-config="https://cdc.gov/poxvirus/mpox/modules/data-viz/mpx-trends_1.json"></div> -->
|
|
39
|
-
<!-- <div class="react-container" data-config="/examples/
|
|
40
|
-
<div class="react-container" data-config="/examples/feature/area/area-chart-date-city-temperature.json"></div>
|
|
42
|
+
<!-- <div class="react-container" data-config="/examples/feature/area/area-chart-date-city-temperature.json"></div> -->
|
|
41
43
|
<!-- <div class="react-container" data-config="/examples/feature/area/area-chart-date-apple.json"></div> -->
|
|
42
|
-
<!-- <div class="react-container" data-config="/examples/feature/
|
|
44
|
+
<!-- <div class="react-container" data-config="/examples/feature/area/area-chart-stacked.json"></div> -->
|
|
43
45
|
<!-- <div class="react-container" data-config="/examples/feature/forest-plot/forest-plot.json"></div> -->
|
|
44
46
|
<!-- <div class="react-container" data-config="/examples/feature/pie/planet-pie-example-config.json"></div> -->
|
|
47
|
+
<!-- <div class="react-container" data-config=https://www.cdc.gov/wcms/4.0/cdc-wp/data-presentation/examples/Line_Chart_Viz.json></div> -->
|
|
48
|
+
<!-- <div class="react-container" data-config=https://www.cdc.gov/wcms/4.0/cdc-wp/data-presentation/examples/Line_Chart_Regions_Viz.json></div> -->
|
|
45
49
|
<!-- <div class="react-container" data-config="/examples/feature/line/line-chart.json"></div> -->
|
|
46
50
|
<!-- <div class="react-container" data-config="/examples/feature/forecasting/forecasting.json"></div> -->
|
|
47
51
|
<!-- <div class="react-container" data-config="/examples/feature/forecasting/combo-forecasting.json"></div> -->
|
|
@@ -77,7 +81,6 @@
|
|
|
77
81
|
<!-- <div class="react-container" data-config="https://wwwdev-cdc.msappproxy.net/poxvirus/mpox/modules/data-viz/lab-data.json"></div> -->
|
|
78
82
|
<!-- <div class="react-container" data-config="https://wwwdev-cdc.msappproxy.net/poxvirus/mpox/modules/data-viz/lab-data-age.json"></div> -->
|
|
79
83
|
<!-- PROBLEM WITH THEIR PAGE CONFIG or CONFLICT with -->
|
|
80
|
-
<!-- <div class="react-container" data-config="/examples/private/outbreak-repro-bug.json"></div> -->
|
|
81
84
|
<!-- CORS ERROR pulling data on Covid Flu RSV page at https://wwwdev-cdc.msappproxy.net/respiratory-viruses/index.html-->
|
|
82
85
|
<!-- <div class="react-container" data-config="https://wwwdev-cdc.msappproxy.net/respiratory-viruses/modules/emergency-dept-visits_live.json"></div> -->
|
|
83
86
|
<!-- MPOX -->
|
|
@@ -129,8 +132,8 @@
|
|
|
129
132
|
<!-- <div class="react-container" data-config="/examples/gallery/bar-chart-vertical/vertical-bar-chart-categorical.json"></div> -->
|
|
130
133
|
<!-- <div class="react-container" data-config="/examples/gallery/bar-chart-vertical/vertical-bar-chart-stacked.json"></div> -->
|
|
131
134
|
<!-- <div class="react-container" data-config="/examples/gallery/bar-chart-vertical/vertical-bar-chart-confidence.json"></div> -->
|
|
132
|
-
<!-- <div class="react-container" data-config="/examples/gallery/bar-chart-vertical/vertical-bar-chart-confidence.json"></div> -->
|
|
133
135
|
<!-- <div class="react-container" data-config="/examples/gallery/bar-chart-vertical/vertical-bar-chart.json"></div> -->
|
|
136
|
+
<div class="react-container" data-config="https://www.cdc.gov/respiratory-viruses/modules/respiratory-virus-activity/emergency-dept-visits_live.json"></div>
|
|
134
137
|
|
|
135
138
|
<noscript>You need to enable JavaScript to run this app.</noscript>
|
|
136
139
|
</body>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cdc/chart",
|
|
3
|
-
"version": "4.23.
|
|
3
|
+
"version": "4.23.10",
|
|
4
4
|
"description": "React component for visualizing tabular data in various types of charts",
|
|
5
5
|
"moduleName": "CdcChart",
|
|
6
6
|
"main": "dist/cdcchart",
|
|
@@ -48,6 +48,7 @@
|
|
|
48
48
|
"js-base64": "^2.5.2",
|
|
49
49
|
"papaparse": "^5.3.0",
|
|
50
50
|
"react-accessible-accordion": "^3.3.4",
|
|
51
|
+
"react-icons": "^4.10.1",
|
|
51
52
|
"react-spring": "^8.0.27",
|
|
52
53
|
"react-table": "^7.5.0",
|
|
53
54
|
"react-tooltip": "5.8.2-beta.3",
|
|
@@ -58,7 +59,7 @@
|
|
|
58
59
|
"react": "^18.2.0",
|
|
59
60
|
"react-dom": "^18.2.0"
|
|
60
61
|
},
|
|
61
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "ff5b1ca0c84bb0629bc69e5a26a4a81254dbf69f",
|
|
62
63
|
"devDependencies": {
|
|
63
64
|
"resize-observer-polyfill": "^1.5.1"
|
|
64
65
|
}
|