@cdc/chart 4.25.8 → 4.25.11

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 (145) hide show
  1. package/.claude/settings.local.json +9 -0
  2. package/dist/{cdcchart-1a1724a1.es.js → cdcchart-dgT_1dIT.es.js} +136 -151
  3. package/dist/cdcchart.js +44236 -40355
  4. package/examples/feature/__data__/planet-example-data.json +0 -30
  5. package/examples/feature/boxplot/valid-boxplot.csv +38 -17
  6. package/examples/grouped-bar-test.json +400 -0
  7. package/examples/private/DEV-11825.json +573 -0
  8. package/examples/private/d.json +382 -0
  9. package/examples/private/example-2.json +49784 -0
  10. package/examples/private/f2.json +1 -0
  11. package/examples/private/f4.json +1577 -0
  12. package/examples/private/forecast.json +1180 -0
  13. package/examples/private/lollipop.json +468 -0
  14. package/examples/private/na.json +913 -0
  15. package/examples/private/new.json +48756 -0
  16. package/examples/private/pie-chart-legend.json +904 -0
  17. package/examples/private/test-data.csv +28 -0
  18. package/examples/suppressed_tooltip.json +480 -0
  19. package/index.html +2 -133
  20. package/package.json +25 -7
  21. package/src/CdcChart.tsx +9 -13
  22. package/src/CdcChartComponent.tsx +403 -92
  23. package/src/_stories/Chart.Anchors.stories.tsx +2 -2
  24. package/src/_stories/Chart.BoxPlot.stories.tsx +1 -1
  25. package/src/_stories/Chart.CI.stories.tsx +1 -1
  26. package/src/_stories/Chart.Combo.stories.tsx +18 -0
  27. package/src/_stories/Chart.CustomColors.stories.tsx +1 -1
  28. package/src/_stories/Chart.DynamicSeries.stories.tsx +2 -2
  29. package/src/_stories/Chart.Filters.stories.tsx +2 -2
  30. package/src/_stories/Chart.Forecast.stories.tsx +36 -0
  31. package/src/_stories/Chart.HTMLInDataTable.stories.tsx +520 -0
  32. package/src/_stories/Chart.Legend.Gradient.stories.tsx +2 -2
  33. package/src/_stories/Chart.Patterns.stories.tsx +20 -0
  34. package/src/_stories/Chart.PreserveDecimals.stories.tsx +220 -0
  35. package/src/_stories/Chart.ScatterPlot.stories.tsx +1 -1
  36. package/src/_stories/Chart.SmallMultiples.stories.tsx +47 -0
  37. package/src/_stories/Chart.stories.tsx +8 -5
  38. package/src/_stories/Chart.tooltip.stories.tsx +1 -1
  39. package/src/_stories/ChartAnnotation.stories.tsx +7 -4
  40. package/src/_stories/ChartAxisLabels.stories.tsx +2 -2
  41. package/src/_stories/ChartAxisTitles.stories.tsx +2 -2
  42. package/src/_stories/ChartBar.Editor.stories.tsx +3580 -0
  43. package/src/_stories/ChartEditor.Editor.stories.tsx +658 -0
  44. package/src/_stories/ChartEditor.stories.tsx +59 -60
  45. package/src/_stories/ChartLine.Suppression.stories.tsx +1 -1
  46. package/src/_stories/ChartLine.Symbols.stories.tsx +1 -1
  47. package/src/_stories/ChartPrefixSuffix.stories.tsx +2 -2
  48. package/src/_stories/_mock/combo.json +451 -0
  49. package/src/_stories/_mock/editor-test-configs.json +376 -0
  50. package/src/_stories/_mock/editor-test-datasets.json +477 -0
  51. package/src/_stories/_mock/editor-tests/bar-chart-editor-test.json +255 -0
  52. package/src/_stories/_mock/editor-tests/bar-chart-general-test.json +267 -0
  53. package/src/_stories/_mock/editor-tests/bar-chart-test.json +237 -0
  54. package/src/_stories/_mock/forecast_combo_with_gaps.json +913 -0
  55. package/src/_stories/_mock/pie_config.json +257 -62
  56. package/src/_stories/_mock/small_multiples/small_multiples_bars.json +1944 -0
  57. package/src/_stories/_mock/small_multiples/small_multiples_big_data_bars.json +1114 -0
  58. package/src/_stories/_mock/small_multiples/small_multiples_lines.json +2646 -0
  59. package/src/_stories/_mock/small_multiples/small_multiples_lines_colors.json +1305 -0
  60. package/src/_stories/_mock/small_multiples/small_multiples_stacked_bars.json +1936 -0
  61. package/src/_stories/_mock/stacked-pattern-test.json +520 -0
  62. package/src/components/Annotations/components/AnnotationDraggable.tsx +1 -0
  63. package/src/components/Annotations/components/AnnotationDropdown.tsx +1 -1
  64. package/src/components/Annotations/components/findNearestDatum.ts +6 -41
  65. package/src/components/AreaChart/components/AreaChart.Stacked.jsx +10 -6
  66. package/src/components/AreaChart/index.tsx +1 -2
  67. package/src/components/BarChart/components/BarChart.Horizontal.tsx +161 -22
  68. package/src/components/BarChart/components/BarChart.StackedHorizontal.tsx +138 -5
  69. package/src/components/BarChart/components/BarChart.StackedVertical.tsx +215 -73
  70. package/src/components/BarChart/components/BarChart.Vertical.tsx +155 -22
  71. package/src/components/BarChart/helpers/index.ts +43 -4
  72. package/src/components/BarChart/helpers/lollipopColors.ts +27 -0
  73. package/src/components/BarChart/helpers/useBarChart.ts +25 -3
  74. package/src/components/BoxPlot/BoxPlot.Vertical.tsx +2 -1
  75. package/src/components/BoxPlot/helpers/index.ts +3 -3
  76. package/src/components/Brush/BrushChart.tsx +1 -1
  77. package/src/components/DeviationBar.jsx +9 -6
  78. package/src/components/EditorPanel/EditorPanel.tsx +563 -229
  79. package/src/components/EditorPanel/EditorPanelContext.ts +3 -0
  80. package/src/components/EditorPanel/components/Panels/Panel.Annotate.tsx +96 -111
  81. package/src/components/EditorPanel/components/Panels/Panel.General.tsx +19 -1
  82. package/src/components/EditorPanel/components/Panels/Panel.PatternSettings.tsx +461 -0
  83. package/src/components/EditorPanel/components/Panels/Panel.Series.tsx +80 -67
  84. package/src/components/EditorPanel/components/Panels/Panel.SmallMultiples.tsx +422 -0
  85. package/src/components/EditorPanel/components/Panels/Panel.Visual.tsx +188 -139
  86. package/src/components/EditorPanel/components/Panels/index.tsx +5 -1
  87. package/src/components/EditorPanel/components/Panels/panelVisual.styles.css +0 -8
  88. package/src/components/EditorPanel/editor-panel.scss +0 -20
  89. package/src/components/EditorPanel/helpers/updateFieldRankByValue.ts +49 -48
  90. package/src/components/EditorPanel/useEditorPermissions.ts +7 -15
  91. package/src/components/Forecasting/Forecasting.tsx +175 -27
  92. package/src/components/ForestPlot/ForestPlot.tsx +11 -7
  93. package/src/components/ForestPlot/ForestPlotProps.ts +1 -1
  94. package/src/components/Legend/Legend.Component.tsx +114 -14
  95. package/src/components/Legend/helpers/createFormatLabels.tsx +230 -171
  96. package/src/components/Legend/helpers/getLegendClasses.ts +0 -1
  97. package/src/components/LegendWrapper.tsx +1 -1
  98. package/src/components/LineChart/LineChartProps.ts +0 -3
  99. package/src/components/LineChart/components/LineChart.Circle.tsx +2 -2
  100. package/src/components/LineChart/helpers.ts +1 -1
  101. package/src/components/LineChart/index.tsx +38 -15
  102. package/src/components/LinearChart.tsx +96 -84
  103. package/src/components/PairedBarChart.jsx +6 -4
  104. package/src/components/PieChart/PieChart.tsx +170 -54
  105. package/src/components/Regions/components/Regions.tsx +3 -24
  106. package/src/components/Sankey/components/Sankey.tsx +7 -1
  107. package/src/components/Sankey/types/index.ts +1 -1
  108. package/src/components/ScatterPlot/ScatterPlot.jsx +32 -4
  109. package/src/components/SmallMultiples/SmallMultipleTile.tsx +198 -0
  110. package/src/components/SmallMultiples/SmallMultiples.css +32 -0
  111. package/src/components/SmallMultiples/SmallMultiples.tsx +271 -0
  112. package/src/components/SmallMultiples/index.ts +2 -0
  113. package/src/data/initial-state.js +327 -293
  114. package/src/helpers/buildForecastPaletteMappings.ts +112 -0
  115. package/src/helpers/buildForecastPaletteOptions.ts +71 -0
  116. package/src/helpers/getColorScale.ts +82 -8
  117. package/src/{hooks/useMinMax.ts → helpers/getMinMax.ts} +14 -7
  118. package/src/helpers/getNewRuntime.ts +1 -1
  119. package/src/helpers/getTransformedData.ts +1 -1
  120. package/src/helpers/getYAxisAutoPadding.ts +53 -0
  121. package/src/helpers/smallMultiplesHelpers.ts +529 -0
  122. package/src/hooks/useChartHoverAnalytics.tsx +44 -0
  123. package/src/hooks/useProgrammaticTooltip.ts +96 -0
  124. package/src/hooks/useReduceData.ts +105 -70
  125. package/src/hooks/useScales.ts +88 -34
  126. package/src/hooks/useSmallMultipleSynchronization.ts +59 -0
  127. package/src/hooks/useTooltip.tsx +116 -29
  128. package/src/index.jsx +0 -2
  129. package/src/scss/main.scss +13 -80
  130. package/src/store/chart.actions.ts +2 -0
  131. package/src/store/chart.reducer.ts +5 -1
  132. package/src/test/CdcChart.test.jsx +8 -3
  133. package/src/types/ChartConfig.ts +53 -11
  134. package/src/types/ChartContext.ts +4 -0
  135. package/vite.config.js +1 -1
  136. package/vitest.config.ts +16 -0
  137. package/src/_stories/_mock/pie_data.json +0 -218
  138. package/src/components/AreaChart/components/AreaChart.jsx +0 -109
  139. package/src/coreStyles_chart.scss +0 -3
  140. package/src/helpers/configHelpers.ts +0 -28
  141. package/src/helpers/generateColorsArray.ts +0 -8
  142. package/src/helpers/sort.ts +0 -7
  143. package/src/hooks/useActiveElement.js +0 -19
  144. package/src/hooks/useChartClasses.js +0 -41
  145. package/src/hooks/useColorPalette.js +0 -76
