@cdc/chart 4.26.5 → 4.26.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 (91) hide show
  1. package/CONFIG.md +12 -8
  2. package/dist/{cdcchart-DQ00cQCm.es.js → cdcchart-BWVIUcAF.es.js} +5 -55
  3. package/dist/cdcchart.js +34093 -32767
  4. package/examples/feature/heatmap/average-age-categorical.json +1 -1
  5. package/examples/feature/heatmap/calendar-heatmap.json +1 -1
  6. package/examples/feature/heatmap/sparse-aggregation.json +1 -1
  7. package/examples/private/bad-y-axis.json +543 -0
  8. package/examples/private/bar-chart-negative-value.json +455 -0
  9. package/package.json +3 -3
  10. package/src/CdcChart.tsx +5 -4
  11. package/src/CdcChartComponent.tsx +32 -9
  12. package/src/_stories/Chart.SeriesColorAssignments.stories.tsx +183 -0
  13. package/src/_stories/Chart.YAxisAutoMaxStrategy.stories.tsx +52 -0
  14. package/src/_stories/Chart.YAxisFilterDomain.stories.tsx +90 -0
  15. package/src/_stories/ChartAnnotation.smoke.stories.tsx +10 -0
  16. package/src/_stories/_mock/annotation_event-line_mock.json +1064 -0
  17. package/src/_stories/_mock/heatmap-average-age-categorical.json +1 -1
  18. package/src/_stories/_mock/heatmap.json +1 -1
  19. package/src/components/Annotations/components/AnnotationDraggable.styles.css +22 -1
  20. package/src/components/Annotations/components/AnnotationDraggable.tsx +219 -119
  21. package/src/components/Annotations/tests/AnnotationDraggable.test.tsx +198 -0
  22. package/src/components/Axis/LeftAxis.tsx +3 -0
  23. package/src/components/Axis/LeftAxisGridlines.tsx +8 -1
  24. package/src/components/Axis/RightAxis.tsx +3 -0
  25. package/src/components/Axis/tests/AxisTickValues.test.tsx +86 -0
  26. package/src/components/EditorPanel/EditorPanel.tsx +367 -136
  27. package/src/components/EditorPanel/components/Panels/Panel.Annotate.tsx +101 -52
  28. package/src/components/EditorPanel/components/Panels/Panel.SmallMultiples.test.tsx +98 -0
  29. package/src/components/EditorPanel/components/Panels/Panel.SmallMultiples.tsx +10 -0
  30. package/src/components/EditorPanel/components/Panels/Panel.Visual.test.tsx +484 -0
  31. package/src/components/EditorPanel/components/Panels/Panel.Visual.tsx +3 -0
  32. package/src/components/EditorPanel/components/Panels/SeriesColorAssignments.tsx +262 -0
  33. package/src/components/EditorPanel/components/Panels/panelVisual.styles.css +32 -0
  34. package/src/components/EditorPanel/components/panels.scss +10 -0
  35. package/src/components/EditorPanel/editor-panel.scss +47 -0
  36. package/src/components/EditorPanel/helpers/getVisualizationTypeConfigUpdate.ts +6 -2
  37. package/src/components/EditorPanel/helpers/tests/getVisualizationTypeConfigUpdate.test.ts +20 -2
  38. package/src/components/EditorPanel/useEditorPermissions.test.tsx +256 -11
  39. package/src/components/EditorPanel/useEditorPermissions.ts +41 -5
  40. package/src/components/HeatMap/components/HeatMap.tsx +22 -17
  41. package/src/components/HeatMap/components/HeatMapGradientLegend.tsx +29 -15
  42. package/src/components/HeatMap/heatmap.css +15 -1
  43. package/src/components/HeatMap/tests/HeatMap.test.tsx +39 -7
  44. package/src/components/Legend/Legend.Component.tsx +2 -2
  45. package/src/components/Legend/helpers/createFormatLabels.test.ts +88 -0
  46. package/src/components/Legend/helpers/createFormatLabels.tsx +6 -1
  47. package/src/components/LineChart/helpers.test.ts +230 -1
  48. package/src/components/LineChart/helpers.ts +26 -13
  49. package/src/components/LineChart/index.tsx +21 -4
  50. package/src/components/LinearChart/tests/LinearChart.test.tsx +30 -0
  51. package/src/components/LinearChart.tsx +50 -15
  52. package/src/components/ScatterPlot/ScatterPlot.jsx +3 -3
  53. package/src/components/SmallMultiples/SmallMultipleTile.tsx +3 -0
  54. package/src/components/SmallMultiples/SmallMultiples.tsx +38 -9
  55. package/src/components/SmallMultiples/tests/SmallMultiples.test.tsx +170 -0
  56. package/src/data/initial-state.js +1 -0
  57. package/src/helpers/calculateLeftYAxisWidth.ts +9 -3
  58. package/src/helpers/colorAssignmentHelpers.ts +102 -0
  59. package/src/helpers/dataHelpers.ts +11 -1
  60. package/src/helpers/getAxisMaxOverride.ts +16 -0
  61. package/src/helpers/getCleanTopTickMax.ts +64 -0
  62. package/src/helpers/getColorScale.ts +18 -9
  63. package/src/helpers/getHasBoundarySuppression.ts +26 -0
  64. package/src/helpers/getMinMax.ts +24 -22
  65. package/src/helpers/getYAxisDomainData.ts +38 -0
  66. package/src/helpers/getYAxisFinalizationEligibility.ts +40 -0
  67. package/src/helpers/hasSpacedInlineLabel.ts +10 -0
  68. package/src/helpers/seriesColumnSettings.ts +5 -4
  69. package/src/helpers/smallMultiplesHelpers.ts +5 -0
  70. package/src/helpers/tests/calculateLeftYAxisWidth.test.ts +38 -0
  71. package/src/helpers/tests/dataHelpers.test.ts +135 -0
  72. package/src/helpers/tests/getAxisMaxOverride.test.ts +36 -0
  73. package/src/helpers/tests/getCleanTopTickMax.test.ts +165 -0
  74. package/src/helpers/tests/getColorScale.test.ts +197 -0
  75. package/src/helpers/tests/getMinMax.test.ts +211 -0
  76. package/src/helpers/tests/getYAxisDomainData.test.ts +119 -0
  77. package/src/helpers/tests/getYAxisFinalizationEligibility.test.ts +185 -0
  78. package/src/helpers/tests/{getYAxisAutoPaddingMode.test.ts → hasSpacedInlineLabel.test.ts} +17 -32
  79. package/src/helpers/tests/seriesColumnSettings.test.ts +16 -2
  80. package/src/helpers/tests/smallMultiplesHelpers.test.ts +99 -0
  81. package/src/hooks/tests/useRightAxis.test.tsx +127 -0
  82. package/src/hooks/tests/useScales.test.tsx +307 -29
  83. package/src/hooks/useRightAxis.ts +30 -13
  84. package/src/hooks/useScales.ts +45 -28
  85. package/src/hooks/useTooltip.tsx +3 -1
  86. package/src/test/CdcChart.dataTable.test.tsx +122 -0
  87. package/src/types/ChartConfig.ts +6 -1
  88. package/src/types/ChartContext.ts +3 -0
  89. package/src/helpers/getYAxisAutoPadding.ts +0 -55
  90. package/src/helpers/getYAxisAutoPaddingMode.ts +0 -17
  91. package/src/helpers/tests/getYAxisAutoPadding.test.ts +0 -37
