@cdc/chart 4.26.1 → 4.26.3

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 (173) hide show
  1. package/CLAUDE.local.md +79 -0
  2. package/LICENSE +201 -0
  3. package/dist/{cdcchart-dgT_1dIT.es.js → cdcchart-DQ00cQCm.es.js} +1 -20
  4. package/dist/cdcchart.js +54742 -49796
  5. package/examples/data/data-with-metadata.json +10 -0
  6. package/examples/default.json +378 -0
  7. package/examples/feature/__data__/horizon-chart-data.json +373 -0
  8. package/examples/feature/annotations/index.json +3 -6
  9. package/examples/feature/horizon/horizon-chart.json +395 -0
  10. package/examples/feature/pie/planet-pie-example-config.json +2 -1
  11. package/examples/line-chart-states.json +1085 -0
  12. package/examples/metadata-variables.json +58 -0
  13. package/examples/private/123.json +694 -0
  14. package/examples/private/anchor-issue.json +4094 -0
  15. package/examples/private/backwards-slider.json +10430 -0
  16. package/examples/private/georgia.csv +160 -0
  17. package/examples/private/timeline-data.json +1 -0
  18. package/examples/private/timeline.json +389 -0
  19. package/examples/radar-chart-simple.json +133 -0
  20. package/examples/radar-chart.json +148 -0
  21. package/index.html +1 -31
  22. package/package.json +57 -59
  23. package/src/CdcChart.tsx +8 -4
  24. package/src/CdcChartComponent.tsx +398 -284
  25. package/src/_stories/Chart.Anchors.stories.tsx +10 -0
  26. package/src/_stories/Chart.BoxPlot.stories.tsx +7 -0
  27. package/src/_stories/Chart.CI.stories.tsx +13 -0
  28. package/src/_stories/Chart.Combo.stories.tsx +17 -0
  29. package/src/_stories/Chart.CustomColors.stories.tsx +78 -0
  30. package/src/_stories/Chart.Defaults.stories.tsx +95 -0
  31. package/src/_stories/Chart.DynamicSeries.stories.tsx +19 -0
  32. package/src/_stories/Chart.Filters.stories.tsx +4 -0
  33. package/src/_stories/Chart.Forecast.stories.tsx +4 -0
  34. package/src/_stories/Chart.HTMLInDataTable.stories.tsx +22 -0
  35. package/src/_stories/Chart.Legend.Gradient.stories.tsx +28 -0
  36. package/src/_stories/Chart.Patterns.stories.tsx +4 -0
  37. package/src/_stories/Chart.PreserveDecimals.stories.tsx +25 -0
  38. package/src/_stories/Chart.Regions.Categorical.stories.tsx +13 -0
  39. package/src/_stories/Chart.Regions.DateScale.stories.tsx +19 -0
  40. package/src/_stories/Chart.Regions.DateTimeScale.stories.tsx +25 -10
  41. package/src/_stories/Chart.ScatterPlot.stories.tsx +4 -0
  42. package/src/_stories/Chart.SmallMultiples.stories.tsx +16 -0
  43. package/src/_stories/Chart.SmallestLeftAxisMax.stories.tsx +64 -0
  44. package/src/_stories/Chart.stories.tsx +72 -1
  45. package/src/_stories/Chart.tooltip.stories.tsx +7 -0
  46. package/src/_stories/ChartAnnotation.stories.tsx +10 -0
  47. package/src/_stories/ChartAxisLabels.stories.tsx +4 -0
  48. package/src/_stories/ChartAxisTitles.stories.tsx +10 -0
  49. package/src/_stories/ChartBar.Editor.stories.tsx +97 -38
  50. package/src/_stories/ChartBrush.Editor.stories.tsx +11 -25
  51. package/src/_stories/ChartBrush.Matrix.Continuous.stories.tsx +41 -0
  52. package/src/_stories/ChartBrush.Matrix.Date.stories.tsx +114 -0
  53. package/src/_stories/ChartBrush.Matrix.DateTime.stories.tsx +78 -0
  54. package/src/_stories/ChartBrush.stories.tsx +7 -0
  55. package/src/_stories/ChartEditor.Editor.stories.tsx +1 -1
  56. package/src/_stories/ChartEditor.stories.tsx +7 -0
  57. package/src/_stories/ChartLine.QuadrantAngles.stories.tsx +89 -0
  58. package/src/_stories/ChartLine.Suppression.stories.tsx +7 -0
  59. package/src/_stories/ChartLine.Symbols.stories.tsx +4 -0
  60. package/src/_stories/ChartPrefixSuffix.stories.tsx +46 -1
  61. package/src/_stories/TechAdoptionWithLinks.stories.tsx +7 -0
  62. package/src/_stories/_mock/brush_continuous.json +86 -0
  63. package/src/_stories/_mock/brush_date_large.json +176 -0
  64. package/src/_stories/_mock/line_chart_angle_near_zero_fall.json +195 -0
  65. package/src/_stories/_mock/line_chart_angle_near_zero_rise.json +195 -0
  66. package/src/_stories/_mock/line_chart_angle_q1_steep_upward.json +195 -0
  67. package/src/_stories/_mock/line_chart_angle_q2_gentle_downward.json +195 -0
  68. package/src/_stories/_mock/line_chart_angle_q3_steep_downward.json +195 -0
  69. package/src/_stories/_mock/line_chart_angle_q4_gentle_upward.json +195 -0
  70. package/src/_stories/_mock/line_chart_quadrant_angles.json +264 -0
  71. package/src/_stories/_mock/paired-bar-abbr.json +421 -0
  72. package/src/_stories/_mock/pie_custom_colors.json +268 -0
  73. package/src/_stories/_mock/smallest_left_axis_max.json +104 -0
  74. package/src/components/Annotations/components/AnnotationDraggable.styles.css +14 -20
  75. package/src/components/Annotations/components/AnnotationDraggable.tsx +240 -116
  76. package/src/components/Annotations/components/AnnotationDropdown.styles.css +1 -2
  77. package/src/components/Annotations/components/AnnotationDropdown.tsx +8 -12
  78. package/src/components/Annotations/components/AnnotationList.styles.css +12 -18
  79. package/src/components/Annotations/components/AnnotationList.tsx +5 -4
  80. package/src/components/Annotations/components/findNearestDatum.ts +75 -85
  81. package/src/components/Annotations/helpers/getVisibleAnnotations.ts +38 -0
  82. package/src/components/Axis/BottomAxis.tsx +277 -0
  83. package/src/components/Axis/LeftAxis.tsx +404 -0
  84. package/src/components/Axis/LeftAxisGridlines.tsx +77 -0
  85. package/src/components/Axis/PairedBarAxis.tsx +192 -0
  86. package/src/components/Axis/README.md +94 -0
  87. package/src/components/Axis/RightAxis.tsx +108 -0
  88. package/src/components/Axis/axis.constants.ts +21 -0
  89. package/src/components/Axis/index.ts +7 -0
  90. package/src/components/BarChart/components/BarChart.Horizontal.tsx +12 -28
  91. package/src/components/BarChart/components/BarChart.StackedHorizontal.tsx +12 -30
  92. package/src/components/BarChart/components/BarChart.StackedVertical.tsx +12 -31
  93. package/src/components/BarChart/components/BarChart.Vertical.tsx +12 -28
  94. package/src/components/BarChart/components/BarChart.tsx +7 -1
  95. package/src/components/BarChart/helpers/getPatternUrl.ts +94 -0
  96. package/src/components/BarChart/helpers/tests/getPatternUrl.test.ts +134 -0
  97. package/src/components/BarChart/helpers/useBarChart.ts +3 -0
  98. package/src/components/Brush/BrushSelector.tsx +155 -22
  99. package/src/components/Brush/MiniChartPreview.tsx +133 -21
  100. package/src/components/EditorPanel/EditorPanel.tsx +81 -54
  101. package/src/components/EditorPanel/components/Panels/Panel.Annotate.tsx +67 -29
  102. package/src/components/EditorPanel/components/Panels/Panel.ForestPlotSettings.tsx +0 -78
  103. package/src/components/EditorPanel/components/Panels/Panel.General.tsx +120 -2
  104. package/src/components/EditorPanel/components/Panels/Panel.PatternSettings.tsx +25 -43
  105. package/src/components/EditorPanel/components/Panels/Panel.Radar.tsx +353 -0
  106. package/src/components/EditorPanel/components/Panels/Panel.Series.tsx +83 -3
  107. package/src/components/EditorPanel/components/Panels/Panel.Visual.tsx +66 -43
  108. package/src/components/EditorPanel/components/Panels/index.tsx +2 -0
  109. package/src/components/EditorPanel/editor-panel.scss +1 -1
  110. package/src/components/EditorPanel/useEditorPermissions.ts +55 -26
  111. package/src/components/ForestPlot/ForestPlot.tsx +26 -22
  112. package/src/components/HorizonChart/HorizonChart.tsx +131 -0
  113. package/src/components/HorizonChart/components/HorizonBand.tsx +160 -0
  114. package/src/components/HorizonChart/helpers/calculateHorizonBands.ts +27 -0
  115. package/src/components/HorizonChart/helpers/getHorizonLayerColors.ts +40 -0
  116. package/src/components/HorizonChart/index.tsx +3 -0
  117. package/src/components/Legend/Legend.Component.tsx +52 -4
  118. package/src/components/Legend/Legend.tsx +1 -1
  119. package/src/components/Legend/LegendGroup/LegendGroup.styles.css +4 -4
  120. package/src/components/Legend/LegendValueRange.tsx +77 -0
  121. package/src/components/Legend/helpers/createFormatLabels.tsx +16 -2
  122. package/src/components/Legend/helpers/generateValueRanges.ts +92 -0
  123. package/src/components/LineChart/helpers/README.md +292 -0
  124. package/src/components/LineChart/helpers/labelPositioning.test.ts +245 -0
  125. package/src/components/LineChart/helpers/labelPositioning.ts +304 -0
  126. package/src/components/LineChart/index.tsx +44 -8
  127. package/src/components/LinearChart/README.md +109 -0
  128. package/src/components/LinearChart/VisualizationRenderer.tsx +267 -0
  129. package/src/components/LinearChart/linearChart.constants.ts +84 -0
  130. package/src/components/LinearChart/tests/LinearChart.test.tsx +278 -0
  131. package/src/components/LinearChart/tests/mockConfigContext.ts +131 -0
  132. package/src/components/LinearChart/utils/tickFormatting.ts +146 -0
  133. package/src/components/LinearChart.tsx +268 -1057
  134. package/src/components/PieChart/PieChart.tsx +20 -5
  135. package/src/components/RadarChart/RadarAxis.tsx +78 -0
  136. package/src/components/RadarChart/RadarChart.tsx +298 -0
  137. package/src/components/RadarChart/RadarGrid.tsx +64 -0
  138. package/src/components/RadarChart/RadarPolygon.tsx +91 -0
  139. package/src/components/RadarChart/helpers.ts +83 -0
  140. package/src/components/RadarChart/index.tsx +3 -0
  141. package/src/components/Regions/components/Regions.tsx +6 -6
  142. package/src/components/Sankey/components/Sankey.tsx +3 -3
  143. package/src/components/Sankey/sankey.scss +1 -1
  144. package/src/components/SmallMultiples/SmallMultiples.css +5 -5
  145. package/src/components/Sparkline/index.scss +4 -2
  146. package/src/components/WarmingStripes/WarmingStripes.tsx +95 -25
  147. package/src/components/WarmingStripes/WarmingStripesGradientLegend.css +8 -8
  148. package/src/data/initial-state.js +37 -15
  149. package/src/data/legacy-defaults.ts +18 -0
  150. package/src/helpers/abbreviateNumber.ts +24 -17
  151. package/src/helpers/getChartPatternId.ts +17 -0
  152. package/src/helpers/getExcludedData.ts +4 -0
  153. package/src/helpers/getMinMax.ts +16 -2
  154. package/src/helpers/handleChartAriaLabels.ts +19 -19
  155. package/src/helpers/handleLineType.ts +22 -18
  156. package/src/helpers/seriesColumnSettings.ts +114 -0
  157. package/src/helpers/tests/countNumOfTicks.test.ts +77 -0
  158. package/src/helpers/tests/seriesColumnSettings.test.ts +84 -0
  159. package/src/hooks/useProgrammaticTooltip.ts +23 -2
  160. package/src/hooks/useRightAxis.ts +14 -0
  161. package/src/hooks/useScales.ts +99 -56
  162. package/src/hooks/useTooltip.tsx +23 -3
  163. package/src/scss/main.scss +157 -79
  164. package/src/selectors/README.md +68 -0
  165. package/src/store/chart.reducer.ts +2 -0
  166. package/src/test/CdcChart.test.jsx +2 -2
  167. package/src/types/ChartConfig.ts +22 -0
  168. package/src/types/ChartContext.ts +1 -0
  169. package/src/types/Horizon.ts +64 -0
  170. package/tests/fixtures/chart-config-with-metadata.json +29 -0
  171. package/tests/fixtures/data-with-metadata.json +10 -0
  172. package/preview.html +0 -1616
  173. package/src/components/Annotations/components/helpers/index.tsx +0 -46
