@cdc/chart 4.25.3 → 4.25.6

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.
Files changed (86) hide show
  1. package/dist/cdcchart.js +46641 -42561
  2. package/index.html +130 -129
  3. package/package.json +22 -27
  4. package/src/CdcChartComponent.tsx +75 -35
  5. package/src/_stories/Chart.CI.stories.tsx +10 -0
  6. package/src/_stories/Chart.DynamicSeries.stories.tsx +68 -49
  7. package/src/_stories/Chart.stories.tsx +99 -86
  8. package/src/_stories/ChartPrefixSuffix.stories.tsx +29 -32
  9. package/{examples/private/line-issue.json → src/_stories/_mock/barchart_labels.mock.json} +150 -35
  10. package/src/_stories/_mock/dynamic_series_bar_config.json +1 -1
  11. package/src/_stories/_mock/dynamic_series_suppression_mock.json +610 -0
  12. package/{examples/private/not-loading.json → src/_stories/_mock/pie_calculated_area.json} +152 -95
  13. package/src/components/Annotations/components/AnnotationDropdown.tsx +2 -2
  14. package/src/components/AreaChart/components/AreaChart.jsx +33 -5
  15. package/src/components/Axis/Categorical.Axis.tsx +2 -2
  16. package/src/components/BarChart/components/BarChart.Horizontal.tsx +38 -37
  17. package/src/components/BarChart/components/BarChart.StackedHorizontal.tsx +18 -8
  18. package/src/components/BarChart/components/BarChart.StackedVertical.tsx +8 -8
  19. package/src/components/BarChart/components/BarChart.Vertical.tsx +47 -36
  20. package/src/components/BarChart/components/{BarChart.jsx → BarChart.tsx} +23 -5
  21. package/src/components/BarChart/components/context.tsx +20 -2
  22. package/src/components/BarChart/helpers/getBarHeights.ts +47 -0
  23. package/src/components/BarChart/helpers/index.ts +5 -2
  24. package/src/components/BarChart/helpers/tests/getBarHeights.test.ts +83 -0
  25. package/src/{hooks → components/BarChart/helpers}/useBarChart.ts +9 -46
  26. package/src/components/BoxPlot/BoxPlot.tsx +2 -1
  27. package/src/components/Brush/BrushChart.tsx +73 -0
  28. package/src/components/Brush/BrushController..tsx +39 -0
  29. package/src/components/DeviationBar.jsx +2 -2
  30. package/src/components/EditorPanel/EditorPanel.tsx +232 -147
  31. package/src/components/EditorPanel/components/Panels/Panel.General.tsx +36 -36
  32. package/src/components/EditorPanel/components/Panels/Panel.Series.tsx +52 -25
  33. package/src/components/EditorPanel/components/Panels/Panel.Visual.tsx +12 -4
  34. package/src/components/EditorPanel/components/Panels/panelVisual.styles.css +8 -0
  35. package/src/components/EditorPanel/useEditorPermissions.ts +5 -5
  36. package/src/components/ForestPlot/ForestPlot.tsx +2 -2
  37. package/src/components/HoverLine/HoverLine.tsx +74 -0
  38. package/src/components/Legend/Legend.Component.tsx +1 -1
  39. package/src/components/Legend/Legend.Suppression.tsx +59 -25
  40. package/src/components/Legend/helpers/createFormatLabels.tsx +28 -0
  41. package/src/components/Legend/helpers/index.ts +1 -1
  42. package/src/components/LineChart/LineChartProps.ts +3 -1
  43. package/src/components/LineChart/components/LineChart.Circle.tsx +72 -119
  44. package/src/components/LineChart/helpers.ts +133 -56
  45. package/src/components/LineChart/index.tsx +106 -55
  46. package/src/components/LinearChart.tsx +178 -198
  47. package/src/components/PairedBarChart.jsx +3 -2
  48. package/src/components/PieChart/PieChart.tsx +127 -102
  49. package/src/components/ScatterPlot/ScatterPlot.jsx +5 -0
  50. package/src/components/Sparkline/components/SparkLine.tsx +80 -18
  51. package/src/data/initial-state.js +11 -6
  52. package/src/helpers/countNumOfTicks.ts +1 -1
  53. package/src/helpers/dataHelpers.ts +23 -2
  54. package/src/helpers/getNewRuntime.ts +35 -0
  55. package/src/helpers/getPiePercent.ts +22 -0
  56. package/src/helpers/getTransformedData.ts +22 -0
  57. package/src/helpers/sizeHelpers.ts +1 -1
  58. package/src/helpers/tests/getNewRuntime.test.ts +82 -0
  59. package/src/helpers/tests/getPiePercent.test.ts +38 -0
  60. package/src/hooks/useMinMax.ts +21 -28
  61. package/src/hooks/useRightAxis.ts +5 -3
  62. package/src/hooks/useScales.ts +15 -6
  63. package/src/hooks/useTooltip.tsx +218 -203
  64. package/src/index.jsx +2 -2
  65. package/src/scss/main.scss +13 -6
  66. package/src/store/chart.actions.ts +2 -6
  67. package/src/store/chart.reducer.ts +23 -23
  68. package/src/types/ChartConfig.ts +11 -3
  69. package/src/types/ChartContext.ts +0 -2
  70. package/examples/private/DEV-8850-2.json +0 -493
  71. package/examples/private/DEV-9822.json +0 -574
  72. package/examples/private/DEV-9840.json +0 -553
  73. package/examples/private/DEV-9850-3.json +0 -461
  74. package/examples/private/chart.json +0 -1084
  75. package/examples/private/ci_formatted.json +0 -202
  76. package/examples/private/ci_issue.json +0 -3016
  77. package/examples/private/completed.json +0 -634
  78. package/examples/private/dem-data-long.csv +0 -20
  79. package/examples/private/dem-data-long.json +0 -36
  80. package/examples/private/demographic_data.csv +0 -157
  81. package/examples/private/demographic_data.json +0 -2654
  82. package/examples/private/demographic_dynamic.json +0 -443
  83. package/examples/private/demographic_standard.json +0 -560
  84. package/examples/private/ehdi.json +0 -29939
  85. package/examples/private/test.json +0 -493
  86. package/src/components/ZoomBrush.tsx +0 -251