@@ -0,0 +1,913 @@
1
+ {
2
+ "annotations": [],
3
+ "allowLineToBarGraph": "__​undefined__",
4
+ "type": "chart",
5
+ "debugSvg": false,
6
+ "chartMessage": {
7
+ "noData": "No Data Available"
8
+ },
9
+ "title": "Figure 1: National Ensemble Forecasts",
10
+ "showTitle": true,
11
+ "showDownloadMediaButton": false,
12
+ "theme": "theme-blue",
13
+ "animate": false,
14
+ "lineDatapointStyle": "always show",
15
+ "lineDatapointColor": "Lighter than Line",
16
+ "barHasBorder": "true",
17
+ "isLollipopChart": false,
18
+ "lollipopShape": "circle",
19
+ "lollipopColorStyle": "two-tone",
20
+ "visualizationSubType": "regular",
21
+ "barStyle": "",
22
+ "roundingStyle": "standard",
23
+ "tipRounding": "top",
24
+ "isResponsiveTicks": false,
25
+ "general": {
26
+ "annotationDropdownText": "Annotations",
27
+ "showMissingDataLabel": true,
28
+ "showSuppressedSymbol": true,
29
+ "showZeroValueData": true,
30
+ "hideNullValue": true,
31
+ "palette": {
32
+ "name": "qualitative1reverse",
33
+ "customColors": [
34
+ "#000000",
35
+ "#006166"
36
+ ],
37
+ "version": "1.0",
38
+ "backups": [
39
+ {
40
+ "name": "qualitative1reverse",
41
+ "version": "1.0",
42
+ "isReversed": "__​undefined__"
43
+ }
44
+ ]
45
+ }
46
+ },
47
+ "padding": {
48
+ "left": 5,
49
+ "right": 5
50
+ },
51
+ "preliminaryData": [],
52
+ "yAxis": {
53
+ "hideAxis": false,
54
+ "displayNumbersOnBar": false,
55
+ "hideLabel": false,
56
+ "hideTicks": false,
57
+ "size": "85",
58
+ "gridLines": true,
59
+ "enablePadding": false,
60
+ "min": "",
61
+ "max": "70000",
62
+ "labelColor": "#1c1d1f",
63
+ "tickLabelColor": "#1c1d1f",
64
+ "tickColor": "#1c1d1f",
65
+ "rightHideAxis": false,
66
+ "rightAxisSize": 0,
67
+ "rightLabel": "",
68
+ "rightLabelOffsetSize": 0,
69
+ "rightAxisLabelColor": "#1c1d1f",
70
+ "rightAxisTickLabelColor": "#1c1d1f",
71
+ "rightAxisTickColor": "#1c1d1f",
72
+ "numTicks": "",
73
+ "axisPadding": 0,
74
+ "scalePadding": 10,
75
+ "tickRotation": 0,
76
+ "anchors": [],
77
+ "shoMissingDataLabel": true,
78
+ "showMissingDataLine": true,
79
+ "categories": [],
80
+ "label": "Weekly hospital admissions",
81
+ "labelOffset": "15"
82
+ },
83
+ "boxplot": {
84
+ "plots": [],
85
+ "borders": "true",
86
+ "plotOutlierValues": false,
87
+ "plotNonOutlierValues": true,
88
+ "labels": {
89
+ "q1": "Lower Quartile",
90
+ "q2": "q2",
91
+ "q3": "Upper Quartile",
92
+ "q4": "q4",
93
+ "minimum": "Minimum",
94
+ "maximum": "Maximum",
95
+ "mean": "Mean",
96
+ "median": "Median",
97
+ "sd": "Standard Deviation",
98
+ "iqr": "Interquartile Range",
99
+ "count": "Count",
100
+ "outliers": "Outliers",
101
+ "values": "Values",
102
+ "lowerBounds": "Lower Bounds",
103
+ "upperBounds": "Upper Bounds"
104
+ }
105
+ },
106
+ "topAxis": {
107
+ "hasLine": true
108
+ },
109
+ "isLegendValue": false,
110
+ "barThickness": 0.35,
111
+ "barHeight": 25,
112
+ "barSpace": 15,
113
+ "heights": {
114
+ "vertical": "350",
115
+ "horizontal": 750
116
+ },
117
+ "xAxis": {
118
+ "sortDates": false,
119
+ "anchors": [],
120
+ "type": "date",
121
+ "showTargetLabel": true,
122
+ "targetLabel": "Target",
123
+ "hideAxis": false,
124
+ "hideLabel": false,
125
+ "hideTicks": false,
126
+ "size": 75,
127
+ "tickRotation": "45",
128
+ "min": "",
129
+ "max": "",
130
+ "labelColor": "#1c1d1f",
131
+ "tickLabelColor": "#1c1d1f",
132
+ "tickColor": "#1c1d1f",
133
+ "numTicks": "",
134
+ "labelOffset": 0,
135
+ "axisPadding": 200,
136
+ "target": 0,
137
+ "maxTickRotation": 0,
138
+ "padding": 5,
139
+ "showYearsOnce": false,
140
+ "sortByRecentDate": false,
141
+ "brushActive": false,
142
+ "dataKey": "Target End Date",
143
+ "dateParseFormat": "%m/%d/%Y",
144
+ "dateDisplayFormat": "%m/%d/%Y",
145
+ "tickWidthMax": 86,
146
+ "axisBBox": 85.48712158203125
147
+ },
148
+ "table": {
149
+ "label": "Data Table",
150
+ "expanded": false,
151
+ "limitHeight": false,
152
+ "height": "",
153
+ "caption": "",
154
+ "showDownloadUrl": false,
155
+ "showDataTableLink": true,
156
+ "showDownloadLinkBelow": true,
157
+ "indexLabel": "",
158
+ "download": true,
159
+ "showVertical": true,
160
+ "dateDisplayFormat": "",
161
+ "showMissingDataLabel": true,
162
+ "showSuppressedSymbol": true,
163
+ "collapsible": true,
164
+ "show": true
165
+ },
166
+ "orientation": "vertical",
167
+ "columns": {
168
+ "Month": {
169
+ "name": "Month",
170
+ "dataTable": false
171
+ },
172
+ "Lower 50%": {
173
+ "label": "Lower 50%",
174
+ "dataTable": true,
175
+ "tooltips": false,
176
+ "prefix": "",
177
+ "suffix": "",
178
+ "forestPlot": false,
179
+ "startingPoint": "0",
180
+ "forestPlotAlignRight": false,
181
+ "roundToPlace": 0,
182
+ "commas": false,
183
+ "showInViz": false,
184
+ "forestPlotStartingPoint": 0,
185
+ "name": "Lower 50%"
186
+ },
187
+ "Upper 50%": {
188
+ "label": "Upper 50%",
189
+ "dataTable": true,
190
+ "tooltips": false,
191
+ "prefix": "",
192
+ "suffix": "",
193
+ "forestPlot": false,
194
+ "startingPoint": "0",
195
+ "forestPlotAlignRight": false,
196
+ "roundToPlace": 0,
197
+ "commas": false,
198
+ "showInViz": false,
199
+ "forestPlotStartingPoint": 0,
200
+ "name": "Upper 50%"
201
+ },
202
+ "Lower 95%": {
203
+ "label": "Lower 95%",
204
+ "dataTable": true,
205
+ "tooltips": false,
206
+ "prefix": "",
207
+ "suffix": "",
208
+ "forestPlot": false,
209
+ "startingPoint": "0",
210
+ "forestPlotAlignRight": false,
211
+ "roundToPlace": 0,
212
+ "commas": false,
213
+ "showInViz": false,
214
+ "forestPlotStartingPoint": 0,
215
+ "name": "Lower 95%"
216
+ },
217
+ "Upper 95%": {
218
+ "label": "Upper 95%",
219
+ "dataTable": true,
220
+ "tooltips": false,
221
+ "prefix": "",
222
+ "suffix": "",
223
+ "forestPlot": false,
224
+ "startingPoint": "0",
225
+ "forestPlotAlignRight": false,
226
+ "roundToPlace": 0,
227
+ "commas": false,
228
+ "showInViz": false,
229
+ "forestPlotStartingPoint": 0,
230
+ "name": "Upper 95%"
231
+ }
232
+ },
233
+ "legend": {
234
+ "hide": true,
235
+ "behavior": "isolate",
236
+ "axisAlign": true,
237
+ "singleRow": true,
238
+ "colorCode": "",
239
+ "reverseLabelOrder": false,
240
+ "description": "",
241
+ "dynamicLegend": false,
242
+ "dynamicLegendDefaultText": "Show All",
243
+ "dynamicLegendItemLimit": 5,
244
+ "dynamicLegendItemLimitMessage": "Dynamic Legend Item Limit Hit.",
245
+ "dynamicLegendChartMessage": "Select Options from the Legend",
246
+ "label": "",
247
+ "lineMode": false,
248
+ "verticalSorted": false,
249
+ "highlightOnHover": false,
250
+ "hideSuppressedLabels": false,
251
+ "hideSuppressionLink": false,
252
+ "seriesHighlight": [],
253
+ "style": "circles",
254
+ "subStyle": "linear blocks",
255
+ "groupBy": "",
256
+ "shape": "circle",
257
+ "tickRotation": "",
258
+ "order": "dataColumn",
259
+ "hideBorder": {
260
+ "side": false,
261
+ "topBottom": true
262
+ },
263
+ "position": "right",
264
+ "orderedValues": [],
265
+ "patterns": {},
266
+ "patternField": "",
267
+ "unified": true
268
+ },
269
+ "exclusions": {
270
+ "active": false,
271
+ "keys": []
272
+ },
273
+ "twoColor": {
274
+ "palette": "monochrome-1",
275
+ "isPaletteReversed": false
276
+ },
277
+ "labels": false,
278
+ "dataFormat": {
279
+ "commas": false,
280
+ "prefix": "",
281
+ "suffix": "",
282
+ "abbreviated": true,
283
+ "bottomSuffix": "",
284
+ "bottomPrefix": "",
285
+ "bottomAbbreviated": false
286
+ },
287
+ "filters": [],
288
+ "confidenceKeys": {},
289
+ "visual": {
290
+ "border": true,
291
+ "accent": true,
292
+ "background": true,
293
+ "verticalHoverLine": true,
294
+ "horizontalHoverLine": false,
295
+ "lineDatapointSymbol": "none",
296
+ "maximumShapeAmount": 7
297
+ },
298
+ "useLogScale": false,
299
+ "filterBehavior": "Filter Change",
300
+ "highlightedBarValues": [],
301
+ "series": [
302
+ {
303
+ "dataKey": "Month",
304
+ "type": "Forecasting",
305
+ "axis": "Left",
306
+ "tooltip": false,
307
+ "stages": [
308
+ {
309
+ "key": "11",
310
+ "color": "sequential-green"
311
+ },
312
+ {
313
+ "key": "12",
314
+ "color": "sequential-green"
315
+ },
316
+ {
317
+ "key": "1",
318
+ "color": "sequential-green"
319
+ },
320
+ {
321
+ "key": "2",
322
+ "color": "sequential-green"
323
+ },
324
+ {
325
+ "key": "3",
326
+ "color": "sequential-green"
327
+ },
328
+ {
329
+ "key": "4",
330
+ "color": "sequential-green"
331
+ }
332
+ ],
333
+ "stageColumn": "Month",
334
+ "confidenceIntervals": [
335
+ {
336
+ "high": "Upper 50%",
337
+ "low": "Lower 50%",
338
+ "showInTooltip": true
339
+ },
340
+ {
341
+ "high": "Upper 95%",
342
+ "low": "Lower 95%",
343
+ "showInTooltip": true
344
+ }
345
+ ]
346
+ },
347
+ {
348
+ "dataKey": "Forecasted",
349
+ "type": "dashed-sm",
350
+ "axis": "Left",
351
+ "tooltip": true
352
+ },
353
+ {
354
+ "dataKey": "Observed",
355
+ "type": "Line",
356
+ "axis": "Left",
357
+ "tooltip": true
358
+ }
359
+ ],
360
+ "tooltips": {
361
+ "opacity": 90,
362
+ "singleSeries": false,
363
+ "dateDisplayFormat": ""
364
+ },
365
+ "forestPlot": {
366
+ "startAt": 0,
367
+ "colors": {
368
+ "line": "",
369
+ "shape": ""
370
+ },
371
+ "lineOfNoEffect": {
372
+ "show": true
373
+ },
374
+ "type": "",
375
+ "pooledResult": {
376
+ "diamondHeight": 5,
377
+ "column": ""
378
+ },
379
+ "estimateField": "",
380
+ "estimateRadius": "",
381
+ "shape": "square",
382
+ "rowHeight": 20,
383
+ "description": {
384
+ "show": true,
385
+ "text": "description",
386
+ "location": 0
387
+ },
388
+ "result": {
389
+ "show": true,
390
+ "text": "result",
391
+ "location": 100
392
+ },
393
+ "radius": {
394
+ "min": 2,
395
+ "max": 10,
396
+ "scalingColumn": ""
397
+ },
398
+ "regression": {
399
+ "lower": 0,
400
+ "upper": 0,
401
+ "estimateField": 0
402
+ },
403
+ "leftWidthOffset": 0,
404
+ "rightWidthOffset": 0,
405
+ "showZeroLine": false,
406
+ "leftLabel": "",
407
+ "rightLabel": ""
408
+ },
409
+ "area": {
410
+ "isStacked": false
411
+ },
412
+ "sankey": {
413
+ "title": {
414
+ "defaultColor": "black"
415
+ },
416
+ "iterations": 1,
417
+ "rxValue": 0.9,
418
+ "overallSize": {
419
+ "width": 900,
420
+ "height": 700
421
+ },
422
+ "margin": {
423
+ "margin_y": 25,
424
+ "margin_x": 0
425
+ },
426
+ "nodeSize": {
427
+ "nodeWidth": 26,
428
+ "nodeHeight": 40
429
+ },
430
+ "nodePadding": 55,
431
+ "nodeFontColor": "black",
432
+ "nodeColor": {
433
+ "default": "#ff8500",
434
+ "inactive": "#808080"
435
+ },
436
+ "linkColor": {
437
+ "default": "#ffc900",
438
+ "inactive": "#D3D3D3"
439
+ },
440
+ "opacity": {
441
+ "nodeOpacityDefault": 1,
442
+ "nodeOpacityInactive": 0.1,
443
+ "LinkOpacityDefault": 1,
444
+ "LinkOpacityInactive": 0.1
445
+ },
446
+ "storyNodeFontColor": "#006778",
447
+ "storyNodeText": [],
448
+ "nodeValueStyle": {
449
+ "textBefore": "(",
450
+ "textAfter": ")"
451
+ },
452
+ "data": []
453
+ },
454
+ "markupVariables": [],
455
+ "enableMarkupVariables": false,
456
+ "dataFileName": "./forecast_chart_data_ex_2.csv",
457
+ "dataFileSourceType": "file",
458
+ "dataDescription": {
459
+ "horizontal": false,
460
+ "series": false
461
+ },
462
+ "id": 3,
463
+ "category": "Charts",
464
+ "label": "Combo Chart",
465
+ "subType": "Combo",
466
+ "icon": {
467
+ "key": null,
468
+ "ref": null,
469
+ "props": {},
470
+ "_owner": null
471
+ },
472
+ "content": "Use bars to show comparisons between data categories.",
473
+ "visualizationType": "Combo",
474
+ "activeVizButtonID": 3,
475
+ "brush": {
476
+ "isActive": false,
477
+ "isBrushing": false,
478
+ "data": [],
479
+ "height": 45,
480
+ "active": false
481
+ },
482
+ "isPaletteReversed": true,
483
+ "version": "4.25.10",
484
+ "migrations": {
485
+ "addColorMigration": true
486
+ },
487
+ "dynamicMarginTop": 0,
488
+ "description": "<div class=\"psuedolegend\">\n<p><strong>Prediction Interval</strong><br/>\n<span class=\"ci50\"></span> 50%<br/>\n<span class=\"ci95\"></span> 95%<br/>\n</p>\n<p><strong>Weekly Admissions</strong><br/>\n<span class=\"forecasted\"></span> Forecasted<br/>\n<span class=\"observed\"></span> Observed<br/>\n</p>\n<div class=\"cb\"></div>\n<div>",
489
+ "introText": "National median ensemble with 50 and 95% prediction intervals alongside observed weekly hospital admissions.",
490
+ "data": [
491
+ {
492
+ "Location": "US",
493
+ "Target": "NA",
494
+ "Target End Date": "11/23/2024",
495
+ "Forecast Date": "NA",
496
+ "Model": "NA",
497
+ "Location Name": "National",
498
+ "Month": "11",
499
+ "Forecasted": "Intentionally left blank for visualization purposes",
500
+ "Lower 50%": "NA",
501
+ "Upper 50%": "NA",
502
+ "Lower 95%": "NA",
503
+ "Upper 95%": "NA",
504
+ "Observed": "3092"
505
+ },
506
+ {
507
+ "Location": "US",
508
+ "Target": "0 wk inc flu hosp",
509
+ "Target End Date": "11/30/2024",
510
+ "Forecast Date": "11/30/2024",
511
+ "Model": "FluSight-ensemble",
512
+ "Location Name": "National",
513
+ "Month": "11",
514
+ "Forecasted": "3947",
515
+ "Lower 50%": "3576",
516
+ "Upper 50%": "4579",
517
+ "Lower 95%": "2701",
518
+ "Upper 95%": "6252",
519
+ "Observed": "4277"
520
+ },
521
+ {
522
+ "Location": "US",
523
+ "Target": "1 wk inc flu hosp",
524
+ "Target End Date": "12/7/2024",
525
+ "Forecast Date": "11/30/2024",
526
+ "Model": "FluSight-ensemble",
527
+ "Location Name": "National",
528
+ "Month": "12",
529
+ "Forecasted": "4727",
530
+ "Lower 50%": "3916",
531
+ "Upper 50%": "5796",
532
+ "Lower 95%": "2042",
533
+ "Upper 95%": "8353",
534
+ "Observed": "6288"
535
+ },
536
+ {
537
+ "Location": "US",
538
+ "Target": "2 wk inc flu hosp",
539
+ "Target End Date": "12/14/2024",
540
+ "Forecast Date": "11/30/2024",
541
+ "Model": "FluSight-ensemble",
542
+ "Location Name": "National",
543
+ "Month": "12",
544
+ "Forecasted": "5415",
545
+ "Lower 50%": "4031",
546
+ "Upper 50%": "6929",
547
+ "Lower 95%": "2403",
548
+ "Upper 95%": "10724",
549
+ "Observed": "9166"
550
+ },
551
+ {
552
+ "Location": "US",
553
+ "Target": "3 wk inc flu hosp",
554
+ "Target End Date": "12/21/2024",
555
+ "Forecast Date": "11/30/2024",
556
+ "Model": "FluSight-ensemble",
557
+ "Location Name": "National",
558
+ "Month": "12",
559
+ "Forecasted": "6248",
560
+ "Lower 50%": "4224",
561
+ "Upper 50%": "8271",
562
+ "Lower 95%": "2323",
563
+ "Upper 95%": "13970",
564
+ "Observed": "15429"
565
+ },
566
+ {
567
+ "Location": "US",
568
+ "Target": "NA",
569
+ "Target End Date": "12/28/2024",
570
+ "Forecast Date": "NA",
571
+ "Model": "NA",
572
+ "Location Name": "National",
573
+ "Month": "12",
574
+ "Forecasted": "Intentionally left blank for visualization purposes",
575
+ "Lower 50%": "NA",
576
+ "Upper 50%": "NA",
577
+ "Lower 95%": "NA",
578
+ "Upper 95%": "NA",
579
+ "Observed": "27681"
580
+ },
581
+ {
582
+ "Location": "US",
583
+ "Target": "0 wk inc flu hosp",
584
+ "Target End Date": "1/4/2025",
585
+ "Forecast Date": "1/4/2025",
586
+ "Model": "FluSight-ensemble",
587
+ "Location Name": "National",
588
+ "Month": "1",
589
+ "Forecasted": "25891",
590
+ "Lower 50%": "22477",
591
+ "Upper 50%": "28513",
592
+ "Lower 95%": "17196",
593
+ "Upper 95%": "36169",
594
+ "Observed": "38690"
595
+ },
596
+ {
597
+ "Location": "US",
598
+ "Target": "1 wk inc flu hosp",
599
+ "Target End Date": "1/11/2025",
600
+ "Forecast Date": "1/4/2025",
601
+ "Model": "FluSight-ensemble",
602
+ "Location Name": "National",
603
+ "Month": "1",
604
+ "Forecasted": "26451",
605
+ "Lower 50%": "22761",
606
+ "Upper 50%": "31409",
607
+ "Lower 95%": "16729",
608
+ "Upper 95%": "40846",
609
+ "Observed": "30750"
610
+ },
611
+ {
612
+ "Location": "US",
613
+ "Target": "2 wk inc flu hosp",
614
+ "Target End Date": "1/18/2025",
615
+ "Forecast Date": "1/4/2025",
616
+ "Model": "FluSight-ensemble",
617
+ "Location Name": "National",
618
+ "Month": "1",
619
+ "Forecasted": "24083",
620
+ "Lower 50%": "19270",
621
+ "Upper 50%": "29355",
622
+ "Lower 95%": "13372",
623
+ "Upper 95%": "42595",
624
+ "Observed": "32984"
625
+ },
626
+ {
627
+ "Location": "US",
628
+ "Target": "3 wk inc flu hosp",
629
+ "Target End Date": "1/25/2025",
630
+ "Forecast Date": "1/4/2025",
631
+ "Model": "FluSight-ensemble",
632
+ "Location Name": "National",
633
+ "Month": "1",
634
+ "Forecasted": "23735",
635
+ "Lower 50%": "18711",
636
+ "Upper 50%": "29913",
637
+ "Lower 95%": "11087",
638
+ "Upper 95%": "42719",
639
+ "Observed": "40604"
640
+ },
641
+ {
642
+ "Location": "US",
643
+ "Target": "NA",
644
+ "Target End Date": "2/1/2025",
645
+ "Forecast Date": "NA",
646
+ "Model": "NA",
647
+ "Location Name": "National",
648
+ "Month": "2",
649
+ "Forecasted": "Intentionally left blank for visualization purposes",
650
+ "Lower 50%": "NA",
651
+ "Upper 50%": "NA",
652
+ "Lower 95%": "NA",
653
+ "Upper 95%": "NA",
654
+ "Observed": "51206"
655
+ },
656
+ {
657
+ "Location": "US",
658
+ "Target": "NA",
659
+ "Target End Date": "2/8/2025",
660
+ "Forecast Date": "NA",
661
+ "Model": "NA",
662
+ "Location Name": "National",
663
+ "Month": "2",
664
+ "Forecasted": "Intentionally left blank for visualization purposes",
665
+ "Lower 50%": "NA",
666
+ "Upper 50%": "NA",
667
+ "Lower 95%": "NA",
668
+ "Upper 95%": "NA",
669
+ "Observed": "54271"
670
+ },
671
+ {
672
+ "Location": "US",
673
+ "Target": "0 wk inc flu hosp",
674
+ "Target End Date": "2/15/2025",
675
+ "Forecast Date": "2/15/2025",
676
+ "Model": "FluSight-ensemble",
677
+ "Location Name": "National",
678
+ "Month": "2",
679
+ "Forecasted": "45052",
680
+ "Lower 50%": "38273",
681
+ "Upper 50%": "51097",
682
+ "Lower 95%": "30423",
683
+ "Upper 95%": "60355",
684
+ "Observed": "46327"
685
+ },
686
+ {
687
+ "Location": "US",
688
+ "Target": "1 wk inc flu hosp",
689
+ "Target End Date": "2/22/2025",
690
+ "Forecast Date": "2/15/2025",
691
+ "Model": "FluSight-ensemble",
692
+ "Location Name": "National",
693
+ "Month": "2",
694
+ "Forecasted": "40726",
695
+ "Lower 50%": "32448",
696
+ "Upper 50%": "48077",
697
+ "Lower 95%": "24458",
698
+ "Upper 95%": "63101",
699
+ "Observed": "37871"
700
+ },
701
+ {
702
+ "Location": "US",
703
+ "Target": "2 wk inc flu hosp",
704
+ "Target End Date": "3/1/2025",
705
+ "Forecast Date": "2/15/2025",
706
+ "Model": "FluSight-ensemble",
707
+ "Location Name": "National",
708
+ "Month": "3",
709
+ "Forecasted": "37235",
710
+ "Lower 50%": "27006",
711
+ "Upper 50%": "42977",
712
+ "Lower 95%": "19599",
713
+ "Upper 95%": "63413",
714
+ "Observed": "30809"
715
+ },
716
+ {
717
+ "Location": "US",
718
+ "Target": "3 wk inc flu hosp",
719
+ "Target End Date": "3/8/2025",
720
+ "Forecast Date": "2/15/2025",
721
+ "Model": "FluSight-ensemble",
722
+ "Location Name": "National",
723
+ "Month": "3",
724
+ "Forecasted": "34093",
725
+ "Lower 50%": "25110",
726
+ "Upper 50%": "39141",
727
+ "Lower 95%": "15825",
728
+ "Upper 95%": "60260",
729
+ "Observed": "23986"
730
+ },
731
+ {
732
+ "Location": "US",
733
+ "Target": "NA",
734
+ "Target End Date": "3/15/2025",
735
+ "Forecast Date": "NA",
736
+ "Model": "NA",
737
+ "Location Name": "National",
738
+ "Month": "3",
739
+ "Forecasted": "Intentionally left blank for visualization purposes",
740
+ "Lower 50%": "NA",
741
+ "Upper 50%": "NA",
742
+ "Lower 95%": "NA",
743
+ "Upper 95%": "NA",
744
+ "Observed": "18389"
745
+ },
746
+ {
747
+ "Location": "US",
748
+ "Target": "0 wk inc flu hosp",
749
+ "Target End Date": "3/22/2025",
750
+ "Forecast Date": "3/22/2025",
751
+ "Model": "FluSight-ensemble",
752
+ "Location Name": "National",
753
+ "Month": "3",
754
+ "Forecasted": "14018",
755
+ "Lower 50%": "11909",
756
+ "Upper 50%": "15787",
757
+ "Lower 95%": "7856",
758
+ "Upper 95%": "20887",
759
+ "Observed": "13640"
760
+ },
761
+ {
762
+ "Location": "US",
763
+ "Target": "1 wk inc flu hosp",
764
+ "Target End Date": "3/29/2025",
765
+ "Forecast Date": "3/22/2025",
766
+ "Model": "FluSight-ensemble",
767
+ "Location Name": "National",
768
+ "Month": "3",
769
+ "Forecasted": "11058",
770
+ "Lower 50%": "8460",
771
+ "Upper 50%": "14184",
772
+ "Lower 95%": "5182",
773
+ "Upper 95%": "20711",
774
+ "Observed": "9684"
775
+ },
776
+ {
777
+ "Location": "US",
778
+ "Target": "2 wk inc flu hosp",
779
+ "Target End Date": "4/5/2025",
780
+ "Forecast Date": "3/22/2025",
781
+ "Model": "FluSight-ensemble",
782
+ "Location Name": "National",
783
+ "Month": "4",
784
+ "Forecasted": "9409",
785
+ "Lower 50%": "7002",
786
+ "Upper 50%": "12120",
787
+ "Lower 95%": "3631",
788
+ "Upper 95%": "20207",
789
+ "Observed": "6802"
790
+ },
791
+ {
792
+ "Location": "US",
793
+ "Target": "3 wk inc flu hosp",
794
+ "Target End Date": "4/12/2025",
795
+ "Forecast Date": "3/22/2025",
796
+ "Model": "FluSight-ensemble",
797
+ "Location Name": "National",
798
+ "Month": "4",
799
+ "Forecasted": "7607",
800
+ "Lower 50%": "5511",
801
+ "Upper 50%": "9998",
802
+ "Lower 95%": "2233",
803
+ "Upper 95%": "20432",
804
+ "Observed": "4917"
805
+ },
806
+ {
807
+ "Location": "US",
808
+ "Target": "NA",
809
+ "Target End Date": "4/19/2025",
810
+ "Forecast Date": "NA",
811
+ "Model": "NA",
812
+ "Location Name": "National",
813
+ "Month": "4",
814
+ "Forecasted": "Intentionally left blank for visualization purposes",
815
+ "Lower 50%": "NA",
816
+ "Upper 50%": "NA",
817
+ "Lower 95%": "NA",
818
+ "Upper 95%": "NA",
819
+ "Observed": "3871"
820
+ },
821
+ {
822
+ "Location": "US",
823
+ "Target": "0 wk inc flu hosp",
824
+ "Target End Date": "4/26/2025",
825
+ "Forecast Date": "4/26/2025",
826
+ "Model": "FluSight-ensemble",
827
+ "Location Name": "National",
828
+ "Month": "4",
829
+ "Forecasted": "2702",
830
+ "Lower 50%": "2063",
831
+ "Upper 50%": "3542",
832
+ "Lower 95%": "1066",
833
+ "Upper 95%": "5178",
834
+ "Observed": "3242"
835
+ },
836
+ {
837
+ "Location": "US",
838
+ "Target": "1 wk inc flu hosp",
839
+ "Target End Date": "5/3/2025",
840
+ "Forecast Date": "4/26/2025",
841
+ "Model": "FluSight-ensemble",
842
+ "Location Name": "National",
843
+ "Month": "5",
844
+ "Forecasted": "2141",
845
+ "Lower 50%": "1358",
846
+ "Upper 50%": "3178",
847
+ "Lower 95%": "502",
848
+ "Upper 95%": "4879",
849
+ "Observed": "2442"
850
+ },
851
+ {
852
+ "Location": "US",
853
+ "Target": "2 wk inc flu hosp",
854
+ "Target End Date": "5/10/2025",
855
+ "Forecast Date": "4/26/2025",
856
+ "Model": "FluSight-ensemble",
857
+ "Location Name": "National",
858
+ "Month": "5",
859
+ "Forecasted": "1574",
860
+ "Lower 50%": "915",
861
+ "Upper 50%": "2828",
862
+ "Lower 95%": "277",
863
+ "Upper 95%": "5080",
864
+ "Observed": "2116"
865
+ },
866
+ {
867
+ "Location": "US",
868
+ "Target": "3 wk inc flu hosp",
869
+ "Target End Date": "5/17/2025",
870
+ "Forecast Date": "4/26/2025",
871
+ "Model": "FluSight-ensemble",
872
+ "Location Name": "National",
873
+ "Month": "5",
874
+ "Forecasted": "1294",
875
+ "Lower 50%": "675",
876
+ "Upper 50%": "2749",
877
+ "Lower 95%": "189",
878
+ "Upper 95%": "5202",
879
+ "Observed": "1837"
880
+ },
881
+ {
882
+ "Location": "US",
883
+ "Target": "NA",
884
+ "Target End Date": "5/24/2025",
885
+ "Forecast Date": "NA",
886
+ "Model": "NA",
887
+ "Location Name": "National",
888
+ "Month": "5",
889
+ "Forecasted": "Intentionally left blank for visualization purposes",
890
+ "Lower 50%": "NA",
891
+ "Upper 50%": "NA",
892
+ "Lower 95%": "NA",
893
+ "Upper 95%": "NA",
894
+ "Observed": "1686"
895
+ },
896
+ {
897
+ "Location": "US",
898
+ "Target": "0 wk inc flu hosp",
899
+ "Target End Date": "5/31/2025",
900
+ "Forecast Date": "5/31/2025",
901
+ "Model": "FluSight-ensemble",
902
+ "Location Name": "National",
903
+ "Month": "5",
904
+ "Forecasted": "1463",
905
+ "Lower 50%": "1126",
906
+ "Upper 50%": "1710",
907
+ "Lower 95%": "752",
908
+ "Upper 95%": "2540",
909
+ "Observed": "1806"
910
+ }
911
+ ],
912
+ "datasets": {}
913
+ }