@@ -0,0 +1,694 @@
1
+ {
2
+ "annotations": [],
3
+ "allowLineToBarGraph": "__​undefined__",
4
+ "type": "chart",
5
+ "debugSvg": false,
6
+ "chartMessage": {
7
+ "noData": "No Data Available"
8
+ },
9
+ "title": "",
10
+ "titleStyle": "small",
11
+ "showTitle": false,
12
+ "showDownloadMediaButton": false,
13
+ "theme": "theme-blue",
14
+ "animate": false,
15
+ "lineDatapointStyle": "hover",
16
+ "lineDatapointColor": "Same as Line",
17
+ "barHasBorder": "true",
18
+ "isLollipopChart": false,
19
+ "lollipopShape": "circle",
20
+ "lollipopColorStyle": "two-tone",
21
+ "visualizationSubType": "stacked",
22
+ "barStyle": "flat",
23
+ "roundingStyle": "standard",
24
+ "tipRounding": "top",
25
+ "isResponsiveTicks": false,
26
+ "general": {
27
+ "annotationDropdownText": "Annotations",
28
+ "showMissingDataLabel": true,
29
+ "showSuppressedSymbol": true,
30
+ "showZeroValueData": true,
31
+ "hideNullValue": true,
32
+ "palette": {
33
+ "isReversed": true,
34
+ "version": "2.0",
35
+ "name": "sequential_bluereverse"
36
+ }
37
+ },
38
+ "padding": {
39
+ "left": 5,
40
+ "right": 5
41
+ },
42
+ "preliminaryData": [],
43
+ "yAxis": {
44
+ "hideAxis": false,
45
+ "displayNumbersOnBar": false,
46
+ "hideLabel": false,
47
+ "hideTicks": false,
48
+ "size": "100",
49
+ "gridLines": false,
50
+ "enablePadding": false,
51
+ "min": "",
52
+ "max": "",
53
+ "labelColor": "#1c1d1f",
54
+ "tickLabelColor": "#1c1d1f",
55
+ "tickColor": "#1c1d1f",
56
+ "rightHideAxis": false,
57
+ "rightAxisSize": "100",
58
+ "rightLabel": "Cases Per 100,000 persons",
59
+ "rightLabelOffsetSize": "100",
60
+ "rightAxisLabelColor": "#1c1d1f",
61
+ "rightAxisTickLabelColor": "#1c1d1f",
62
+ "rightAxisTickColor": "#1c1d1f",
63
+ "numTicks": "",
64
+ "axisPadding": 0,
65
+ "scalePadding": "-10",
66
+ "tickRotation": 0,
67
+ "anchors": [],
68
+ "shoMissingDataLabel": true,
69
+ "showMissingDataLine": true,
70
+ "categories": [],
71
+ "type": "linear",
72
+ "labelsAboveGridlines": false,
73
+ "rightMax": "20",
74
+ "rightMin": "0",
75
+ "label": "Number of Cases",
76
+ "rightNumTicks": "5"
77
+ },
78
+ "boxplot": {
79
+ "plots": [],
80
+ "borders": "true",
81
+ "plotOutlierValues": false,
82
+ "plotNonOutlierValues": true,
83
+ "labels": {
84
+ "q1": "Lower Quartile",
85
+ "q2": "q2",
86
+ "q3": "Upper Quartile",
87
+ "q4": "q4",
88
+ "minimum": "Minimum",
89
+ "maximum": "Maximum",
90
+ "mean": "Mean",
91
+ "median": "Median",
92
+ "sd": "Standard Deviation",
93
+ "iqr": "Interquartile Range",
94
+ "count": "Count",
95
+ "outliers": "Outliers",
96
+ "values": "Values",
97
+ "lowerBounds": "Lower Bounds",
98
+ "upperBounds": "Upper Bounds"
99
+ }
100
+ },
101
+ "topAxis": {
102
+ "hasLine": false
103
+ },
104
+ "isLegendValue": false,
105
+ "barThickness": "1",
106
+ "barHeight": 25,
107
+ "barSpace": 15,
108
+ "heights": {
109
+ "vertical": 300,
110
+ "horizontal": 750
111
+ },
112
+ "xAxis": {
113
+ "sortDates": false,
114
+ "anchors": [],
115
+ "type": "categorical",
116
+ "showTargetLabel": true,
117
+ "targetLabel": "Target",
118
+ "hideAxis": false,
119
+ "hideLabel": false,
120
+ "hideTicks": false,
121
+ "size": 75,
122
+ "tickRotation": 0,
123
+ "min": "",
124
+ "max": "",
125
+ "labelColor": "#1c1d1f",
126
+ "tickLabelColor": "#1c1d1f",
127
+ "tickColor": "#1c1d1f",
128
+ "numTicks": "",
129
+ "labelOffset": 0,
130
+ "axisPadding": 200,
131
+ "target": 0,
132
+ "maxTickRotation": 45,
133
+ "padding": 5,
134
+ "showYearsOnce": false,
135
+ "sortByRecentDate": false,
136
+ "brushActive": false,
137
+ "brushDefaultRecentDateCount": "__​undefined__",
138
+ "dataKey": "Year",
139
+ "tickWidthMax": 39,
140
+ "manual": false,
141
+ "axisBBox": 29.860000610351562
142
+ },
143
+ "table": {
144
+ "label": "Data Table",
145
+ "expanded": true,
146
+ "limitHeight": false,
147
+ "height": "",
148
+ "caption": "",
149
+ "showDownloadUrl": false,
150
+ "showDataTableLink": true,
151
+ "showDownloadLinkBelow": true,
152
+ "indexLabel": "",
153
+ "download": true,
154
+ "showVertical": true,
155
+ "dateDisplayFormat": "",
156
+ "showMissingDataLabel": true,
157
+ "showSuppressedSymbol": true,
158
+ "collapsible": true,
159
+ "show": true
160
+ },
161
+ "orientation": "vertical",
162
+ "columns": {},
163
+ "legend": {
164
+ "hide": false,
165
+ "behavior": "isolate",
166
+ "axisAlign": true,
167
+ "singleRow": true,
168
+ "colorCode": "",
169
+ "reverseLabelOrder": false,
170
+ "description": "",
171
+ "dynamicLegend": false,
172
+ "dynamicLegendDefaultText": "Show All",
173
+ "dynamicLegendItemLimit": 5,
174
+ "dynamicLegendItemLimitMessage": "Dynamic Legend Item Limit Hit.",
175
+ "dynamicLegendChartMessage": "Select Options from the Legend",
176
+ "label": "",
177
+ "lineMode": false,
178
+ "verticalSorted": false,
179
+ "highlightOnHover": false,
180
+ "hideSuppressedLabels": false,
181
+ "hideSuppressionLink": false,
182
+ "seriesHighlight": [],
183
+ "style": "circles",
184
+ "subStyle": "linear blocks",
185
+ "groupBy": "",
186
+ "shape": "circle",
187
+ "tickRotation": "",
188
+ "order": "dataColumn",
189
+ "hideBorder": {
190
+ "side": false,
191
+ "topBottom": true
192
+ },
193
+ "position": "bottom",
194
+ "orderedValues": [],
195
+ "patterns": {},
196
+ "patternField": "",
197
+ "unified": true
198
+ },
199
+ "smallMultiples": {
200
+ "mode": "",
201
+ "tileColumn": "",
202
+ "tilesPerRowDesktop": 3,
203
+ "tilesPerRowMobile": 1,
204
+ "tileOrder": [],
205
+ "tileOrderType": "asc",
206
+ "tileTitles": {},
207
+ "independentYAxis": false,
208
+ "colorMode": "same",
209
+ "synchronizedTooltips": true,
210
+ "showAreaUnderLine": true
211
+ },
212
+ "exclusions": {
213
+ "active": false,
214
+ "keys": []
215
+ },
216
+ "twoColor": {
217
+ "palette": "monochrome-1",
218
+ "isPaletteReversed": false
219
+ },
220
+ "labels": false,
221
+ "dataFormat": {
222
+ "commas": false,
223
+ "prefix": "",
224
+ "suffix": "",
225
+ "abbreviated": false,
226
+ "bottomSuffix": "",
227
+ "bottomPrefix": "",
228
+ "bottomAbbreviated": false
229
+ },
230
+ "filters": [],
231
+ "confidenceKeys": {},
232
+ "visual": {
233
+ "border": true,
234
+ "accent": true,
235
+ "background": true,
236
+ "verticalHoverLine": false,
237
+ "horizontalHoverLine": false,
238
+ "lineDatapointSymbol": "none",
239
+ "maximumShapeAmount": 7
240
+ },
241
+ "useLogScale": false,
242
+ "filterBehavior": "Filter Change",
243
+ "highlightedBarValues": [],
244
+ "series": [
245
+ {
246
+ "dataKey": "Cases, U.S.-born",
247
+ "type": "Bar",
248
+ "axis": "Left",
249
+ "tooltip": true
250
+ },
251
+ {
252
+ "dataKey": "Cases, non-U.S.–born",
253
+ "type": "Bar",
254
+ "axis": "Left",
255
+ "tooltip": true
256
+ },
257
+ {
258
+ "dataKey": "Rate, U.S.-born",
259
+ "type": "dashed-sm",
260
+ "axis": "Right",
261
+ "tooltip": true
262
+ },
263
+ {
264
+ "dataKey": "Rate, non-U.S.–born",
265
+ "type": "dashed-md",
266
+ "axis": "Right",
267
+ "tooltip": true,
268
+ "weight": 3
269
+ },
270
+ {
271
+ "dataKey": "Rate, all U.S. cases",
272
+ "type": "Line",
273
+ "axis": "Right",
274
+ "tooltip": true,
275
+ "weight": 2
276
+ }
277
+ ],
278
+ "tooltips": {
279
+ "opacity": 90,
280
+ "singleSeries": false,
281
+ "dateDisplayFormat": ""
282
+ },
283
+ "forestPlot": {
284
+ "startAt": 0,
285
+ "colors": {
286
+ "line": "",
287
+ "shape": ""
288
+ },
289
+ "lineOfNoEffect": {
290
+ "show": true
291
+ },
292
+ "type": "",
293
+ "pooledResult": {
294
+ "diamondHeight": 5,
295
+ "column": ""
296
+ },
297
+ "estimateField": "",
298
+ "estimateRadius": "",
299
+ "shape": "square",
300
+ "rowHeight": 20,
301
+ "description": {
302
+ "show": true,
303
+ "text": "description",
304
+ "location": 0
305
+ },
306
+ "result": {
307
+ "show": true,
308
+ "text": "result",
309
+ "location": 100
310
+ },
311
+ "radius": {
312
+ "min": 2,
313
+ "max": 10,
314
+ "scalingColumn": ""
315
+ },
316
+ "regression": {
317
+ "lower": 0,
318
+ "upper": 0,
319
+ "estimateField": 0
320
+ },
321
+ "leftWidthOffset": 0,
322
+ "rightWidthOffset": 0,
323
+ "showZeroLine": false,
324
+ "leftLabel": "",
325
+ "rightLabel": ""
326
+ },
327
+ "area": {
328
+ "isStacked": false
329
+ },
330
+ "sankey": {
331
+ "title": {
332
+ "defaultColor": "black"
333
+ },
334
+ "iterations": 1,
335
+ "rxValue": 0.9,
336
+ "overallSize": {
337
+ "width": 900,
338
+ "height": 700
339
+ },
340
+ "margin": {
341
+ "margin_y": 25,
342
+ "margin_x": 0
343
+ },
344
+ "nodeSize": {
345
+ "nodeWidth": 26,
346
+ "nodeHeight": 40
347
+ },
348
+ "nodePadding": 55,
349
+ "nodeFontColor": "black",
350
+ "nodeColor": {
351
+ "default": "#ff8500",
352
+ "inactive": "#808080"
353
+ },
354
+ "linkColor": {
355
+ "default": "#ffc900",
356
+ "inactive": "#D3D3D3"
357
+ },
358
+ "opacity": {
359
+ "nodeOpacityDefault": 1,
360
+ "nodeOpacityInactive": 0.1,
361
+ "LinkOpacityDefault": 1,
362
+ "LinkOpacityInactive": 0.1
363
+ },
364
+ "storyNodeFontColor": "#006778",
365
+ "storyNodeText": [],
366
+ "nodeValueStyle": {
367
+ "textBefore": "(",
368
+ "textAfter": ")"
369
+ },
370
+ "data": []
371
+ },
372
+ "markupVariables": [],
373
+ "enableMarkupVariables": false,
374
+ "errors": [],
375
+ "currentViewport": "lg",
376
+ "id": 1,
377
+ "category": "Charts",
378
+ "label": "Bar",
379
+ "subType": "Bar",
380
+ "icon": {
381
+ "type": {},
382
+ "key": null,
383
+ "ref": null,
384
+ "props": {},
385
+ "_owner": null
386
+ },
387
+ "content": "Use bars to show comparisons between data categories.",
388
+ "visualizationType": "Combo",
389
+ "activeVizButtonID": 1,
390
+ "dataFileName": "./tb-case-counts.csv",
391
+ "dataFileSourceType": "file",
392
+ "dataDescription": {
393
+ "horizontal": false,
394
+ "series": false
395
+ },
396
+ "version": "4.26.1",
397
+ "migrations": {
398
+ "addColorMigration": true
399
+ },
400
+ "dynamicMarginTop": 0,
401
+ "data": [
402
+ {
403
+ "Year": "2010",
404
+ "Total cases": "11,149",
405
+ "Cases, U.S.-born": "4319",
406
+ "Cases, non-U.S.–born": "6823",
407
+ "Rate, all U.S. cases": "3.6",
408
+ "Rate, U.S.-born": "1.6",
409
+ "Rate, non-U.S.–born": "17.8"
410
+ },
411
+ {
412
+ "Year": "2011",
413
+ "Total cases": "10,496",
414
+ "Cases, U.S.-born": "3927",
415
+ "Cases, non-U.S.–born": "6564",
416
+ "Rate, all U.S. cases": "3.4",
417
+ "Rate, U.S.-born": "1.5",
418
+ "Rate, non-U.S.–born": "17.0"
419
+ },
420
+ {
421
+ "Year": "2012",
422
+ "Total cases": "9,934",
423
+ "Cases, U.S.-born": "3619",
424
+ "Cases, non-U.S.–born": "6313",
425
+ "Rate, all U.S. cases": "3.2",
426
+ "Rate, U.S.-born": "1.3",
427
+ "Rate, non-U.S.–born": "16.0"
428
+ },
429
+ {
430
+ "Year": "2013",
431
+ "Total cases": "9,556",
432
+ "Cases, U.S.-born": "3323",
433
+ "Cases, non-U.S.–born": "6226",
434
+ "Rate, all U.S. cases": "3.0",
435
+ "Rate, U.S.-born": "1.2",
436
+ "Rate, non-U.S.–born": "15.7"
437
+ },
438
+ {
439
+ "Year": "2014",
440
+ "Total cases": "9,384",
441
+ "Cases, U.S.-born": "3,110",
442
+ "Cases, non-U.S.–born": "6,270",
443
+ "Rate, all U.S. cases": "2.9",
444
+ "Rate, U.S.-born": "1.1",
445
+ "Rate, non-U.S.–born": "15.5"
446
+ },
447
+ {
448
+ "Year": "2015",
449
+ "Total cases": "9,539",
450
+ "Cases, U.S.-born": "3,127",
451
+ "Cases, non-U.S.–born": "6,407",
452
+ "Rate, all U.S. cases": "3.0",
453
+ "Rate, U.S.-born": "1.1",
454
+ "Rate, non-U.S.–born": "15.3"
455
+ },
456
+ {
457
+ "Year": "2016",
458
+ "Total cases": "9,239",
459
+ "Cases, U.S.-born": "2,881",
460
+ "Cases, non-U.S.–born": "6,353",
461
+ "Rate, all U.S. cases": "2.8",
462
+ "Rate, U.S.-born": "1.0",
463
+ "Rate, non-U.S.–born": "14.7"
464
+ },
465
+ {
466
+ "Year": "2017",
467
+ "Total cases": "9,068",
468
+ "Cases, U.S.-born": "2,661",
469
+ "Cases, non-U.S.–born": "6,402",
470
+ "Rate, all U.S. cases": "2.8",
471
+ "Rate, U.S.-born": "1.0",
472
+ "Rate, non-U.S.–born": "14.7"
473
+ },
474
+ {
475
+ "Year": "2018",
476
+ "Total cases": "8,997",
477
+ "Cases, U.S.-born": "2,642",
478
+ "Cases, non-U.S.–born": "6,352",
479
+ "Rate, all U.S. cases": "2.7",
480
+ "Rate, U.S.-born": "0.9",
481
+ "Rate, non-U.S.–born": "14.3"
482
+ },
483
+ {
484
+ "Year": "2019",
485
+ "Total cases": "8,895",
486
+ "Cases, U.S.-born": "2,516",
487
+ "Cases, non-U.S.–born": "6,373",
488
+ "Rate, all U.S. cases": "2.7",
489
+ "Rate, U.S.-born": "0.9",
490
+ "Rate, non-U.S.–born": "14.2"
491
+ },
492
+ {
493
+ "Year": "2020",
494
+ "Total cases": "7,171",
495
+ "Cases, U.S.-born": "2,009",
496
+ "Cases, non-U.S.–born": "5,152",
497
+ "Rate, all U.S. cases": "2.2",
498
+ "Rate, U.S.-born": "0.7",
499
+ "Rate, non-U.S.–born": "11.7"
500
+ },
501
+ {
502
+ "Year": "2021",
503
+ "Total cases": "7,866",
504
+ "Cases, U.S.-born": "2,170",
505
+ "Cases, non-U.S.–born": "5,676",
506
+ "Rate, all U.S. cases": "2.4",
507
+ "Rate, U.S.-born": "0.8",
508
+ "Rate, non-U.S.–born": "12.6"
509
+ },
510
+ {
511
+ "Year": "2022",
512
+ "Total cases": "8,332",
513
+ "Cases, U.S.-born": "2,126",
514
+ "Cases, non-U.S.–born": "6,196",
515
+ "Rate, all U.S. cases": "2.5",
516
+ "Rate, U.S.-born": "0.8",
517
+ "Rate, non-U.S.–born": "13.2"
518
+ },
519
+ {
520
+ "Year": "2023",
521
+ "Total cases": "9,622",
522
+ "Cases, U.S.-born": "2,289",
523
+ "Cases, non-U.S.–born": "7,316",
524
+ "Rate, all U.S. cases": "2.9",
525
+ "Rate, U.S.-born": "0.8",
526
+ "Rate, non-U.S.–born": "15.1"
527
+ },
528
+ {
529
+ "Year": "2024",
530
+ "Total cases": "10,347",
531
+ "Cases, U.S.-born": "2,356",
532
+ "Cases, non-U.S.–born": "7,915",
533
+ "Rate, all U.S. cases": "3.0",
534
+ "Rate, U.S.-born": "0.8",
535
+ "Rate, non-U.S.–born": "15.5"
536
+ },
537
+ {
538
+ "Year": "2025",
539
+ "Total cases": "10,347",
540
+ "Cases, U.S.-born": "2,356",
541
+ "Cases, non-U.S.–born": "7,915",
542
+ "Rate, all U.S. cases": "2.9",
543
+ "Rate, U.S.-born": "0.8",
544
+ "Rate, non-U.S.–born": "15.3"
545
+ }
546
+ ],
547
+ "formattedData": [
548
+ {
549
+ "Year": "2010",
550
+ "Total cases": "11,149",
551
+ "Cases, U.S.-born": "4319",
552
+ "Cases, non-U.S.–born": "6823",
553
+ "Rate, all U.S. cases": "3.6",
554
+ "Rate, U.S.-born": "1.6",
555
+ "Rate, non-U.S.–born": "17.8"
556
+ },
557
+ {
558
+ "Year": "2011",
559
+ "Total cases": "10,496",
560
+ "Cases, U.S.-born": "3927",
561
+ "Cases, non-U.S.–born": "6564",
562
+ "Rate, all U.S. cases": "3.4",
563
+ "Rate, U.S.-born": "1.5",
564
+ "Rate, non-U.S.–born": "17.0"
565
+ },
566
+ {
567
+ "Year": "2012",
568
+ "Total cases": "9,934",
569
+ "Cases, U.S.-born": "3619",
570
+ "Cases, non-U.S.–born": "6313",
571
+ "Rate, all U.S. cases": "3.2",
572
+ "Rate, U.S.-born": "1.3",
573
+ "Rate, non-U.S.–born": "16.0"
574
+ },
575
+ {
576
+ "Year": "2013",
577
+ "Total cases": "9,556",
578
+ "Cases, U.S.-born": "3323",
579
+ "Cases, non-U.S.–born": "6226",
580
+ "Rate, all U.S. cases": "3.0",
581
+ "Rate, U.S.-born": "1.2",
582
+ "Rate, non-U.S.–born": "15.7"
583
+ },
584
+ {
585
+ "Year": "2014",
586
+ "Total cases": "9,384",
587
+ "Cases, U.S.-born": "3,110",
588
+ "Cases, non-U.S.–born": "6,270",
589
+ "Rate, all U.S. cases": "2.9",
590
+ "Rate, U.S.-born": "1.1",
591
+ "Rate, non-U.S.–born": "15.5"
592
+ },
593
+ {
594
+ "Year": "2015",
595
+ "Total cases": "9,539",
596
+ "Cases, U.S.-born": "3,127",
597
+ "Cases, non-U.S.–born": "6,407",
598
+ "Rate, all U.S. cases": "3.0",
599
+ "Rate, U.S.-born": "1.1",
600
+ "Rate, non-U.S.–born": "15.3"
601
+ },
602
+ {
603
+ "Year": "2016",
604
+ "Total cases": "9,239",
605
+ "Cases, U.S.-born": "2,881",
606
+ "Cases, non-U.S.–born": "6,353",
607
+ "Rate, all U.S. cases": "2.8",
608
+ "Rate, U.S.-born": "1.0",
609
+ "Rate, non-U.S.–born": "14.7"
610
+ },
611
+ {
612
+ "Year": "2017",
613
+ "Total cases": "9,068",
614
+ "Cases, U.S.-born": "2,661",
615
+ "Cases, non-U.S.–born": "6,402",
616
+ "Rate, all U.S. cases": "2.8",
617
+ "Rate, U.S.-born": "1.0",
618
+ "Rate, non-U.S.–born": "14.7"
619
+ },
620
+ {
621
+ "Year": "2018",
622
+ "Total cases": "8,997",
623
+ "Cases, U.S.-born": "2,642",
624
+ "Cases, non-U.S.–born": "6,352",
625
+ "Rate, all U.S. cases": "2.7",
626
+ "Rate, U.S.-born": "0.9",
627
+ "Rate, non-U.S.–born": "14.3"
628
+ },
629
+ {
630
+ "Year": "2019",
631
+ "Total cases": "8,895",
632
+ "Cases, U.S.-born": "2,516",
633
+ "Cases, non-U.S.–born": "6,373",
634
+ "Rate, all U.S. cases": "2.7",
635
+ "Rate, U.S.-born": "0.9",
636
+ "Rate, non-U.S.–born": "14.2"
637
+ },
638
+ {
639
+ "Year": "2020",
640
+ "Total cases": "7,171",
641
+ "Cases, U.S.-born": "2,009",
642
+ "Cases, non-U.S.–born": "5,152",
643
+ "Rate, all U.S. cases": "2.2",
644
+ "Rate, U.S.-born": "0.7",
645
+ "Rate, non-U.S.–born": "11.7"
646
+ },
647
+ {
648
+ "Year": "2021",
649
+ "Total cases": "7,866",
650
+ "Cases, U.S.-born": "2,170",
651
+ "Cases, non-U.S.–born": "5,676",
652
+ "Rate, all U.S. cases": "2.4",
653
+ "Rate, U.S.-born": "0.8",
654
+ "Rate, non-U.S.–born": "12.6"
655
+ },
656
+ {
657
+ "Year": "2022",
658
+ "Total cases": "8,332",
659
+ "Cases, U.S.-born": "2,126",
660
+ "Cases, non-U.S.–born": "6,196",
661
+ "Rate, all U.S. cases": "2.5",
662
+ "Rate, U.S.-born": "0.8",
663
+ "Rate, non-U.S.–born": "13.2"
664
+ },
665
+ {
666
+ "Year": "2023",
667
+ "Total cases": "9,622",
668
+ "Cases, U.S.-born": "2,289",
669
+ "Cases, non-U.S.–born": "7,316",
670
+ "Rate, all U.S. cases": "2.9",
671
+ "Rate, U.S.-born": "0.8",
672
+ "Rate, non-U.S.–born": "15.1"
673
+ },
674
+ {
675
+ "Year": "2024",
676
+ "Total cases": "10,347",
677
+ "Cases, U.S.-born": "2,356",
678
+ "Cases, non-U.S.–born": "7,915",
679
+ "Rate, all U.S. cases": "3.0",
680
+ "Rate, U.S.-born": "0.8",
681
+ "Rate, non-U.S.–born": "15.5"
682
+ },
683
+ {
684
+ "Year": "2025",
685
+ "Total cases": "10,347",
686
+ "Cases, U.S.-born": "2,356",
687
+ "Cases, non-U.S.–born": "7,915",
688
+ "Rate, all U.S. cases": "2.9",
689
+ "Rate, U.S.-born": "0.8",
690
+ "Rate, non-U.S.–born": "15.3"
691
+ }
692
+ ],
693
+ "datasets": {}
694
+ }