@@ -1,1084 +0,0 @@
1
- {
2
- "annotations": [],
3
- "type": "chart",
4
- "debugSvg": false,
5
- "chartMessage": {
6
- "noData": "No Data Available"
7
- },
8
- "title": "",
9
- "showTitle": true,
10
- "showDownloadMediaButton": false,
11
- "theme": "theme-blue",
12
- "animate": false,
13
- "fontSize": "medium",
14
- "lineDatapointStyle": "hover",
15
- "lineDatapointColor": "Same as Line",
16
- "barHasBorder": "false",
17
- "isLollipopChart": false,
18
- "lollipopShape": "circle",
19
- "lollipopColorStyle": "two-tone",
20
- "visualizationSubType": "regular",
21
- "barStyle": "flat",
22
- "roundingStyle": "standard",
23
- "tipRounding": "top",
24
- "isResponsiveTicks": false,
25
- "general": {
26
- "annotationDropdownText": "Annotations",
27
- "showDownloadButton": false,
28
- "showMissingDataLabel": true,
29
- "showSuppressedSymbol": true,
30
- "showZeroValueData": true,
31
- "hideNullValue": true
32
- },
33
- "padding": {
34
- "left": 5,
35
- "right": 5
36
- },
37
- "preliminaryData": [
38
- {
39
- "type": "effect",
40
- "seriesKey": "COVID-19",
41
- "label": "Less than 80% of hospitals reporting",
42
- "column": "reporting_above_80_percent",
43
- "value": "False",
44
- "style": "Open Circles",
45
- "displayTooltip": true,
46
- "displayLegend": true,
47
- "displayTable": true,
48
- "symbol": "",
49
- "iconCode": "",
50
- "lineCode": "◯",
51
- "hideBarSymbol": false,
52
- "hideLineStyle": false,
53
- "circleSize": 6,
54
- "displayGray": true
55
- },
56
- {
57
- "type": "effect",
58
- "seriesKey": "Influenza",
59
- "label": "",
60
- "column": "reporting_above_80_percent",
61
- "value": "False",
62
- "style": "Open Circles",
63
- "displayTooltip": true,
64
- "displayLegend": true,
65
- "displayTable": true,
66
- "symbol": "",
67
- "iconCode": "",
68
- "lineCode": "◯",
69
- "hideBarSymbol": false,
70
- "hideLineStyle": false,
71
- "circleSize": 6,
72
- "displayGray": true
73
- },
74
- {
75
- "type": "effect",
76
- "seriesKey": "RSV",
77
- "label": "",
78
- "column": "reporting_above_80_percent",
79
- "value": "False",
80
- "style": "Open Circles",
81
- "displayTooltip": true,
82
- "displayLegend": true,
83
- "displayTable": true,
84
- "symbol": "",
85
- "iconCode": "",
86
- "lineCode": "◯",
87
- "hideBarSymbol": false,
88
- "hideLineStyle": false,
89
- "circleSize": 6,
90
- "displayGray": true
91
- }
92
- ],
93
- "yAxis": {
94
- "hideAxis": true,
95
- "displayNumbersOnBar": false,
96
- "hideLabel": false,
97
- "hideTicks": true,
98
- "size": "20",
99
- "gridLines": true,
100
- "enablePadding": true,
101
- "min": "",
102
- "max": "",
103
- "labelColor": "#333",
104
- "tickLabelColor": "#333",
105
- "tickColor": "#333",
106
- "rightHideAxis": true,
107
- "rightAxisSize": 0,
108
- "rightLabel": "",
109
- "rightLabelOffsetSize": 0,
110
- "rightAxisLabelColor": "#333",
111
- "rightAxisTickLabelColor": "#333",
112
- "rightAxisTickColor": "#333",
113
- "numTicks": "5",
114
- "axisPadding": 0,
115
- "scalePadding": "20",
116
- "tickRotation": 0,
117
- "anchors": [],
118
- "shoMissingDataLabel": true,
119
- "showMissingDataLine": true,
120
- "categories": [],
121
- "label": ""
122
- },
123
- "boxplot": {
124
- "plots": [],
125
- "borders": "true",
126
- "plotOutlierValues": false,
127
- "plotNonOutlierValues": true,
128
- "labels": {
129
- "q1": "Lower Quartile",
130
- "q2": "q2",
131
- "q3": "Upper Quartile",
132
- "q4": "q4",
133
- "minimum": "Minimum",
134
- "maximum": "Maximum",
135
- "mean": "Mean",
136
- "median": "Median",
137
- "sd": "Standard Deviation",
138
- "iqr": "Interquartile Range",
139
- "total": "Total",
140
- "outliers": "Outliers",
141
- "values": "Values",
142
- "lowerBounds": "Lower Bounds",
143
- "upperBounds": "Upper Bounds"
144
- },
145
- "firstQuartilePercentage": 25,
146
- "thirdQuartilePercentage": 75,
147
- "boxWidthPercentage": 40,
148
- "legend": {
149
- "showHowToReadText": false,
150
- "howToReadText": ""
151
- }
152
- },
153
- "topAxis": {
154
- "hasLine": false
155
- },
156
- "isLegendValue": false,
157
- "barThickness": 0.35,
158
- "barHeight": 25,
159
- "barSpace": 15,
160
- "heights": {
161
- "vertical": "250",
162
- "horizontal": 750,
163
- "mobileVertical": "150"
164
- },
165
- "xAxis": {
166
- "sortDates": false,
167
- "anchors": [],
168
- "type": "date-time",
169
- "showTargetLabel": true,
170
- "targetLabel": "Target",
171
- "hideAxis": false,
172
- "hideLabel": false,
173
- "hideTicks": false,
174
- "size": "110",
175
- "tickRotation": "",
176
- "min": "",
177
- "max": "",
178
- "labelColor": "#333",
179
- "tickLabelColor": "#333",
180
- "tickColor": "#333",
181
- "numTicks": "6",
182
- "labelOffset": 0,
183
- "axisPadding": 0,
184
- "target": 0,
185
- "maxTickRotation": 0,
186
- "padding": "0",
187
- "showYearsOnce": true,
188
- "sortByRecentDate": false,
189
- "dataKey": "week_end",
190
- "dateParseFormat": "%Y-%m-%d",
191
- "dateDisplayFormat": "%b. %-d %Y",
192
- "label": "",
193
- "tickWidthMax": 96,
194
- "axisBBox": 38.939998626708984,
195
- "manual": true,
196
- "viewportNumTicks": {
197
- "xs": "4",
198
- "xxs": "4"
199
- }
200
- },
201
- "table": {
202
- "label": "Data Table",
203
- "expanded": false,
204
- "limitHeight": false,
205
- "height": "",
206
- "caption": "",
207
- "showDownloadUrl": false,
208
- "showDataTableLink": true,
209
- "showDownloadLinkBelow": true,
210
- "indexLabel": "Week Ending",
211
- "download": true,
212
- "showVertical": true,
213
- "dateDisplayFormat": "",
214
- "showMissingDataLabel": true,
215
- "showSuppressedSymbol": true,
216
- "show": true
217
- },
218
- "orientation": "vertical",
219
- "color": "pinkpurple",
220
- "columns": {
221
- "percent_hospitals_reporting": {
222
- "label": "Percent of Hospitals Reporting",
223
- "dataTable": true,
224
- "tooltips": true,
225
- "prefix": "",
226
- "suffix": "%",
227
- "forestPlot": false,
228
- "startingPoint": "0",
229
- "forestPlotAlignRight": false,
230
- "roundToPlace": 0,
231
- "commas": false,
232
- "showInViz": false,
233
- "forestPlotStartingPoint": 0,
234
- "name": "percent_hospitals_reporting"
235
- }
236
- },
237
- "legend": {
238
- "hide": false,
239
- "behavior": "isolate",
240
- "axisAlign": true,
241
- "singleRow": true,
242
- "colorCode": "",
243
- "reverseLabelOrder": false,
244
- "description": "",
245
- "dynamicLegend": false,
246
- "dynamicLegendDefaultText": "Show All",
247
- "dynamicLegendItemLimit": 5,
248
- "dynamicLegendItemLimitMessage": "Dynamic Legend Item Limit Hit.",
249
- "dynamicLegendChartMessage": "Select Options from the Legend",
250
- "label": "Respiratory Virus",
251
- "lineMode": false,
252
- "verticalSorted": false,
253
- "highlightOnHover": false,
254
- "hideSuppressedLabels": false,
255
- "hideSuppressionLink": false,
256
- "seriesHighlight": [],
257
- "style": "lines",
258
- "subStyle": "linear blocks",
259
- "tickRotation": "",
260
- "hideBorder": {
261
- "side": false,
262
- "topBottom": true
263
- },
264
- "position": "bottom"
265
- },
266
- "brush": {
267
- "height": 25,
268
- "active": false,
269
- "data": [
270
- {
271
- "week_end": "2022-10-01",
272
- "**Numeric Value Property**": "new_admissions_100k_currentweek",
273
- "geography": "",
274
- "COVID-19": "7.3",
275
- "Influenza": "0.3"
276
- },
277
- {
278
- "week_end": "2022-10-08",
279
- "**Numeric Value Property**": "new_admissions_100k_currentweek",
280
- "geography": "",
281
- "COVID-19": "7.1",
282
- "Influenza": "0.4"
283
- },
284
- {
285
- "week_end": "2022-10-15",
286
- "**Numeric Value Property**": "new_admissions_100k_currentweek",
287
- "geography": "",
288
- "COVID-19": "6.9",
289
- "Influenza": "0.5"
290
- },
291
- {
292
- "week_end": "2022-10-22",
293
- "**Numeric Value Property**": "new_admissions_100k_currentweek",
294
- "geography": "",
295
- "COVID-19": "6.9",
296
- "Influenza": "0.7"
297
- },
298
- {
299
- "week_end": "2022-10-29",
300
- "**Numeric Value Property**": "new_admissions_100k_currentweek",
301
- "geography": "",
302
- "COVID-19": "7.0",
303
- "Influenza": "1.2"
304
- },
305
- {
306
- "week_end": "2022-11-05",
307
- "**Numeric Value Property**": "new_admissions_100k_currentweek",
308
- "geography": "",
309
- "COVID-19": "7.1",
310
- "Influenza": "1.9"
311
- },
312
- {
313
- "week_end": "2022-11-12",
314
- "**Numeric Value Property**": "new_admissions_100k_currentweek",
315
- "geography": "",
316
- "COVID-19": "7.2",
317
- "Influenza": "2.5"
318
- },
319
- {
320
- "week_end": "2022-11-19",
321
- "**Numeric Value Property**": "new_admissions_100k_currentweek",
322
- "geography": "",
323
- "COVID-19": "7.3",
324
- "Influenza": "3.2"
325
- },
326
- {
327
- "week_end": "2022-11-26",
328
- "**Numeric Value Property**": "new_admissions_100k_currentweek",
329
- "geography": "",
330
- "COVID-19": "8.0",
331
- "Influenza": "5.4"
332
- },
333
- {
334
- "week_end": "2022-12-03",
335
- "**Numeric Value Property**": "new_admissions_100k_currentweek",
336
- "geography": "",
337
- "COVID-19": "10.2",
338
- "Influenza": "7.9"
339
- },
340
- {
341
- "week_end": "2022-12-10",
342
- "**Numeric Value Property**": "new_admissions_100k_currentweek",
343
- "geography": "",
344
- "COVID-19": "10.5",
345
- "Influenza": "7.1"
346
- },
347
- {
348
- "week_end": "2022-12-17",
349
- "**Numeric Value Property**": "new_admissions_100k_currentweek",
350
- "geography": "",
351
- "COVID-19": "11.0",
352
- "Influenza": "6.4"
353
- },
354
- {
355
- "week_end": "2022-12-24",
356
- "**Numeric Value Property**": "new_admissions_100k_currentweek",
357
- "geography": "",
358
- "COVID-19": "11.8",
359
- "Influenza": "5.9"
360
- },
361
- {
362
- "week_end": "2022-12-31",
363
- "**Numeric Value Property**": "new_admissions_100k_currentweek",
364
- "geography": "",
365
- "COVID-19": "13.4",
366
- "Influenza": "5.8"
367
- },
368
- {
369
- "week_end": "2023-01-07",
370
- "**Numeric Value Property**": "new_admissions_100k_currentweek",
371
- "geography": "",
372
- "COVID-19": "13.4",
373
- "Influenza": "4.2"
374
- },
375
- {
376
- "week_end": "2023-01-14",
377
- "**Numeric Value Property**": "new_admissions_100k_currentweek",
378
- "geography": "",
379
- "COVID-19": "11.3",
380
- "Influenza": "2.2"
381
- },
382
- {
383
- "week_end": "2023-01-21",
384
- "**Numeric Value Property**": "new_admissions_100k_currentweek",
385
- "geography": "",
386
- "COVID-19": "9.5",
387
- "Influenza": "1.3"
388
- },
389
- {
390
- "week_end": "2023-01-28",
391
- "**Numeric Value Property**": "new_admissions_100k_currentweek",
392
- "geography": "",
393
- "COVID-19": "8.5",
394
- "Influenza": "0.9"
395
- },
396
- {
397
- "week_end": "2023-02-04",
398
- "**Numeric Value Property**": "new_admissions_100k_currentweek",
399
- "geography": "",
400
- "COVID-19": "8.0",
401
- "Influenza": "0.7"
402
- },
403
- {
404
- "week_end": "2023-02-11",
405
- "**Numeric Value Property**": "new_admissions_100k_currentweek",
406
- "geography": "",
407
- "COVID-19": "8.0",
408
- "Influenza": "0.7"
409
- },
410
- {
411
- "week_end": "2023-02-18",
412
- "**Numeric Value Property**": "new_admissions_100k_currentweek",
413
- "geography": "",
414
- "COVID-19": "7.7",
415
- "Influenza": "0.6"
416
- },
417
- {
418
- "week_end": "2023-02-25",
419
- "**Numeric Value Property**": "new_admissions_100k_currentweek",
420
- "geography": "",
421
- "COVID-19": "7.3",
422
- "Influenza": "0.5"
423
- },
424
- {
425
- "week_end": "2023-03-04",
426
- "**Numeric Value Property**": "new_admissions_100k_currentweek",
427
- "geography": "",
428
- "COVID-19": "6.7",
429
- "Influenza": "0.4"
430
- },
431
- {
432
- "week_end": "2023-03-11",
433
- "**Numeric Value Property**": "new_admissions_100k_currentweek",
434
- "geography": "",
435
- "COVID-19": "6.1",
436
- "Influenza": "0.4"
437
- },
438
- {
439
- "week_end": "2023-03-18",
440
- "**Numeric Value Property**": "new_admissions_100k_currentweek",
441
- "geography": "",
442
- "COVID-19": "5.5",
443
- "Influenza": "0.4"
444
- },
445
- {
446
- "week_end": "2023-03-25",
447
- "**Numeric Value Property**": "new_admissions_100k_currentweek",
448
- "geography": "",
449
- "COVID-19": "5.2",
450
- "Influenza": "0.4"
451
- },
452
- {
453
- "week_end": "2023-04-01",
454
- "**Numeric Value Property**": "new_admissions_100k_currentweek",
455
- "geography": "",
456
- "COVID-19": "4.8",
457
- "Influenza": "0.4"
458
- },
459
- {
460
- "week_end": "2023-04-08",
461
- "**Numeric Value Property**": "new_admissions_100k_currentweek",
462
- "geography": "",
463
- "COVID-19": "4.4",
464
- "Influenza": "0.4"
465
- },
466
- {
467
- "week_end": "2023-04-15",
468
- "**Numeric Value Property**": "new_admissions_100k_currentweek",
469
- "geography": "",
470
- "COVID-19": "4.0",
471
- "Influenza": "0.3"
472
- },
473
- {
474
- "week_end": "2023-04-22",
475
- "**Numeric Value Property**": "new_admissions_100k_currentweek",
476
- "geography": "",
477
- "COVID-19": "3.6",
478
- "Influenza": "0.3"
479
- },
480
- {
481
- "week_end": "2023-04-29",
482
- "**Numeric Value Property**": "new_admissions_100k_currentweek",
483
- "geography": "",
484
- "COVID-19": "3.1",
485
- "Influenza": "0.3"
486
- },
487
- {
488
- "week_end": "2023-05-06",
489
- "**Numeric Value Property**": "new_admissions_100k_currentweek",
490
- "geography": "",
491
- "COVID-19": "2.9",
492
- "Influenza": "0.3"
493
- },
494
- {
495
- "week_end": "2023-05-13",
496
- "**Numeric Value Property**": "new_admissions_100k_currentweek",
497
- "geography": "",
498
- "COVID-19": "2.8",
499
- "Influenza": "0.3"
500
- },
501
- {
502
- "week_end": "2023-05-20",
503
- "**Numeric Value Property**": "new_admissions_100k_currentweek",
504
- "geography": "",
505
- "COVID-19": "2.5",
506
- "Influenza": "0.3"
507
- },
508
- {
509
- "week_end": "2023-05-27",
510
- "**Numeric Value Property**": "new_admissions_100k_currentweek",
511
- "geography": "",
512
- "COVID-19": "2.4",
513
- "Influenza": "0.3"
514
- },
515
- {
516
- "week_end": "2023-06-03",
517
- "**Numeric Value Property**": "new_admissions_100k_currentweek",
518
- "geography": "",
519
- "COVID-19": "2.2",
520
- "Influenza": "0.3"
521
- },
522
- {
523
- "week_end": "2023-06-10",
524
- "**Numeric Value Property**": "new_admissions_100k_currentweek",
525
- "geography": "",
526
- "COVID-19": "2.1",
527
- "Influenza": "0.3"
528
- },
529
- {
530
- "week_end": "2023-06-17",
531
- "**Numeric Value Property**": "new_admissions_100k_currentweek",
532
- "geography": "",
533
- "COVID-19": "2.0",
534
- "Influenza": "0.3"
535
- },
536
- {
537
- "week_end": "2023-06-24",
538
- "**Numeric Value Property**": "new_admissions_100k_currentweek",
539
- "geography": "",
540
- "COVID-19": "1.9",
541
- "Influenza": "0.2"
542
- },
543
- {
544
- "week_end": "2023-07-01",
545
- "**Numeric Value Property**": "new_admissions_100k_currentweek",
546
- "geography": "",
547
- "COVID-19": "2.0",
548
- "Influenza": "0.2"
549
- },
550
- {
551
- "week_end": "2023-07-08",
552
- "**Numeric Value Property**": "new_admissions_100k_currentweek",
553
- "geography": "",
554
- "COVID-19": "1.9",
555
- "Influenza": "0.2"
556
- },
557
- {
558
- "week_end": "2023-07-15",
559
- "**Numeric Value Property**": "new_admissions_100k_currentweek",
560
- "geography": "",
561
- "COVID-19": "2.2",
562
- "Influenza": "0.2"
563
- },
564
- {
565
- "week_end": "2023-07-22",
566
- "**Numeric Value Property**": "new_admissions_100k_currentweek",
567
- "geography": "",
568
- "COVID-19": "2.4",
569
- "Influenza": "0.2"
570
- },
571
- {
572
- "week_end": "2023-07-29",
573
- "**Numeric Value Property**": "new_admissions_100k_currentweek",
574
- "geography": "",
575
- "COVID-19": "2.7",
576
- "Influenza": "0.2"
577
- },
578
- {
579
- "week_end": "2023-08-05",
580
- "**Numeric Value Property**": "new_admissions_100k_currentweek",
581
- "geography": "",
582
- "COVID-19": "3.2",
583
- "Influenza": "0.2"
584
- },
585
- {
586
- "week_end": "2023-08-12",
587
- "**Numeric Value Property**": "new_admissions_100k_currentweek",
588
- "geography": "",
589
- "COVID-19": "3.8",
590
- "Influenza": "0.2"
591
- },
592
- {
593
- "week_end": "2023-08-19",
594
- "**Numeric Value Property**": "new_admissions_100k_currentweek",
595
- "geography": "",
596
- "COVID-19": "4.5",
597
- "Influenza": "0.2"
598
- },
599
- {
600
- "week_end": "2023-08-26",
601
- "**Numeric Value Property**": "new_admissions_100k_currentweek",
602
- "geography": "",
603
- "COVID-19": "5.3",
604
- "Influenza": "0.2"
605
- },
606
- {
607
- "week_end": "2023-09-02",
608
- "**Numeric Value Property**": "new_admissions_100k_currentweek",
609
- "geography": "",
610
- "COVID-19": "5.8",
611
- "Influenza": "0.3"
612
- },
613
- {
614
- "week_end": "2023-09-09",
615
- "**Numeric Value Property**": "new_admissions_100k_currentweek",
616
- "geography": "",
617
- "COVID-19": "6.2",
618
- "Influenza": "0.2"
619
- },
620
- {
621
- "week_end": "2023-09-16",
622
- "**Numeric Value Property**": "new_admissions_100k_currentweek",
623
- "geography": "",
624
- "COVID-19": "6.0",
625
- "Influenza": "0.2"
626
- },
627
- {
628
- "week_end": "2023-09-23",
629
- "**Numeric Value Property**": "new_admissions_100k_currentweek",
630
- "geography": "",
631
- "COVID-19": "5.9",
632
- "Influenza": "0.3"
633
- },
634
- {
635
- "week_end": "2023-09-30",
636
- "**Numeric Value Property**": "new_admissions_100k_currentweek",
637
- "geography": "",
638
- "COVID-19": "5.5",
639
- "Influenza": "0.3"
640
- },
641
- {
642
- "week_end": "2023-10-07",
643
- "**Numeric Value Property**": "new_admissions_100k_currentweek",
644
- "geography": "",
645
- "COVID-19": "5.2",
646
- "Influenza": "0.3"
647
- },
648
- {
649
- "week_end": "2023-10-14",
650
- "**Numeric Value Property**": "new_admissions_100k_currentweek",
651
- "geography": "",
652
- "COVID-19": "4.8",
653
- "Influenza": "0.4"
654
- },
655
- {
656
- "week_end": "2023-10-21",
657
- "**Numeric Value Property**": "new_admissions_100k_currentweek",
658
- "geography": "",
659
- "COVID-19": "4.8",
660
- "Influenza": "0.4"
661
- },
662
- {
663
- "week_end": "2023-10-28",
664
- "**Numeric Value Property**": "new_admissions_100k_currentweek",
665
- "geography": "",
666
- "COVID-19": "4.9",
667
- "Influenza": "0.5"
668
- },
669
- {
670
- "week_end": "2023-11-04",
671
- "**Numeric Value Property**": "new_admissions_100k_currentweek",
672
- "geography": "",
673
- "COVID-19": "4.5",
674
- "Influenza": "0.6"
675
- },
676
- {
677
- "week_end": "2023-11-11",
678
- "**Numeric Value Property**": "new_admissions_100k_currentweek",
679
- "geography": "",
680
- "COVID-19": "5.0",
681
- "Influenza": "0.8"
682
- },
683
- {
684
- "week_end": "2023-11-18",
685
- "**Numeric Value Property**": "new_admissions_100k_currentweek",
686
- "geography": "",
687
- "COVID-19": "5.4",
688
- "Influenza": "1.0"
689
- },
690
- {
691
- "week_end": "2023-11-25",
692
- "**Numeric Value Property**": "new_admissions_100k_currentweek",
693
- "geography": "",
694
- "COVID-19": "5.8",
695
- "Influenza": "1.3"
696
- },
697
- {
698
- "week_end": "2023-12-02",
699
- "**Numeric Value Property**": "new_admissions_100k_currentweek",
700
- "geography": "",
701
- "COVID-19": "6.9",
702
- "Influenza": "1.7"
703
- },
704
- {
705
- "week_end": "2023-12-09",
706
- "**Numeric Value Property**": "new_admissions_100k_currentweek",
707
- "geography": "",
708
- "COVID-19": "7.0",
709
- "Influenza": "2.2"
710
- },
711
- {
712
- "week_end": "2023-12-16",
713
- "**Numeric Value Property**": "new_admissions_100k_currentweek",
714
- "geography": "",
715
- "COVID-19": "7.6",
716
- "Influenza": "3.0"
717
- },
718
- {
719
- "week_end": "2023-12-23",
720
- "**Numeric Value Property**": "new_admissions_100k_currentweek",
721
- "geography": "",
722
- "COVID-19": "8.9",
723
- "Influenza": "4.6"
724
- },
725
- {
726
- "week_end": "2023-12-30",
727
- "**Numeric Value Property**": "new_admissions_100k_currentweek",
728
- "geography": "",
729
- "COVID-19": "10.5",
730
- "Influenza": "6.3"
731
- },
732
- {
733
- "week_end": "2024-01-06",
734
- "**Numeric Value Property**": "new_admissions_100k_currentweek",
735
- "geography": "",
736
- "COVID-19": "10.5",
737
- "Influenza": "5.7"
738
- },
739
- {
740
- "week_end": "2024-01-13",
741
- "**Numeric Value Property**": "new_admissions_100k_currentweek",
742
- "geography": "",
743
- "COVID-19": "9.3",
744
- "Influenza": "4.6"
745
- },
746
- {
747
- "week_end": "2024-01-20",
748
- "**Numeric Value Property**": "new_admissions_100k_currentweek",
749
- "geography": "",
750
- "COVID-19": "7.6",
751
- "Influenza": "3.8"
752
- },
753
- {
754
- "week_end": "2024-01-27",
755
- "**Numeric Value Property**": "new_admissions_100k_currentweek",
756
- "geography": "",
757
- "COVID-19": "6.8",
758
- "Influenza": "3.7"
759
- }
760
- ],
761
- "pattern_id": "brush_pattern",
762
- "accent_color": "#ddd"
763
- },
764
- "exclusions": {
765
- "active": false,
766
- "keys": []
767
- },
768
- "palette": "qualitative-bold",
769
- "isPaletteReversed": false,
770
- "twoColor": {
771
- "palette": "monochrome-1",
772
- "isPaletteReversed": false
773
- },
774
- "labels": false,
775
- "dataFormat": {
776
- "commas": false,
777
- "prefix": "",
778
- "suffix": " hospitalizations per 100,000 people",
779
- "abbreviated": true,
780
- "bottomSuffix": "",
781
- "bottomPrefix": "",
782
- "bottomAbbreviated": false,
783
- "roundTo": "1",
784
- "onlyShowTopPrefixSuffix": true
785
- },
786
- "confidenceKeys": {},
787
- "visual": {
788
- "border": true,
789
- "accent": true,
790
- "background": true,
791
- "verticalHoverLine": true,
792
- "horizontalHoverLine": false
793
- },
794
- "useLogScale": false,
795
- "filterBehavior": "Filter Change",
796
- "highlightedBarValues": [],
797
- "series": [
798
- {
799
- "dataKey": "COVID-19",
800
- "type": "Line",
801
- "axis": "Left",
802
- "tooltip": true
803
- },
804
- {
805
- "dataKey": "Influenza",
806
- "type": "Line",
807
- "axis": "Left",
808
- "tooltip": true
809
- },
810
- {
811
- "dataKey": "RSV",
812
- "type": "Line",
813
- "axis": "Left",
814
- "tooltip": true
815
- }
816
- ],
817
- "tooltips": {
818
- "opacity": 90,
819
- "singleSeries": false,
820
- "dateDisplayFormat": "%B %-d, %Y"
821
- },
822
- "forestPlot": {
823
- "startAt": 0,
824
- "colors": {
825
- "line": "",
826
- "shape": ""
827
- },
828
- "lineOfNoEffect": {
829
- "show": true
830
- },
831
- "type": "",
832
- "pooledResult": {
833
- "diamondHeight": 5,
834
- "column": ""
835
- },
836
- "estimateField": "",
837
- "estimateRadius": "",
838
- "shape": "",
839
- "rowHeight": 20,
840
- "description": {
841
- "show": true,
842
- "text": "description",
843
- "location": 0
844
- },
845
- "result": {
846
- "show": true,
847
- "text": "result",
848
- "location": 100
849
- },
850
- "radius": {
851
- "min": 1,
852
- "max": 8,
853
- "scalingColumn": ""
854
- },
855
- "regression": {
856
- "lower": 0,
857
- "upper": 0,
858
- "estimateField": 0
859
- },
860
- "leftWidthOffset": 0,
861
- "rightWidthOffset": 0,
862
- "showZeroLine": false,
863
- "leftLabel": "",
864
- "rightLabel": "",
865
- "hideDateCategoryCol": false,
866
- "width": "auto",
867
- "lowerCiField": "",
868
- "upperCiField": ""
869
- },
870
- "area": {
871
- "isStacked": false
872
- },
873
- "sankey": {
874
- "title": {
875
- "defaultColor": "black"
876
- },
877
- "iterations": 1,
878
- "rxValue": 0.9,
879
- "overallSize": {
880
- "width": 900,
881
- "height": 700
882
- },
883
- "margin": {
884
- "margin_y": 25,
885
- "margin_x": 0
886
- },
887
- "nodeSize": {
888
- "nodeWidth": 26,
889
- "nodeHeight": 40
890
- },
891
- "nodePadding": 55,
892
- "nodeFontColor": "black",
893
- "nodeColor": {
894
- "default": "#ff8500",
895
- "inactive": "#808080"
896
- },
897
- "linkColor": {
898
- "default": "#ffc900",
899
- "inactive": "#D3D3D3"
900
- },
901
- "opacity": {
902
- "nodeOpacityDefault": 1,
903
- "nodeOpacityInactive": 0.1,
904
- "LinkOpacityDefault": 1,
905
- "LinkOpacityInactive": 0.1
906
- },
907
- "storyNodeFontColor": "#006778",
908
- "storyNodeText": [],
909
- "nodeValueStyle": {
910
- "textBefore": "(",
911
- "textAfter": ")"
912
- },
913
- "data": []
914
- },
915
- "suppressedData": [],
916
- "showChartBrush": false,
917
- "visualizationType": "Line",
918
- "customColors": [
919
- "#f06f19",
920
- "#0a58d6",
921
- "#890664",
922
- "#000000",
923
- "#0A6C75",
924
- "#C0F2FD",
925
- "#C0F2FD",
926
- "#C0F2FD",
927
- "#C0F2FD"
928
- ],
929
- "dataFileName": "https://cdc.gov/wcms/vizdata/Respitory_Viruses/NHSNWeeklyHospitalRate.json",
930
- "dataFileSourceType": "url",
931
- "dataUrl": "https://cdc.gov/wcms/vizdata/Respitory_Viruses/NHSNWeeklyHospitalRate.json",
932
- "dataDescription": {
933
- "horizontal": false,
934
- "series": true,
935
- "singleRow": false,
936
- "seriesKey": "pathogen",
937
- "xKey": "week_end",
938
- "valueKeys": [
939
- "new_admissions_100k_currentweek"
940
- ],
941
- "ignoredKeys": [
942
- "new_admissions_selected_pathogen_previousweek",
943
- "new_admissions_100k_previousweek",
944
- "percent_change_admissions_per100k",
945
- "percent_change_admissions",
946
- "new_admissions_selected_pathogen_currentweek"
947
- ]
948
- },
949
- "validated": "4.24.3",
950
- "filters": [
951
- {
952
- "values": [
953
- "Arizona",
954
- "District of Columbia",
955
- "Kentucky",
956
- "Louisiana",
957
- "Michigan",
958
- "Minnesota",
959
- "New Hampshire",
960
- "New Jersey",
961
- "Nevada",
962
- "Oregon",
963
- "Rhode Island",
964
- "South Carolina",
965
- "Virginia",
966
- "Wyoming",
967
- "Hawaii",
968
- "Utah",
969
- "California",
970
- "Connecticut",
971
- "Delaware",
972
- "Idaho",
973
- "Illinois",
974
- "Maryland",
975
- "Maine",
976
- "Missouri",
977
- "Montana",
978
- "North Carolina",
979
- "Nebraska",
980
- "Virgin Islands",
981
- "Vermont",
982
- "Wisconsin",
983
- "Alaska",
984
- "Arkansas",
985
- "Colorado",
986
- "Florida",
987
- "Georgia",
988
- "Kansas",
989
- "Massachusetts",
990
- "Oklahoma",
991
- "Puerto Rico",
992
- "Texas",
993
- "West Virginia",
994
- "Alabama",
995
- "Iowa",
996
- "Indiana",
997
- "Mississippi",
998
- "North Dakota",
999
- "New Mexico",
1000
- "New York",
1001
- "Ohio",
1002
- "Pennsylvania",
1003
- "South Dakota",
1004
- "Tennessee",
1005
- "United States",
1006
- "Washington"
1007
- ],
1008
- "active": "United States",
1009
- "filterStyle": "dropdown",
1010
- "order": "asc",
1011
- "columnName": "geography",
1012
- "orderedValues": [
1013
- "United States",
1014
- "Alabama",
1015
- "Alaska",
1016
- "Arizona",
1017
- "Arkansas",
1018
- "California",
1019
- "Colorado",
1020
- "Connecticut",
1021
- "Delaware",
1022
- "District of Columbia",
1023
- "Florida",
1024
- "Georgia",
1025
- "Hawaii",
1026
- "Idaho",
1027
- "Illinois",
1028
- "Indiana",
1029
- "Iowa",
1030
- "Kansas",
1031
- "Kentucky",
1032
- "Louisiana",
1033
- "Maine",
1034
- "Maryland",
1035
- "Massachusetts",
1036
- "Michigan",
1037
- "Minnesota",
1038
- "Mississippi",
1039
- "Missouri",
1040
- "Montana",
1041
- "Nebraska",
1042
- "Nevada",
1043
- "New Hampshire",
1044
- "New Jersey",
1045
- "New Mexico",
1046
- "New York",
1047
- "North Carolina",
1048
- "North Dakota",
1049
- "Ohio",
1050
- "Oklahoma",
1051
- "Oregon",
1052
- "Pennsylvania",
1053
- "Puerto Rico",
1054
- "Rhode Island",
1055
- "South Carolina",
1056
- "South Dakota",
1057
- "Tennessee",
1058
- "Texas",
1059
- "Utah",
1060
- "Vermont",
1061
- "Virgin Islands",
1062
- "Virginia",
1063
- "Washington",
1064
- "West Virginia",
1065
- "Wisconsin",
1066
- "Wyoming"
1067
- ],
1068
- "id": 1732556562584
1069
- }
1070
- ],
1071
- "runtimeDataUrl": "https://wcms-wp.cdc.gov/wcms/vizdata/Respitory_Viruses/NHSNWeeklyHospitalRate.json",
1072
- "dynamicMarginTop": 0,
1073
- "description": "<div class=\"text-left\"><p class=\"fnote\">Data last updated on <span data-timestamp=\"NHSNWeeklyHospitalRate:Data_as_of\"></span> and presented through <span data-timestamp=\"NHSNWeeklyHospitalRate:Data_Presented_Through\"></span>. <a href=\"https://data.cdc.gov/Public-Health-Surveillance/Weekly-Hospital-Respiratory-Data-HRD-Metrics-by-Ju/ua7e-t2fy/about_data\">View this dataset</a> on data.cdc.gov.</p></div>",
1074
- "regions": [
1075
- {
1076
- "background": "#777777",
1077
- "from": "7",
1078
- "to": "2024-01-13",
1079
- "fromType": "Previous Days",
1080
- "toType": "Last Date"
1081
- }
1082
- ],
1083
- "version": "4.24.10"
1084
- }