@@ -0,0 +1,1064 @@
1
+ {
2
+ "annotations": [
3
+ {
4
+ "text": "<strong>1948</strong><br>DTP",
5
+ "anchorMode": "data",
6
+ "fontSize": 16,
7
+ "bezier": 10,
8
+ "show": {
9
+ "desktop": true,
10
+ "tablet": true,
11
+ "mobile": true
12
+ },
13
+ "connectorType": "line",
14
+ "colors": {
15
+ "label": "black",
16
+ "connector": "black",
17
+ "marker": "black"
18
+ },
19
+ "selected": true,
20
+ "anchor": {
21
+ "vertical": false,
22
+ "horizontal": false
23
+ },
24
+ "marker": "arrow",
25
+ "edit": {
26
+ "subject": false,
27
+ "label": false
28
+ },
29
+ "x": 25.965251414244584,
30
+ "y": 63.09464704450305,
31
+ "dx": 2,
32
+ "dy": -28.999999999999986,
33
+ "opacity": "52",
34
+ "connectionType": "line",
35
+ "seriesKey": "",
36
+ "dataX": "1948",
37
+ "savedDimensions": [376, 150],
38
+ "style": "event-line"
39
+ },
40
+ {
41
+ "text": "<strong>1992</strong><br>DTaP",
42
+ "anchorMode": "data",
43
+ "fontSize": 16,
44
+ "bezier": 10,
45
+ "show": {
46
+ "desktop": true,
47
+ "tablet": true,
48
+ "mobile": true
49
+ },
50
+ "connectorType": "line",
51
+ "colors": {
52
+ "label": "black",
53
+ "connector": "black",
54
+ "marker": "black"
55
+ },
56
+ "selected": true,
57
+ "anchor": {
58
+ "vertical": false,
59
+ "horizontal": false
60
+ },
61
+ "marker": "arrow",
62
+ "edit": {
63
+ "subject": false,
64
+ "label": false
65
+ },
66
+ "x": 67.79904802218402,
67
+ "y": 97.17435092087686,
68
+ "dx": -2,
69
+ "dy": 24.2,
70
+ "opacity": "55",
71
+ "connectionType": "line",
72
+ "seriesKey": "",
73
+ "dataX": "1992",
74
+ "savedDimensions": [376, 150],
75
+ "style": "event-line"
76
+ },
77
+ {
78
+ "text": "<strong>2005</strong><br>Tdap",
79
+ "anchorMode": "data",
80
+ "fontSize": 16,
81
+ "bezier": 10,
82
+ "show": {
83
+ "desktop": true,
84
+ "tablet": true,
85
+ "mobile": true
86
+ },
87
+ "connectorType": "line",
88
+ "colors": {
89
+ "label": "black",
90
+ "connector": "black",
91
+ "marker": "black"
92
+ },
93
+ "selected": true,
94
+ "anchor": {
95
+ "vertical": false,
96
+ "horizontal": false
97
+ },
98
+ "marker": "arrow",
99
+ "edit": {
100
+ "subject": false,
101
+ "label": false
102
+ },
103
+ "x": 80.36049032904569,
104
+ "y": 90.31789898041947,
105
+ "dx": 2,
106
+ "dy": -3.000000000000007,
107
+ "opacity": "52",
108
+ "connectionType": "line",
109
+ "seriesKey": "",
110
+ "dataX": "2005",
111
+ "savedDimensions": [376, 150],
112
+ "style": "event-line"
113
+ }
114
+ ],
115
+ "type": "chart",
116
+ "debugSvg": false,
117
+ "chartMessage": {
118
+ "noData": "No Data Available"
119
+ },
120
+ "title": "U.S. Reported Pertussis Cases: 1922 - 2025",
121
+ "titleStyle": "small",
122
+ "showTitle": true,
123
+ "showDownloadMediaButton": false,
124
+ "theme": "theme-blue",
125
+ "animate": false,
126
+ "lineDatapointStyle": "hover",
127
+ "lineDatapointColor": "Same as Line",
128
+ "barHasBorder": "true",
129
+ "isLollipopChart": false,
130
+ "lollipopShape": "circle",
131
+ "lollipopColorStyle": "two-tone",
132
+ "visualizationSubType": "regular",
133
+ "barStyle": "flat",
134
+ "roundingStyle": "standard",
135
+ "tipRounding": "top",
136
+ "isResponsiveTicks": false,
137
+ "general": {
138
+ "annotationDropdownText": "Annotations",
139
+ "showMissingDataLabel": true,
140
+ "showSuppressedSymbol": true,
141
+ "showZeroValueData": true,
142
+ "hideNullValue": true,
143
+ "palette": {
144
+ "isReversed": false,
145
+ "version": "2.0",
146
+ "name": "qualitative_standard"
147
+ },
148
+ "useIntelligentLineChartLabels": false,
149
+ "mobileAnnotationDisplay": "text"
150
+ },
151
+ "padding": {
152
+ "left": 5,
153
+ "right": 5
154
+ },
155
+ "preliminaryData": [],
156
+ "yAxis": {
157
+ "hideAxis": true,
158
+ "displayNumbersOnBar": false,
159
+ "hideLabel": false,
160
+ "hideTicks": true,
161
+ "size": "75",
162
+ "gridLines": true,
163
+ "enablePadding": false,
164
+ "min": "",
165
+ "max": "",
166
+ "labelColor": "#1c1d1f",
167
+ "tickLabelColor": "#1c1d1f",
168
+ "tickColor": "#1c1d1f",
169
+ "rightHideAxis": false,
170
+ "rightAxisSize": 0,
171
+ "rightLabel": "",
172
+ "rightLabelOffsetSize": 0,
173
+ "rightAxisLabelColor": "#1c1d1f",
174
+ "rightAxisTickLabelColor": "#1c1d1f",
175
+ "rightAxisTickColor": "#1c1d1f",
176
+ "numTicks": 4,
177
+ "axisPadding": 0,
178
+ "scalePadding": 10,
179
+ "tickRotation": 0,
180
+ "anchors": [],
181
+ "shoMissingDataLabel": true,
182
+ "showMissingDataLine": true,
183
+ "categories": [],
184
+ "inlineLabel": "",
185
+ "titlePlacement": "side"
186
+ },
187
+ "boxplot": {
188
+ "plots": [],
189
+ "borders": "true",
190
+ "plotOutlierValues": false,
191
+ "plotNonOutlierValues": true,
192
+ "labels": {
193
+ "q1": "Lower Quartile",
194
+ "q2": "q2",
195
+ "q3": "Upper Quartile",
196
+ "q4": "q4",
197
+ "minimum": "Minimum",
198
+ "maximum": "Maximum",
199
+ "mean": "Mean",
200
+ "median": "Median",
201
+ "sd": "Standard Deviation",
202
+ "iqr": "Interquartile Range",
203
+ "count": "Count",
204
+ "outliers": "Outliers",
205
+ "values": "Values",
206
+ "lowerBounds": "Lower Bounds",
207
+ "upperBounds": "Upper Bounds"
208
+ }
209
+ },
210
+ "topAxis": {
211
+ "hasLine": false
212
+ },
213
+ "isLegendValue": false,
214
+ "barThickness": 0.35,
215
+ "barHeight": 25,
216
+ "barSpace": 15,
217
+ "heights": {
218
+ "vertical": "250",
219
+ "horizontal": 750,
220
+ "mobileVertical": "150"
221
+ },
222
+ "xAxis": {
223
+ "anchors": [],
224
+ "type": "date",
225
+ "showTargetLabel": true,
226
+ "targetLabel": "Target",
227
+ "hideAxis": false,
228
+ "hideLabel": false,
229
+ "hideTicks": false,
230
+ "size": 75,
231
+ "tickRotation": 0,
232
+ "min": "",
233
+ "max": "",
234
+ "labelColor": "#1c1d1f",
235
+ "tickLabelColor": "#1c1d1f",
236
+ "tickColor": "#1c1d1f",
237
+ "numTicks": 6,
238
+ "dateDisplayFormat": "%Y",
239
+ "labelOffset": 0,
240
+ "axisPadding": 200,
241
+ "target": 0,
242
+ "maxTickRotation": 0,
243
+ "padding": 5,
244
+ "showYearsOnce": false,
245
+ "sortByRecentDate": false,
246
+ "brushActive": true,
247
+ "brushDefaultRecentDateCount": "200",
248
+ "viewportNumTicks": {
249
+ "xs": 4,
250
+ "xxs": 4
251
+ },
252
+ "sortDates": false,
253
+ "dataKey": "Year",
254
+ "tickWidthMax": 32,
255
+ "dateParseFormat": "%Y",
256
+ "axisBBox": 26.729999542236328,
257
+ "brushDynamicYAxis": false
258
+ },
259
+ "table": {
260
+ "label": "Data Table",
261
+ "expanded": false,
262
+ "limitHeight": false,
263
+ "height": "",
264
+ "caption": "",
265
+ "showDownloadUrl": false,
266
+ "downloadUrlLabel": "",
267
+ "showDataTableLink": true,
268
+ "showDownloadLinkBelow": true,
269
+ "indexLabel": "",
270
+ "download": true,
271
+ "showVertical": true,
272
+ "dateDisplayFormat": "%Y",
273
+ "showMissingDataLabel": true,
274
+ "showSuppressedSymbol": true,
275
+ "collapsible": true,
276
+ "show": true,
277
+ "defaultSort": {
278
+ "column": "Year",
279
+ "sortDirection": "desc"
280
+ },
281
+ "showDownloadImgButton": true,
282
+ "search": false,
283
+ "searchPlaceholder": ""
284
+ },
285
+ "orientation": "vertical",
286
+ "columns": {
287
+ "No. Reported Pertussis Cases": {
288
+ "label": "Number of Reported Pertussis Cases",
289
+ "name": "No. Reported Pertussis Cases"
290
+ },
291
+ "Data Status": {
292
+ "label": "Data Status",
293
+ "dataTable": true,
294
+ "tooltips": false,
295
+ "prefix": "",
296
+ "suffix": "",
297
+ "forestPlot": false,
298
+ "startingPoint": "0",
299
+ "forestPlotAlignRight": false,
300
+ "roundToPlace": 0,
301
+ "commas": false,
302
+ "showInViz": false,
303
+ "forestPlotStartingPoint": 0,
304
+ "order": 3,
305
+ "name": "Data Status"
306
+ }
307
+ },
308
+ "legend": {
309
+ "hide": false,
310
+ "behavior": "isolate",
311
+ "axisAlign": true,
312
+ "singleRow": true,
313
+ "colorCode": "",
314
+ "reverseLabelOrder": false,
315
+ "description": "",
316
+ "dynamicLegend": false,
317
+ "dynamicLegendDefaultText": "Show All",
318
+ "dynamicLegendItemLimit": 5,
319
+ "dynamicLegendItemLimitMessage": "Dynamic Legend Item Limit Hit.",
320
+ "dynamicLegendChartMessage": "Select Options from the Legend",
321
+ "label": "",
322
+ "lineMode": false,
323
+ "verticalSorted": false,
324
+ "highlightOnHover": false,
325
+ "hideSuppressedLabels": false,
326
+ "hideSuppressionLink": false,
327
+ "seriesHighlight": [],
328
+ "style": "circles",
329
+ "subStyle": "linear blocks",
330
+ "groupBy": "",
331
+ "shape": "circle",
332
+ "tickRotation": "",
333
+ "order": "dataColumn",
334
+ "hideBorder": {
335
+ "side": false,
336
+ "topBottom": true
337
+ },
338
+ "position": "top",
339
+ "orderedValues": [],
340
+ "patterns": {},
341
+ "patternField": "",
342
+ "unified": true
343
+ },
344
+ "smallMultiples": {
345
+ "mode": "",
346
+ "tileColumn": "",
347
+ "tilesPerRowDesktop": 3,
348
+ "tilesPerRowMobile": 1,
349
+ "tileOrder": [],
350
+ "tileOrderType": "asc",
351
+ "tileTitles": {},
352
+ "independentYAxis": false,
353
+ "colorMode": "same",
354
+ "synchronizedTooltips": true,
355
+ "showAreaUnderLine": true
356
+ },
357
+ "exclusions": {
358
+ "active": false,
359
+ "keys": []
360
+ },
361
+ "twoColor": {
362
+ "palette": "monochrome-1",
363
+ "isPaletteReversed": false
364
+ },
365
+ "labels": false,
366
+ "dataFormat": {
367
+ "commas": true,
368
+ "prefix": "",
369
+ "suffix": "",
370
+ "abbreviated": false,
371
+ "bottomSuffix": "",
372
+ "bottomPrefix": "",
373
+ "bottomAbbreviated": false
374
+ },
375
+ "filters": [],
376
+ "confidenceKeys": {},
377
+ "visual": {
378
+ "border": false,
379
+ "borderColorTheme": false,
380
+ "accent": false,
381
+ "background": false,
382
+ "hideBackgroundColor": false,
383
+ "tp5Treatment": false,
384
+ "tp5Background": false,
385
+ "verticalHoverLine": false,
386
+ "horizontalHoverLine": false,
387
+ "lineDatapointSymbol": "none",
388
+ "maximumShapeAmount": 7
389
+ },
390
+ "useLogScale": false,
391
+ "filterBehavior": "Filter Change",
392
+ "highlightedBarValues": [],
393
+ "series": [
394
+ {
395
+ "dataKey": "No. Reported Pertussis Cases",
396
+ "type": "Line",
397
+ "axis": "Left",
398
+ "tooltip": true,
399
+ "name": "Number of Reported Pertussis Cases"
400
+ }
401
+ ],
402
+ "tooltips": {
403
+ "opacity": 90,
404
+ "singleSeries": false,
405
+ "dateDisplayFormat": "%Y"
406
+ },
407
+ "forestPlot": {
408
+ "startAt": 0,
409
+ "colors": {
410
+ "line": "",
411
+ "shape": ""
412
+ },
413
+ "lineOfNoEffect": {
414
+ "show": true
415
+ },
416
+ "type": "",
417
+ "pooledResult": {
418
+ "diamondHeight": 5,
419
+ "column": ""
420
+ },
421
+ "estimateField": "",
422
+ "estimateRadius": "",
423
+ "shape": "square",
424
+ "rowHeight": 20,
425
+ "description": {
426
+ "show": true,
427
+ "text": "description",
428
+ "location": 0
429
+ },
430
+ "result": {
431
+ "show": true,
432
+ "text": "result",
433
+ "location": 100
434
+ },
435
+ "radius": {
436
+ "min": 2,
437
+ "max": 10,
438
+ "scalingColumn": ""
439
+ },
440
+ "regression": {
441
+ "lower": 0,
442
+ "upper": 0,
443
+ "estimateField": 0
444
+ },
445
+ "leftWidthOffset": 0,
446
+ "rightWidthOffset": 0,
447
+ "showZeroLine": false,
448
+ "leftLabel": "",
449
+ "rightLabel": ""
450
+ },
451
+ "heatmap": {
452
+ "cellPadding": 1,
453
+ "rowLabelGap": 32,
454
+ "columnLabelGap": 56,
455
+ "xAxisPosition": "top",
456
+ "showCellValues": false
457
+ },
458
+ "area": {
459
+ "isStacked": false
460
+ },
461
+ "radar": {
462
+ "gridRings": 5,
463
+ "showGridRings": true,
464
+ "gridRingStyle": "polygons",
465
+ "scaleMin": 0,
466
+ "scaleMax": "",
467
+ "fillOpacity": 0.3,
468
+ "showPoints": true,
469
+ "pointRadius": 4,
470
+ "strokeWidth": 2,
471
+ "axisLabelOffset": 15
472
+ },
473
+ "sankey": {
474
+ "title": {
475
+ "defaultColor": "black"
476
+ },
477
+ "iterations": 1,
478
+ "rxValue": 0.9,
479
+ "overallSize": {
480
+ "width": 900,
481
+ "height": 700
482
+ },
483
+ "margin": {
484
+ "margin_y": 25,
485
+ "margin_x": 0
486
+ },
487
+ "nodeSize": {
488
+ "nodeWidth": 26,
489
+ "nodeHeight": 40
490
+ },
491
+ "nodePadding": 55,
492
+ "nodeFontColor": "black",
493
+ "nodeColor": {
494
+ "default": "#ff8500",
495
+ "inactive": "#808080"
496
+ },
497
+ "linkColor": {
498
+ "default": "#ffc900",
499
+ "inactive": "#D3D3D3"
500
+ },
501
+ "opacity": {
502
+ "nodeOpacityDefault": 1,
503
+ "nodeOpacityInactive": 0.1,
504
+ "LinkOpacityDefault": 1,
505
+ "LinkOpacityInactive": 0.1
506
+ },
507
+ "storyNodeFontColor": "#006778",
508
+ "storyNodeText": [],
509
+ "nodeValueStyle": {
510
+ "textBefore": "(",
511
+ "textAfter": ")"
512
+ },
513
+ "data": []
514
+ },
515
+ "markupVariables": [],
516
+ "enableMarkupVariables": false,
517
+ "visualizationType": "Line",
518
+ "dataMetadata": {},
519
+ "dataFileName": "./Pertussis Figure 1 for COVE.csv",
520
+ "dataFileSourceType": "file",
521
+ "version": "4.26.5",
522
+ "migrations": {
523
+ "addColorMigration": true
524
+ },
525
+ "locale": "en-US",
526
+ "dynamicMarginTop": 0,
527
+ "regions": [
528
+ {
529
+ "background": "#777777",
530
+ "from": "2025",
531
+ "toType": "Last Date",
532
+ "color": "red"
533
+ }
534
+ ],
535
+ "dataDescription": {
536
+ "horizontal": false,
537
+ "series": false
538
+ },
539
+ "dataUrl": "https://www.cdc.gov/wcms/vizdata/Respitory_Viruses/DBD Visuals-temp/Pertussis/Pertussis Figure 1 for COVE.csv",
540
+ "description": "",
541
+ "introText": "",
542
+ "data": [
543
+ {
544
+ "Year": "1922",
545
+ "No. Reported Pertussis Cases": "107,473",
546
+ "Data Status": "Finalized"
547
+ },
548
+ {
549
+ "Year": "1923",
550
+ "No. Reported Pertussis Cases": "164,191",
551
+ "Data Status": "Finalized"
552
+ },
553
+ {
554
+ "Year": "1924",
555
+ "No. Reported Pertussis Cases": "165,418",
556
+ "Data Status": "Finalized"
557
+ },
558
+ {
559
+ "Year": "1925",
560
+ "No. Reported Pertussis Cases": "152,003",
561
+ "Data Status": "Finalized"
562
+ },
563
+ {
564
+ "Year": "1926",
565
+ "No. Reported Pertussis Cases": "202,210",
566
+ "Data Status": "Finalized"
567
+ },
568
+ {
569
+ "Year": "1927",
570
+ "No. Reported Pertussis Cases": "181,411",
571
+ "Data Status": "Finalized"
572
+ },
573
+ {
574
+ "Year": "1928",
575
+ "No. Reported Pertussis Cases": "161,799",
576
+ "Data Status": "Finalized"
577
+ },
578
+ {
579
+ "Year": "1929",
580
+ "No. Reported Pertussis Cases": "197,371",
581
+ "Data Status": "Finalized"
582
+ },
583
+ {
584
+ "Year": "1930",
585
+ "No. Reported Pertussis Cases": "166,914",
586
+ "Data Status": "Finalized"
587
+ },
588
+ {
589
+ "Year": "1931",
590
+ "No. Reported Pertussis Cases": "172,559",
591
+ "Data Status": "Finalized"
592
+ },
593
+ {
594
+ "Year": "1932",
595
+ "No. Reported Pertussis Cases": "215,343",
596
+ "Data Status": "Finalized"
597
+ },
598
+ {
599
+ "Year": "1933",
600
+ "No. Reported Pertussis Cases": "179,135",
601
+ "Data Status": "Finalized"
602
+ },
603
+ {
604
+ "Year": "1934",
605
+ "No. Reported Pertussis Cases": "265,269",
606
+ "Data Status": "Finalized"
607
+ },
608
+ {
609
+ "Year": "1935",
610
+ "No. Reported Pertussis Cases": "180,518",
611
+ "Data Status": "Finalized"
612
+ },
613
+ {
614
+ "Year": "1936",
615
+ "No. Reported Pertussis Cases": "147,237",
616
+ "Data Status": "Finalized"
617
+ },
618
+ {
619
+ "Year": "1937",
620
+ "No. Reported Pertussis Cases": "214,652",
621
+ "Data Status": "Finalized"
622
+ },
623
+ {
624
+ "Year": "1938",
625
+ "No. Reported Pertussis Cases": "227,319",
626
+ "Data Status": "Finalized"
627
+ },
628
+ {
629
+ "Year": "1939",
630
+ "No. Reported Pertussis Cases": "103,188",
631
+ "Data Status": "Finalized"
632
+ },
633
+ {
634
+ "Year": "1940",
635
+ "No. Reported Pertussis Cases": "183,866",
636
+ "Data Status": "Finalized"
637
+ },
638
+ {
639
+ "Year": "1941",
640
+ "No. Reported Pertussis Cases": "222,202",
641
+ "Data Status": "Finalized"
642
+ },
643
+ {
644
+ "Year": "1942",
645
+ "No. Reported Pertussis Cases": "191,383",
646
+ "Data Status": "Finalized"
647
+ },
648
+ {
649
+ "Year": "1943",
650
+ "No. Reported Pertussis Cases": "191,890",
651
+ "Data Status": "Finalized"
652
+ },
653
+ {
654
+ "Year": "1944",
655
+ "No. Reported Pertussis Cases": "109,873",
656
+ "Data Status": "Finalized"
657
+ },
658
+ {
659
+ "Year": "1945",
660
+ "No. Reported Pertussis Cases": "133,792",
661
+ "Data Status": "Finalized"
662
+ },
663
+ {
664
+ "Year": "1946",
665
+ "No. Reported Pertussis Cases": "109,860",
666
+ "Data Status": "Finalized"
667
+ },
668
+ {
669
+ "Year": "1947",
670
+ "No. Reported Pertussis Cases": "156,517",
671
+ "Data Status": "Finalized"
672
+ },
673
+ {
674
+ "Year": "1948",
675
+ "No. Reported Pertussis Cases": "74,715",
676
+ "Data Status": "Finalized"
677
+ },
678
+ {
679
+ "Year": "1949",
680
+ "No. Reported Pertussis Cases": "69,479",
681
+ "Data Status": "Finalized"
682
+ },
683
+ {
684
+ "Year": "1950",
685
+ "No. Reported Pertussis Cases": "120,718",
686
+ "Data Status": "Finalized"
687
+ },
688
+ {
689
+ "Year": "1951",
690
+ "No. Reported Pertussis Cases": "68,687",
691
+ "Data Status": "Finalized"
692
+ },
693
+ {
694
+ "Year": "1952",
695
+ "No. Reported Pertussis Cases": "45,030",
696
+ "Data Status": "Finalized"
697
+ },
698
+ {
699
+ "Year": "1953",
700
+ "No. Reported Pertussis Cases": "37,129",
701
+ "Data Status": "Finalized"
702
+ },
703
+ {
704
+ "Year": "1954",
705
+ "No. Reported Pertussis Cases": "60,886",
706
+ "Data Status": "Finalized"
707
+ },
708
+ {
709
+ "Year": "1955",
710
+ "No. Reported Pertussis Cases": "62,786",
711
+ "Data Status": "Finalized"
712
+ },
713
+ {
714
+ "Year": "1956",
715
+ "No. Reported Pertussis Cases": "31,732",
716
+ "Data Status": "Finalized"
717
+ },
718
+ {
719
+ "Year": "1957",
720
+ "No. Reported Pertussis Cases": "28,295",
721
+ "Data Status": "Finalized"
722
+ },
723
+ {
724
+ "Year": "1958",
725
+ "No. Reported Pertussis Cases": "32,148",
726
+ "Data Status": "Finalized"
727
+ },
728
+ {
729
+ "Year": "1959",
730
+ "No. Reported Pertussis Cases": "40,005",
731
+ "Data Status": "Finalized"
732
+ },
733
+ {
734
+ "Year": "1960",
735
+ "No. Reported Pertussis Cases": "14,809",
736
+ "Data Status": "Finalized"
737
+ },
738
+ {
739
+ "Year": "1961",
740
+ "No. Reported Pertussis Cases": "11,468",
741
+ "Data Status": "Finalized"
742
+ },
743
+ {
744
+ "Year": "1962",
745
+ "No. Reported Pertussis Cases": "17,749",
746
+ "Data Status": "Finalized"
747
+ },
748
+ {
749
+ "Year": "1963",
750
+ "No. Reported Pertussis Cases": "17,135",
751
+ "Data Status": "Finalized"
752
+ },
753
+ {
754
+ "Year": "1964",
755
+ "No. Reported Pertussis Cases": "13,005",
756
+ "Data Status": "Finalized"
757
+ },
758
+ {
759
+ "Year": "1965",
760
+ "No. Reported Pertussis Cases": "6,799",
761
+ "Data Status": "Finalized"
762
+ },
763
+ {
764
+ "Year": "1966",
765
+ "No. Reported Pertussis Cases": "7,717",
766
+ "Data Status": "Finalized"
767
+ },
768
+ {
769
+ "Year": "1967",
770
+ "No. Reported Pertussis Cases": "9,718",
771
+ "Data Status": "Finalized"
772
+ },
773
+ {
774
+ "Year": "1968",
775
+ "No. Reported Pertussis Cases": "4,810",
776
+ "Data Status": "Finalized"
777
+ },
778
+ {
779
+ "Year": "1969",
780
+ "No. Reported Pertussis Cases": "3,285",
781
+ "Data Status": "Finalized"
782
+ },
783
+ {
784
+ "Year": "1970",
785
+ "No. Reported Pertussis Cases": "4,249",
786
+ "Data Status": "Finalized"
787
+ },
788
+ {
789
+ "Year": "1971",
790
+ "No. Reported Pertussis Cases": "3,036",
791
+ "Data Status": "Finalized"
792
+ },
793
+ {
794
+ "Year": "1972",
795
+ "No. Reported Pertussis Cases": "3,287",
796
+ "Data Status": "Finalized"
797
+ },
798
+ {
799
+ "Year": "1973",
800
+ "No. Reported Pertussis Cases": "1,759",
801
+ "Data Status": "Finalized"
802
+ },
803
+ {
804
+ "Year": "1974",
805
+ "No. Reported Pertussis Cases": "2,402",
806
+ "Data Status": "Finalized"
807
+ },
808
+ {
809
+ "Year": "1975",
810
+ "No. Reported Pertussis Cases": "1,738",
811
+ "Data Status": "Finalized"
812
+ },
813
+ {
814
+ "Year": "1976",
815
+ "No. Reported Pertussis Cases": "1,010",
816
+ "Data Status": "Finalized"
817
+ },
818
+ {
819
+ "Year": "1977",
820
+ "No. Reported Pertussis Cases": "2,177",
821
+ "Data Status": "Finalized"
822
+ },
823
+ {
824
+ "Year": "1978",
825
+ "No. Reported Pertussis Cases": "2,063",
826
+ "Data Status": "Finalized"
827
+ },
828
+ {
829
+ "Year": "1979",
830
+ "No. Reported Pertussis Cases": "1,623",
831
+ "Data Status": "Finalized"
832
+ },
833
+ {
834
+ "Year": "1980",
835
+ "No. Reported Pertussis Cases": "1,730",
836
+ "Data Status": "Finalized"
837
+ },
838
+ {
839
+ "Year": "1981",
840
+ "No. Reported Pertussis Cases": "1,248",
841
+ "Data Status": "Finalized"
842
+ },
843
+ {
844
+ "Year": "1982",
845
+ "No. Reported Pertussis Cases": "1,895",
846
+ "Data Status": "Finalized"
847
+ },
848
+ {
849
+ "Year": "1983",
850
+ "No. Reported Pertussis Cases": "2,463",
851
+ "Data Status": "Finalized"
852
+ },
853
+ {
854
+ "Year": "1984",
855
+ "No. Reported Pertussis Cases": "2,276",
856
+ "Data Status": "Finalized"
857
+ },
858
+ {
859
+ "Year": "1985",
860
+ "No. Reported Pertussis Cases": "3,589",
861
+ "Data Status": "Finalized"
862
+ },
863
+ {
864
+ "Year": "1986",
865
+ "No. Reported Pertussis Cases": "4,195",
866
+ "Data Status": "Finalized"
867
+ },
868
+ {
869
+ "Year": "1987",
870
+ "No. Reported Pertussis Cases": "2,823",
871
+ "Data Status": "Finalized"
872
+ },
873
+ {
874
+ "Year": "1988",
875
+ "No. Reported Pertussis Cases": "3,450",
876
+ "Data Status": "Finalized"
877
+ },
878
+ {
879
+ "Year": "1989",
880
+ "No. Reported Pertussis Cases": "4,157",
881
+ "Data Status": "Finalized"
882
+ },
883
+ {
884
+ "Year": "1990",
885
+ "No. Reported Pertussis Cases": "4,570",
886
+ "Data Status": "Finalized"
887
+ },
888
+ {
889
+ "Year": "1991",
890
+ "No. Reported Pertussis Cases": "2,719",
891
+ "Data Status": "Finalized"
892
+ },
893
+ {
894
+ "Year": "1992",
895
+ "No. Reported Pertussis Cases": "4,083",
896
+ "Data Status": "Finalized"
897
+ },
898
+ {
899
+ "Year": "1993",
900
+ "No. Reported Pertussis Cases": "6,586",
901
+ "Data Status": "Finalized"
902
+ },
903
+ {
904
+ "Year": "1994",
905
+ "No. Reported Pertussis Cases": "4,617",
906
+ "Data Status": "Finalized"
907
+ },
908
+ {
909
+ "Year": "1995",
910
+ "No. Reported Pertussis Cases": "5,137",
911
+ "Data Status": "Finalized"
912
+ },
913
+ {
914
+ "Year": "1996",
915
+ "No. Reported Pertussis Cases": "7,796",
916
+ "Data Status": "Finalized"
917
+ },
918
+ {
919
+ "Year": "1997",
920
+ "No. Reported Pertussis Cases": "6,564",
921
+ "Data Status": "Finalized"
922
+ },
923
+ {
924
+ "Year": "1998",
925
+ "No. Reported Pertussis Cases": "7,405",
926
+ "Data Status": "Finalized"
927
+ },
928
+ {
929
+ "Year": "1999",
930
+ "No. Reported Pertussis Cases": "7,298",
931
+ "Data Status": "Finalized"
932
+ },
933
+ {
934
+ "Year": "2000",
935
+ "No. Reported Pertussis Cases": "7,867",
936
+ "Data Status": "Finalized"
937
+ },
938
+ {
939
+ "Year": "2001",
940
+ "No. Reported Pertussis Cases": "7,580",
941
+ "Data Status": "Finalized"
942
+ },
943
+ {
944
+ "Year": "2002",
945
+ "No. Reported Pertussis Cases": "9,771",
946
+ "Data Status": "Finalized"
947
+ },
948
+ {
949
+ "Year": "2003",
950
+ "No. Reported Pertussis Cases": "11,647",
951
+ "Data Status": "Finalized"
952
+ },
953
+ {
954
+ "Year": "2004",
955
+ "No. Reported Pertussis Cases": "25,827",
956
+ "Data Status": "Finalized"
957
+ },
958
+ {
959
+ "Year": "2005",
960
+ "No. Reported Pertussis Cases": "25,616",
961
+ "Data Status": "Finalized"
962
+ },
963
+ {
964
+ "Year": "2006",
965
+ "No. Reported Pertussis Cases": "15,632",
966
+ "Data Status": "Finalized"
967
+ },
968
+ {
969
+ "Year": "2007",
970
+ "No. Reported Pertussis Cases": "10,454",
971
+ "Data Status": "Finalized"
972
+ },
973
+ {
974
+ "Year": "2008",
975
+ "No. Reported Pertussis Cases": "13,278",
976
+ "Data Status": "Finalized"
977
+ },
978
+ {
979
+ "Year": "2009",
980
+ "No. Reported Pertussis Cases": "16,858",
981
+ "Data Status": "Finalized"
982
+ },
983
+ {
984
+ "Year": "2010",
985
+ "No. Reported Pertussis Cases": "27,550",
986
+ "Data Status": "Finalized"
987
+ },
988
+ {
989
+ "Year": "2011",
990
+ "No. Reported Pertussis Cases": "18,719",
991
+ "Data Status": "Finalized"
992
+ },
993
+ {
994
+ "Year": "2012",
995
+ "No. Reported Pertussis Cases": "48,277",
996
+ "Data Status": "Finalized"
997
+ },
998
+ {
999
+ "Year": "2013",
1000
+ "No. Reported Pertussis Cases": "28,639",
1001
+ "Data Status": "Finalized"
1002
+ },
1003
+ {
1004
+ "Year": "2014",
1005
+ "No. Reported Pertussis Cases": "32,971",
1006
+ "Data Status": "Finalized"
1007
+ },
1008
+ {
1009
+ "Year": "2015",
1010
+ "No. Reported Pertussis Cases": "20,762",
1011
+ "Data Status": "Finalized"
1012
+ },
1013
+ {
1014
+ "Year": "2016",
1015
+ "No. Reported Pertussis Cases": "17,972",
1016
+ "Data Status": "Finalized"
1017
+ },
1018
+ {
1019
+ "Year": "2017",
1020
+ "No. Reported Pertussis Cases": "18,975",
1021
+ "Data Status": "Finalized"
1022
+ },
1023
+ {
1024
+ "Year": "2018",
1025
+ "No. Reported Pertussis Cases": "15,609",
1026
+ "Data Status": "Finalized"
1027
+ },
1028
+ {
1029
+ "Year": "2019",
1030
+ "No. Reported Pertussis Cases": "18,617",
1031
+ "Data Status": "Finalized"
1032
+ },
1033
+ {
1034
+ "Year": "2020",
1035
+ "No. Reported Pertussis Cases": "6,124",
1036
+ "Data Status": "Finalized"
1037
+ },
1038
+ {
1039
+ "Year": "2021",
1040
+ "No. Reported Pertussis Cases": "2,116",
1041
+ "Data Status": "Finalized"
1042
+ },
1043
+ {
1044
+ "Year": "2022",
1045
+ "No. Reported Pertussis Cases": "3,044",
1046
+ "Data Status": "Finalized"
1047
+ },
1048
+ {
1049
+ "Year": "2023",
1050
+ "No. Reported Pertussis Cases": "7,063",
1051
+ "Data Status": "Finalized"
1052
+ },
1053
+ {
1054
+ "Year": "2024",
1055
+ "No. Reported Pertussis Cases": "43,321",
1056
+ "Data Status": "Provisional"
1057
+ },
1058
+ {
1059
+ "Year": "2025",
1060
+ "No. Reported Pertussis Cases": "28,783",
1061
+ "Data Status": "Provisional"
1062
+ }
1063
+ ]
1064
+ }