@cdc/chart 4.26.2 → 4.26.4

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 (165) hide show
  1. package/CONFIG.md +169 -0
  2. package/README.md +42 -17
  3. package/dist/cdcchart.js +39419 -35180
  4. package/examples/__data__/data-with-metadata.json +10 -0
  5. package/examples/feature/bar/additional-column-tooltip.json +3 -3
  6. package/examples/feature/deviation/planet-deviation-config.json +2 -2
  7. package/examples/feature/paired-bar/paired-bar-example.json +2 -2
  8. package/examples/feature/pie/planet-pie-example-config.json +2 -1
  9. package/examples/feature/tests-case-rate/case-rate-example-config.json +2 -2
  10. package/examples/feature/tests-covid/covid-confidence-example-config.json +2 -2
  11. package/examples/feature/tests-covid/covid-example-config.json +2 -2
  12. package/examples/feature/tests-cutoff/cutoff-example-config.json +2 -2
  13. package/examples/feature/tests-non-numerics/planet-pie-example-config-nonnumeric.json +2 -2
  14. package/examples/metadata-variables.json +58 -0
  15. package/examples/minimal-example.json +24 -0
  16. package/examples/private/test2.json +35012 -0
  17. package/package.json +4 -4
  18. package/src/CdcChart.tsx +8 -4
  19. package/src/CdcChartComponent.tsx +326 -290
  20. package/src/_stories/Chart.CustomColors.smoke.stories.tsx +97 -0
  21. package/src/_stories/Chart.Defaults.smoke.stories.tsx +95 -0
  22. package/src/_stories/{Chart.HTMLInDataTable.stories.tsx → Chart.HTMLInDataTable.smoke.stories.tsx} +10 -0
  23. package/src/_stories/Chart.Minimal.smoke.stories.tsx +25 -0
  24. package/src/_stories/{Chart.SmallMultiples.stories.tsx → Chart.SmallMultiples.smoke.stories.tsx} +17 -1
  25. package/src/_stories/Chart.SmallestLeftAxisMax.smoke.stories.tsx +64 -0
  26. package/src/_stories/{Chart.stories.tsx → Chart.smoke.stories.tsx} +48 -2
  27. package/src/_stories/{Chart.tooltip.stories.tsx → Chart.tooltip.smoke.stories.tsx} +68 -0
  28. package/src/_stories/ChartBar.Editor.stories.tsx +177 -115
  29. package/src/_stories/ChartBrush.Editor.stories.tsx +11 -25
  30. package/src/_stories/ChartEditor.Editor.stories.tsx +24 -1
  31. package/src/_stories/{Chart.CustomColors.stories.tsx → ChartLine.DashedDates.smoke.stories.tsx} +4 -4
  32. package/src/_stories/_mock/line_chart_dashed_dates.json +276 -0
  33. package/src/_stories/_mock/paired-bar-abbr.json +421 -0
  34. package/src/_stories/_mock/paired-bar.json +1 -1
  35. package/src/_stories/_mock/pie_custom_colors.json +268 -0
  36. package/src/_stories/_mock/smallest_left_axis_max.json +104 -0
  37. package/src/components/Annotations/components/AnnotationDraggable.styles.css +10 -10
  38. package/src/components/Annotations/components/AnnotationDraggable.tsx +1 -1
  39. package/src/components/Annotations/components/AnnotationDropdown.styles.css +1 -1
  40. package/src/components/Annotations/components/AnnotationList.styles.css +11 -11
  41. package/src/components/AreaChart/components/AreaChart.Stacked.jsx +10 -2
  42. package/src/components/Axis/BottomAxis.tsx +10 -3
  43. package/src/components/Axis/LeftAxis.tsx +2 -4
  44. package/src/components/Axis/LeftAxisGridlines.tsx +1 -3
  45. package/src/components/Axis/PairedBarAxis.tsx +10 -4
  46. package/src/components/BarChart/components/BarChart.Horizontal.tsx +21 -33
  47. package/src/components/BarChart/components/BarChart.StackedHorizontal.tsx +21 -35
  48. package/src/components/BarChart/components/BarChart.StackedVertical.tsx +21 -36
  49. package/src/components/BarChart/components/BarChart.Vertical.tsx +21 -34
  50. package/src/components/BarChart/components/BarChart.tsx +2 -6
  51. package/src/components/BarChart/helpers/getPatternUrl.ts +94 -0
  52. package/src/components/BarChart/helpers/tests/getPatternUrl.test.ts +134 -0
  53. package/src/components/BarChart/helpers/useBarChart.ts +4 -1
  54. package/src/components/BoxPlot/BoxPlot.Vertical.tsx +3 -3
  55. package/src/components/Brush/BrushSelector.tsx +2 -1
  56. package/src/components/Brush/MiniChartPreview.tsx +21 -26
  57. package/src/components/EditorPanel/EditorPanel.tsx +692 -954
  58. package/src/components/EditorPanel/EditorPanelContext.ts +1 -1
  59. package/src/components/EditorPanel/components/Panels/Panel.Annotate.tsx +218 -167
  60. package/src/components/EditorPanel/components/Panels/Panel.ForestPlotSettings.tsx +0 -78
  61. package/src/components/EditorPanel/components/Panels/Panel.General.tsx +39 -1
  62. package/src/components/EditorPanel/components/Panels/Panel.PatternSettings.tsx +169 -135
  63. package/src/components/EditorPanel/components/Panels/Panel.Regions.tsx +154 -109
  64. package/src/components/EditorPanel/components/Panels/Panel.Sankey.tsx +3 -3
  65. package/src/components/EditorPanel/components/Panels/Panel.Series.tsx +95 -28
  66. package/src/components/EditorPanel/components/Panels/Panel.Visual.tsx +45 -42
  67. package/src/components/EditorPanel/editor-panel.scss +1 -1
  68. package/src/components/EditorPanel/useEditorPermissions.ts +1 -10
  69. package/src/components/Forecasting/Forecasting.tsx +2 -2
  70. package/src/components/ForestPlot/ForestPlot.tsx +26 -22
  71. package/src/components/HorizonChart/HorizonChart.tsx +10 -2
  72. package/src/components/HoverLine/HoverLine.tsx +6 -8
  73. package/src/components/Legend/Legend.Component.tsx +4 -4
  74. package/src/components/Legend/LegendGroup/LegendGroup.styles.css +9 -4
  75. package/src/components/Legend/LegendGroup/LegendGroup.tsx +3 -1
  76. package/src/components/Legend/helpers/createFormatLabels.tsx +3 -2
  77. package/src/components/Legend/helpers/index.ts +0 -2
  78. package/src/components/LineChart/LineChartProps.ts +1 -0
  79. package/src/components/LineChart/components/LineChart.BumpCircle.tsx +3 -2
  80. package/src/components/LineChart/index.tsx +11 -4
  81. package/src/components/LinearChart/VisualizationRenderer.tsx +11 -1
  82. package/src/components/LinearChart/tests/LinearChart.test.tsx +224 -0
  83. package/src/components/LinearChart/tests/mockConfigContext.ts +2 -0
  84. package/src/components/LinearChart.tsx +124 -47
  85. package/src/components/PairedBarChart.jsx +2 -2
  86. package/src/components/PieChart/PieChart.tsx +30 -13
  87. package/src/components/RadarChart/RadarChart.tsx +1 -1
  88. package/src/components/Regions/components/Regions.tsx +36 -26
  89. package/src/components/Sankey/components/Sankey.tsx +3 -3
  90. package/src/components/Sankey/sankey.scss +1 -1
  91. package/src/components/ScatterPlot/ScatterPlot.jsx +19 -17
  92. package/src/components/SmallMultiples/SmallMultipleTile.tsx +1 -0
  93. package/src/components/SmallMultiples/SmallMultiples.css +5 -5
  94. package/src/components/Sparkline/components/SparkLine.tsx +1 -1
  95. package/src/components/Sparkline/index.scss +4 -2
  96. package/src/components/WarmingStripes/WarmingStripes.tsx +5 -3
  97. package/src/components/WarmingStripes/WarmingStripesGradientLegend.css +8 -8
  98. package/src/data/initial-state.js +24 -14
  99. package/src/data/legacy-defaults.ts +18 -0
  100. package/src/helpers/abbreviateNumber.ts +24 -17
  101. package/src/helpers/calculateLeftYAxisWidth.ts +193 -0
  102. package/src/helpers/getChartPatternId.ts +17 -0
  103. package/src/helpers/getMinMax.ts +16 -2
  104. package/src/helpers/seriesColumnSettings.ts +114 -0
  105. package/src/helpers/tests/countNumOfTicks.test.ts +77 -0
  106. package/src/helpers/tests/seriesColumnSettings.test.ts +84 -0
  107. package/src/helpers/tests/tooltipHelpers.test.ts +151 -0
  108. package/src/helpers/tooltipHelpers.ts +176 -0
  109. package/src/hooks/useHighlightedBars.ts +9 -16
  110. package/src/hooks/useProgrammaticTooltip.ts +16 -2
  111. package/src/hooks/useRightAxis.ts +14 -0
  112. package/src/hooks/useScales.ts +92 -56
  113. package/src/hooks/useSmallMultipleSynchronization.ts +3 -4
  114. package/src/hooks/useTooltip.tsx +186 -40
  115. package/src/scss/main.scss +152 -79
  116. package/src/test/CdcChart.test.jsx +26 -2
  117. package/src/types/ChartConfig.ts +5 -0
  118. package/tests/fixtures/chart-config-with-metadata.json +29 -0
  119. package/tests/fixtures/data-with-metadata.json +10 -0
  120. package/examples/chart-regression-2.json +0 -2360
  121. package/examples/feature/__data__/age-adjusted-rates.json +0 -1486
  122. package/examples/feature/__data__/city-temperature.json +0 -2198
  123. package/examples/feature/bar/Barchart_with_negative.json +0 -34
  124. package/examples/feature/boxplot/box-plot-data.json +0 -71
  125. package/examples/feature/boxplot/boxplot-data.json +0 -156
  126. package/examples/feature/combo/combochart-categories_are_numbers .json +0 -18
  127. package/examples/feature/forest-plot/log.json +0 -26
  128. package/examples/feature/tests-date-exclusions/date-exclusions-data.json +0 -162
  129. package/examples/region-issue.json +0 -2065
  130. package/examples/xaxis.json +0 -493
  131. /package/examples/feature/bar/{tall-data.json → __data__/tall-data.json} +0 -0
  132. /package/examples/feature/deviation/{planet-deviation-data.json → __data__/planet-deviation-data.json} +0 -0
  133. /package/examples/feature/paired-bar/{paired-bar-data.json → __data__/paired-bar-data.json} +0 -0
  134. /package/examples/feature/paired-bar/{paired-bar-formatted.json → __data__/paired-bar-formatted.json} +0 -0
  135. /package/examples/feature/tests-case-rate/{case-rate-example-data.json → __data__/case-rate-example-data.json} +0 -0
  136. /package/examples/feature/tests-covid/{covid-example-data-confidence.json → __data__/covid-example-data-confidence.json} +0 -0
  137. /package/examples/feature/tests-covid/{covid-example-data.json → __data__/covid-example-data.json} +0 -0
  138. /package/examples/feature/tests-cutoff/{cutoff-example-data.json → __data__/cutoff-example-data.json} +0 -0
  139. /package/examples/feature/tests-non-numerics/{planet-example-data-nonnumeric.json → __data__/planet-example-data-nonnumeric.json} +0 -0
  140. /package/src/_stories/{Chart.Anchors.stories.tsx → Chart.Anchors.smoke.stories.tsx} +0 -0
  141. /package/src/_stories/{Chart.BoxPlot.stories.tsx → Chart.BoxPlot.smoke.stories.tsx} +0 -0
  142. /package/src/_stories/{Chart.CI.stories.tsx → Chart.CI.smoke.stories.tsx} +0 -0
  143. /package/src/_stories/{Chart.Combo.stories.tsx → Chart.Combo.smoke.stories.tsx} +0 -0
  144. /package/src/_stories/{Chart.DynamicSeries.stories.tsx → Chart.DynamicSeries.smoke.stories.tsx} +0 -0
  145. /package/src/_stories/{Chart.Filters.stories.tsx → Chart.Filters.smoke.stories.tsx} +0 -0
  146. /package/src/_stories/{Chart.Forecast.stories.tsx → Chart.Forecast.smoke.stories.tsx} +0 -0
  147. /package/src/_stories/{Chart.Legend.Gradient.stories.tsx → Chart.Legend.Gradient.smoke.stories.tsx} +0 -0
  148. /package/src/_stories/{Chart.Patterns.stories.tsx → Chart.Patterns.smoke.stories.tsx} +0 -0
  149. /package/src/_stories/{Chart.PreserveDecimals.stories.tsx → Chart.PreserveDecimals.smoke.stories.tsx} +0 -0
  150. /package/src/_stories/{Chart.Regions.Categorical.stories.tsx → Chart.Regions.Categorical.smoke.stories.tsx} +0 -0
  151. /package/src/_stories/{Chart.Regions.DateScale.stories.tsx → Chart.Regions.DateScale.smoke.stories.tsx} +0 -0
  152. /package/src/_stories/{Chart.Regions.DateTimeScale.stories.tsx → Chart.Regions.DateTimeScale.smoke.stories.tsx} +0 -0
  153. /package/src/_stories/{Chart.ScatterPlot.stories.tsx → Chart.ScatterPlot.smoke.stories.tsx} +0 -0
  154. /package/src/_stories/{ChartAnnotation.stories.tsx → ChartAnnotation.smoke.stories.tsx} +0 -0
  155. /package/src/_stories/{ChartAxisLabels.stories.tsx → ChartAxisLabels.smoke.stories.tsx} +0 -0
  156. /package/src/_stories/{ChartAxisTitles.stories.tsx → ChartAxisTitles.smoke.stories.tsx} +0 -0
  157. /package/src/_stories/{ChartBrush.Matrix.Continuous.stories.tsx → ChartBrush.Matrix.Continuous.smoke.stories.tsx} +0 -0
  158. /package/src/_stories/{ChartBrush.Matrix.Date.stories.tsx → ChartBrush.Matrix.Date.smoke.stories.tsx} +0 -0
  159. /package/src/_stories/{ChartBrush.Matrix.DateTime.stories.tsx → ChartBrush.Matrix.DateTime.smoke.stories.tsx} +0 -0
  160. /package/src/_stories/{ChartBrush.stories.tsx → ChartBrush.smoke.stories.tsx} +0 -0
  161. /package/src/_stories/{ChartLine.QuadrantAngles.stories.tsx → ChartLine.QuadrantAngles.smoke.stories.tsx} +0 -0
  162. /package/src/_stories/{ChartLine.Suppression.stories.tsx → ChartLine.Suppression.smoke.stories.tsx} +0 -0
  163. /package/src/_stories/{ChartLine.Symbols.stories.tsx → ChartLine.Symbols.smoke.stories.tsx} +0 -0
  164. /package/src/_stories/{ChartPrefixSuffix.stories.tsx → ChartPrefixSuffix.smoke.stories.tsx} +0 -0
  165. /package/src/_stories/{TechAdoptionWithLinks.stories.tsx → TechAdoptionWithLinks.smoke.stories.tsx} +0 -0
@@ -1,1486 +0,0 @@
1
- [
2
- {
3
- "Maine": {
4
- "male": [
5
- {
6
- "age": "1",
7
- "percent": 5,
8
- "count": 23,
9
- "rate": 29.5
10
- },
11
- {
12
- "age": "2",
13
- "percent": 16,
14
- "count": 74,
15
- "rate": 89.3
16
- },
17
- {
18
- "age": "3",
19
- "percent": 22,
20
- "count": 101,
21
- "rate": 130.4
22
- },
23
- {
24
- "age": "4",
25
- "percent": 17,
26
- "count": 80,
27
- "rate": 95.9
28
- },
29
- {
30
- "age": "5",
31
- "percent": 10,
32
- "count": 48,
33
- "rate": 47.3
34
- },
35
- {
36
- "age": "6",
37
- "percent": 2,
38
- "count": 20,
39
- "rate": 10
40
- }
41
- ],
42
- "female": [
43
- {
44
- "age": "1",
45
- "percent": 1,
46
- "count": 20,
47
- "rate": 10
48
- },
49
- {
50
- "age": "2",
51
- "percent": 5,
52
- "count": 22,
53
- "rate": 27
54
- },
55
- {
56
- "age": "3",
57
- "percent": 9,
58
- "count": 43,
59
- "rate": 54.2
60
- },
61
- {
62
- "age": "4",
63
- "percent": 6,
64
- "count": 28,
65
- "rate": 32.2
66
- },
67
- {
68
- "age": "5",
69
- "percent": 6,
70
- "count": 28,
71
- "rate": 25.7
72
- },
73
- {
74
- "age": "6",
75
- "percent": 1,
76
- "count": 20,
77
- "rate": 10
78
- }
79
- ]
80
- },
81
- "United States": {
82
- "male": [
83
- {
84
- "age": "1",
85
- "percent": 6,
86
- "count": 1036,
87
- "rate": 10
88
- },
89
- {
90
- "age": "2",
91
- "percent": 17,
92
- "count": 3032,
93
- "rate": 12.9
94
- },
95
- {
96
- "age": "3",
97
- "percent": 17,
98
- "count": 3042,
99
- "rate": 14.5
100
- },
101
- {
102
- "age": "4",
103
- "percent": 15,
104
- "count": 2560,
105
- "rate": 12.8
106
- },
107
- {
108
- "age": "5",
109
- "percent": 12,
110
- "count": 2137,
111
- "rate": 10.4
112
- },
113
- {
114
- "age": "6",
115
- "percent": 4,
116
- "count": 639,
117
- "rate": 10
118
- }
119
- ],
120
- "female": [
121
- {
122
- "age": "1",
123
- "percent": 2,
124
- "count": 355,
125
- "rate": 10
126
- },
127
- {
128
- "age": "2",
129
- "percent": 6,
130
- "count": 1104,
131
- "rate": 10
132
- },
133
- {
134
- "age": "3",
135
- "percent": 7,
136
- "count": 1287,
137
- "rate": 10
138
- },
139
- {
140
- "age": "4",
141
- "percent": 6,
142
- "count": 1124,
143
- "rate": 10
144
- },
145
- {
146
- "age": "5",
147
- "percent": 6,
148
- "count": 983,
149
- "rate": 10
150
- },
151
- {
152
- "age": "6",
153
- "percent": 2,
154
- "count": 273,
155
- "rate": 10
156
- }
157
- ]
158
- },
159
- "Alaska": {
160
- "male": [
161
- {
162
- "age": "1",
163
- "percent": 9,
164
- "count": 20,
165
- "rate": 30.4
166
- },
167
- {
168
- "age": "2",
169
- "percent": 16,
170
- "count": 27,
171
- "rate": 43.6
172
- },
173
- {
174
- "age": "3",
175
- "percent": 14,
176
- "count": 25,
177
- "rate": 48.8
178
- },
179
- {
180
- "age": "4",
181
- "percent": 11,
182
- "count": 20,
183
- "rate": 45.9
184
- },
185
- {
186
- "age": "5",
187
- "percent": 11,
188
- "count": 20,
189
- "rate": 42.3
190
- },
191
- {
192
- "age": "6",
193
- "percent": 3,
194
- "count": 20,
195
- "rate": 10.5
196
- }
197
- ],
198
- "female": [
199
- {
200
- "age": "1",
201
- "percent": 2,
202
- "count": 20,
203
- "rate": 10
204
- },
205
- {
206
- "age": "2",
207
- "percent": 7,
208
- "count": 20,
209
- "rate": 23.9
210
- },
211
- {
212
- "age": "3",
213
- "percent": 10,
214
- "count": 20,
215
- "rate": 38.4
216
- },
217
- {
218
- "age": "4",
219
- "percent": 9,
220
- "count": 20,
221
- "rate": 40.1
222
- },
223
- {
224
- "age": "5",
225
- "percent": 5,
226
- "count": 20,
227
- "rate": 18.1
228
- },
229
- {
230
- "age": "6",
231
- "percent": 1,
232
- "count": 20,
233
- "rate": 10
234
- }
235
- ]
236
- },
237
- "Georgia": {
238
- "male": [
239
- {
240
- "age": "1",
241
- "percent": 5,
242
- "count": 92,
243
- "rate": 12.4
244
- },
245
- {
246
- "age": "2",
247
- "percent": 17,
248
- "count": 304,
249
- "rate": 40.6
250
- },
251
- {
252
- "age": "3",
253
- "percent": 19,
254
- "count": 338,
255
- "rate": 50.2
256
- },
257
- {
258
- "age": "4",
259
- "percent": 12,
260
- "count": 223,
261
- "rate": 33.1
262
- },
263
- {
264
- "age": "5",
265
- "percent": 10,
266
- "count": 182,
267
- "rate": 28.9
268
- },
269
- {
270
- "age": "6",
271
- "percent": 3,
272
- "count": 58,
273
- "rate": 10
274
- }
275
- ],
276
- "female": [
277
- {
278
- "age": "1",
279
- "percent": 2,
280
- "count": 34,
281
- "rate": 10
282
- },
283
- {
284
- "age": "2",
285
- "percent": 7,
286
- "count": 124,
287
- "rate": 16.4
288
- },
289
- {
290
- "age": "3",
291
- "percent": 9,
292
- "count": 158,
293
- "rate": 21.9
294
- },
295
- {
296
- "age": "4",
297
- "percent": 8,
298
- "count": 142,
299
- "rate": 19.8
300
- },
301
- {
302
- "age": "5",
303
- "percent": 7,
304
- "count": 120,
305
- "rate": 17.3
306
- },
307
- {
308
- "age": "6",
309
- "percent": 2,
310
- "count": 35,
311
- "rate": 10
312
- }
313
- ]
314
- },
315
- "Connecticut": {
316
- "male": [
317
- {
318
- "age": "1",
319
- "percent": 4,
320
- "count": 60,
321
- "rate": 24.8
322
- },
323
- {
324
- "age": "2",
325
- "percent": 18,
326
- "count": 242,
327
- "rate": 105.5
328
- },
329
- {
330
- "age": "3",
331
- "percent": 19,
332
- "count": 262,
333
- "rate": 123.1
334
- },
335
- {
336
- "age": "4",
337
- "percent": 16,
338
- "count": 218,
339
- "rate": 97.7
340
- },
341
- {
342
- "age": "5",
343
- "percent": 15,
344
- "count": 202,
345
- "rate": 81.7
346
- },
347
- {
348
- "age": "6",
349
- "percent": 3,
350
- "count": 47,
351
- "rate": 16.6
352
- }
353
- ],
354
- "female": [
355
- {
356
- "age": "1",
357
- "percent": 2,
358
- "count": 22,
359
- "rate": 10
360
- },
361
- {
362
- "age": "2",
363
- "percent": 5,
364
- "count": 64,
365
- "rate": 29.2
366
- },
367
- {
368
- "age": "3",
369
- "percent": 6,
370
- "count": 89,
371
- "rate": 40.6
372
- },
373
- {
374
- "age": "4",
375
- "percent": 6,
376
- "count": 80,
377
- "rate": 33.6
378
- },
379
- {
380
- "age": "5",
381
- "percent": 5,
382
- "count": 74,
383
- "rate": 27.9
384
- },
385
- {
386
- "age": "6",
387
- "percent": 1,
388
- "count": 20,
389
- "rate": 10
390
- }
391
- ]
392
- },
393
- "Utah": {
394
- "male": [
395
- {
396
- "age": "1",
397
- "percent": 5,
398
- "count": 27,
399
- "rate": 10
400
- },
401
- {
402
- "age": "2",
403
- "percent": 15,
404
- "count": 82,
405
- "rate": 33.4
406
- },
407
- {
408
- "age": "3",
409
- "percent": 19,
410
- "count": 103,
411
- "rate": 45
412
- },
413
- {
414
- "age": "4",
415
- "percent": 10,
416
- "count": 54,
417
- "rate": 31.6
418
- },
419
- {
420
- "age": "5",
421
- "percent": 9,
422
- "count": 48,
423
- "rate": 32.1
424
- },
425
- {
426
- "age": "6",
427
- "percent": 3,
428
- "count": 20,
429
- "rate": 10
430
- }
431
- ],
432
- "female": [
433
- {
434
- "age": "1",
435
- "percent": 2,
436
- "count": 20,
437
- "rate": 10
438
- },
439
- {
440
- "age": "2",
441
- "percent": 7,
442
- "count": 36,
443
- "rate": 15.4
444
- },
445
- {
446
- "age": "3",
447
- "percent": 12,
448
- "count": 64,
449
- "rate": 28.9
450
- },
451
- {
452
- "age": "4",
453
- "percent": 8,
454
- "count": 43,
455
- "rate": 25.9
456
- },
457
- {
458
- "age": "5",
459
- "percent": 7,
460
- "count": 38,
461
- "rate": 24.6
462
- },
463
- {
464
- "age": "6",
465
- "percent": 2,
466
- "count": 20,
467
- "rate": 10
468
- }
469
- ]
470
- },
471
- "Arizona": {
472
- "male": [
473
- {
474
- "age": "1",
475
- "percent": 12,
476
- "count": 297,
477
- "rate": 58.6
478
- },
479
- {
480
- "age": "2",
481
- "percent": 20,
482
- "count": 486,
483
- "rate": 90.8
484
- },
485
- {
486
- "age": "3",
487
- "percent": 15,
488
- "count": 352,
489
- "rate": 75.9
490
- },
491
- {
492
- "age": "4",
493
- "percent": 14,
494
- "count": 324,
495
- "rate": 76.1
496
- },
497
- {
498
- "age": "5",
499
- "percent": 10,
500
- "count": 234,
501
- "rate": 54.7
502
- },
503
- {
504
- "age": "6",
505
- "percent": 3,
506
- "count": 65,
507
- "rate": 10.3
508
- }
509
- ],
510
- "female": [
511
- {
512
- "age": "1",
513
- "percent": 3,
514
- "count": 69,
515
- "rate": 14.4
516
- },
517
- {
518
- "age": "2",
519
- "percent": 7,
520
- "count": 160,
521
- "rate": 32.3
522
- },
523
- {
524
- "age": "3",
525
- "percent": 6,
526
- "count": 146,
527
- "rate": 32.4
528
- },
529
- {
530
- "age": "4",
531
- "percent": 5,
532
- "count": 115,
533
- "rate": 26.5
534
- },
535
- {
536
- "age": "5",
537
- "percent": 4,
538
- "count": 105,
539
- "rate": 22.5
540
- },
541
- {
542
- "age": "6",
543
- "percent": 2,
544
- "count": 36,
545
- "rate": 10
546
- }
547
- ]
548
- },
549
- "Nevada": {
550
- "male": [
551
- {
552
- "age": "1",
553
- "percent": 9,
554
- "count": 86,
555
- "rate": 45.3
556
- },
557
- {
558
- "age": "2",
559
- "percent": 15,
560
- "count": 138,
561
- "rate": 58.4
562
- },
563
- {
564
- "age": "3",
565
- "percent": 13,
566
- "count": 119,
567
- "rate": 55.8
568
- },
569
- {
570
- "age": "4",
571
- "percent": 14,
572
- "count": 125,
573
- "rate": 62.5
574
- },
575
- {
576
- "age": "5",
577
- "percent": 12,
578
- "count": 110,
579
- "rate": 57.1
580
- },
581
- {
582
- "age": "6",
583
- "percent": 7,
584
- "count": 60,
585
- "rate": 24.6
586
- }
587
- ],
588
- "female": [
589
- {
590
- "age": "1",
591
- "percent": 3,
592
- "count": 27,
593
- "rate": 15
594
- },
595
- {
596
- "age": "2",
597
- "percent": 4,
598
- "count": 41,
599
- "rate": 18.2
600
- },
601
- {
602
- "age": "3",
603
- "percent": 6,
604
- "count": 56,
605
- "rate": 27
606
- },
607
- {
608
- "age": "4",
609
- "percent": 7,
610
- "count": 65,
611
- "rate": 33.1
612
- },
613
- {
614
- "age": "5",
615
- "percent": 8,
616
- "count": 69,
617
- "rate": 35.1
618
- },
619
- {
620
- "age": "6",
621
- "percent": 2,
622
- "count": 20,
623
- "rate": 10
624
- }
625
- ]
626
- },
627
- "New Jersey": {
628
- "male": [
629
- {
630
- "age": "1",
631
- "percent": 4,
632
- "count": 108,
633
- "rate": 19.5
634
- },
635
- {
636
- "age": "2",
637
- "percent": 18,
638
- "count": 522,
639
- "rate": 88.9
640
- },
641
- {
642
- "age": "3",
643
- "percent": 18,
644
- "count": 507,
645
- "rate": 89.3
646
- },
647
- {
648
- "age": "4",
649
- "percent": 18,
650
- "count": 505,
651
- "rate": 87.9
652
- },
653
- {
654
- "age": "5",
655
- "percent": 14,
656
- "count": 389,
657
- "rate": 65.9
658
- },
659
- {
660
- "age": "6",
661
- "percent": 4,
662
- "count": 108,
663
- "rate": 16.5
664
- }
665
- ],
666
- "female": [
667
- {
668
- "age": "1",
669
- "percent": 1,
670
- "count": 34,
671
- "rate": 10
672
- },
673
- {
674
- "age": "2",
675
- "percent": 6,
676
- "count": 161,
677
- "rate": 28.4
678
- },
679
- {
680
- "age": "3",
681
- "percent": 6,
682
- "count": 160,
683
- "rate": 27.9
684
- },
685
- {
686
- "age": "4",
687
- "percent": 6,
688
- "count": 169,
689
- "rate": 28.2
690
- },
691
- {
692
- "age": "5",
693
- "percent": 5,
694
- "count": 141,
695
- "rate": 22.3
696
- },
697
- {
698
- "age": "6",
699
- "percent": 2,
700
- "count": 60,
701
- "rate": 10
702
- }
703
- ]
704
- },
705
- "South Dakota": {
706
- "male": [
707
- {
708
- "age": "1",
709
- "percent": 15,
710
- "count": 20,
711
- "rate": 14.7
712
- },
713
- {
714
- "age": "2",
715
- "percent": 13,
716
- "count": 20,
717
- "rate": 13.3
718
- },
719
- {
720
- "age": "3",
721
- "percent": 18,
722
- "count": 20,
723
- "rate": 19.6
724
- },
725
- {
726
- "age": "4",
727
- "percent": 13,
728
- "count": 20,
729
- "rate": 16.7
730
- },
731
- {
732
- "age": "5",
733
- "percent": 6,
734
- "count": 20,
735
- "rate": 10
736
- },
737
- {
738
- "age": "6",
739
- "percent": 0,
740
- "count": 20,
741
- "rate": 10
742
- }
743
- ],
744
- "female": [
745
- {
746
- "age": "1",
747
- "percent": 3,
748
- "count": 20,
749
- "rate": 10
750
- },
751
- {
752
- "age": "2",
753
- "percent": 5,
754
- "count": 20,
755
- "rate": 10
756
- },
757
- {
758
- "age": "3",
759
- "percent": 16,
760
- "count": 20,
761
- "rate": 19.2
762
- },
763
- {
764
- "age": "4",
765
- "percent": 5,
766
- "count": 20,
767
- "rate": 10
768
- },
769
- {
770
- "age": "5",
771
- "percent": 6,
772
- "count": 20,
773
- "rate": 10
774
- },
775
- {
776
- "age": "6",
777
- "percent": 0,
778
- "count": 20,
779
- "rate": 10
780
- }
781
- ]
782
- },
783
- "Massachusetts": {
784
- "male": [
785
- {
786
- "age": "1",
787
- "percent": 3,
788
- "count": 71,
789
- "rate": 15.4
790
- },
791
- {
792
- "age": "2",
793
- "percent": 17,
794
- "count": 399,
795
- "rate": 79.4
796
- },
797
- {
798
- "age": "3",
799
- "percent": 22,
800
- "count": 509,
801
- "rate": 120.2
802
- },
803
- {
804
- "age": "4",
805
- "percent": 15,
806
- "count": 352,
807
- "rate": 83.4
808
- },
809
- {
810
- "age": "5",
811
- "percent": 13,
812
- "count": 297,
813
- "rate": 65.4
814
- },
815
- {
816
- "age": "6",
817
- "percent": 3,
818
- "count": 67,
819
- "rate": 12.8
820
- }
821
- ],
822
- "female": [
823
- {
824
- "age": "1",
825
- "percent": 2,
826
- "count": 36,
827
- "rate": 10
828
- },
829
- {
830
- "age": "2",
831
- "percent": 7,
832
- "count": 157,
833
- "rate": 31.8
834
- },
835
- {
836
- "age": "3",
837
- "percent": 8,
838
- "count": 183,
839
- "rate": 42
840
- },
841
- {
842
- "age": "4",
843
- "percent": 6,
844
- "count": 129,
845
- "rate": 28.7
846
- },
847
- {
848
- "age": "5",
849
- "percent": 4,
850
- "count": 94,
851
- "rate": 19.2
852
- },
853
- {
854
- "age": "6",
855
- "percent": 1,
856
- "count": 21,
857
- "rate": 10
858
- }
859
- ]
860
- },
861
- "Oklahoma": {
862
- "male": [
863
- {
864
- "age": "1",
865
- "percent": 3,
866
- "count": 25,
867
- "rate": 10
868
- },
869
- {
870
- "age": "2",
871
- "percent": 12,
872
- "count": 91,
873
- "rate": 32.8
874
- },
875
- {
876
- "age": "3",
877
- "percent": 14,
878
- "count": 107,
879
- "rate": 42.1
880
- },
881
- {
882
- "age": "4",
883
- "percent": 16,
884
- "count": 122,
885
- "rate": 54.3
886
- },
887
- {
888
- "age": "5",
889
- "percent": 16,
890
- "count": 124,
891
- "rate": 52.4
892
- },
893
- {
894
- "age": "6",
895
- "percent": 5,
896
- "count": 42,
897
- "rate": 14.4
898
- }
899
- ],
900
- "female": [
901
- {
902
- "age": "1",
903
- "percent": 2,
904
- "count": 20,
905
- "rate": 10
906
- },
907
- {
908
- "age": "2",
909
- "percent": 7,
910
- "count": 52,
911
- "rate": 19.4
912
- },
913
- {
914
- "age": "3",
915
- "percent": 7,
916
- "count": 56,
917
- "rate": 22.2
918
- },
919
- {
920
- "age": "4",
921
- "percent": 8,
922
- "count": 66,
923
- "rate": 29.1
924
- },
925
- {
926
- "age": "5",
927
- "percent": 8,
928
- "count": 63,
929
- "rate": 24.9
930
- },
931
- {
932
- "age": "6",
933
- "percent": 2,
934
- "count": 20,
935
- "rate": 10
936
- }
937
- ]
938
- },
939
- "New Mexico": {
940
- "male": [
941
- {
942
- "age": "1",
943
- "percent": 4,
944
- "count": 27,
945
- "rate": 18.7
946
- },
947
- {
948
- "age": "2",
949
- "percent": 19,
950
- "count": 117,
951
- "rate": 79.2
952
- },
953
- {
954
- "age": "3",
955
- "percent": 20,
956
- "count": 123,
957
- "rate": 93.5
958
- },
959
- {
960
- "age": "4",
961
- "percent": 11,
962
- "count": 67,
963
- "rate": 58.5
964
- },
965
- {
966
- "age": "5",
967
- "percent": 12,
968
- "count": 76,
969
- "rate": 59
970
- },
971
- {
972
- "age": "6",
973
- "percent": 4,
974
- "count": 26,
975
- "rate": 14.6
976
- }
977
- ],
978
- "female": [
979
- {
980
- "age": "1",
981
- "percent": 2,
982
- "count": 20,
983
- "rate": 10
984
- },
985
- {
986
- "age": "2",
987
- "percent": 8,
988
- "count": 53,
989
- "rate": 38.6
990
- },
991
- {
992
- "age": "3",
993
- "percent": 8,
994
- "count": 53,
995
- "rate": 41.3
996
- },
997
- {
998
- "age": "4",
999
- "percent": 6,
1000
- "count": 40,
1001
- "rate": 33.8
1002
- },
1003
- {
1004
- "age": "5",
1005
- "percent": 4,
1006
- "count": 26,
1007
- "rate": 18.4
1008
- },
1009
- {
1010
- "age": "6",
1011
- "percent": 1,
1012
- "count": 20,
1013
- "rate": 10
1014
- }
1015
- ]
1016
- },
1017
- "Minnesota": {
1018
- "male": [
1019
- {
1020
- "age": "1",
1021
- "percent": 8,
1022
- "count": 81,
1023
- "rate": 22.3
1024
- },
1025
- {
1026
- "age": "2",
1027
- "percent": 21,
1028
- "count": 199,
1029
- "rate": 51
1030
- },
1031
- {
1032
- "age": "3",
1033
- "percent": 13,
1034
- "count": 121,
1035
- "rate": 32.2
1036
- },
1037
- {
1038
- "age": "4",
1039
- "percent": 13,
1040
- "count": 128,
1041
- "rate": 38.5
1042
- },
1043
- {
1044
- "age": "5",
1045
- "percent": 10,
1046
- "count": 95,
1047
- "rate": 25.5
1048
- },
1049
- {
1050
- "age": "6",
1051
- "percent": 2,
1052
- "count": 20,
1053
- "rate": 10
1054
- }
1055
- ],
1056
- "female": [
1057
- {
1058
- "age": "1",
1059
- "percent": 4,
1060
- "count": 39,
1061
- "rate": 11.1
1062
- },
1063
- {
1064
- "age": "2",
1065
- "percent": 8,
1066
- "count": 76,
1067
- "rate": 20.5
1068
- },
1069
- {
1070
- "age": "3",
1071
- "percent": 8,
1072
- "count": 79,
1073
- "rate": 21.7
1074
- },
1075
- {
1076
- "age": "4",
1077
- "percent": 6,
1078
- "count": 58,
1079
- "rate": 17.7
1080
- },
1081
- {
1082
- "age": "5",
1083
- "percent": 5,
1084
- "count": 50,
1085
- "rate": 13.2
1086
- },
1087
- {
1088
- "age": "6",
1089
- "percent": 1,
1090
- "count": 20,
1091
- "rate": 10
1092
- }
1093
- ]
1094
- },
1095
- "Vermont": {
1096
- "male": [
1097
- {
1098
- "age": "1",
1099
- "percent": 3,
1100
- "count": 20,
1101
- "rate": 13.7
1102
- },
1103
- {
1104
- "age": "2",
1105
- "percent": 20,
1106
- "count": 35,
1107
- "rate": 90.9
1108
- },
1109
- {
1110
- "age": "3",
1111
- "percent": 16,
1112
- "count": 28,
1113
- "rate": 78.4
1114
- },
1115
- {
1116
- "age": "4",
1117
- "percent": 20,
1118
- "count": 35,
1119
- "rate": 93.4
1120
- },
1121
- {
1122
- "age": "5",
1123
- "percent": 10,
1124
- "count": 20,
1125
- "rate": 37.4
1126
- },
1127
- {
1128
- "age": "6",
1129
- "percent": 2,
1130
- "count": 20,
1131
- "rate": 10
1132
- }
1133
- ],
1134
- "female": [
1135
- {
1136
- "age": "1",
1137
- "percent": 1,
1138
- "count": 20,
1139
- "rate": 10
1140
- },
1141
- {
1142
- "age": "2",
1143
- "percent": 8,
1144
- "count": 20,
1145
- "rate": 38.1
1146
- },
1147
- {
1148
- "age": "3",
1149
- "percent": 7,
1150
- "count": 20,
1151
- "rate": 35.6
1152
- },
1153
- {
1154
- "age": "4",
1155
- "percent": 8,
1156
- "count": 20,
1157
- "rate": 36.5
1158
- },
1159
- {
1160
- "age": "5",
1161
- "percent": 6,
1162
- "count": 20,
1163
- "rate": 20.7
1164
- },
1165
- {
1166
- "age": "6",
1167
- "percent": 0,
1168
- "count": 20,
1169
- "rate": 10
1170
- }
1171
- ]
1172
- },
1173
- "Oregon": {
1174
- "male": [
1175
- {
1176
- "age": "1",
1177
- "percent": 8,
1178
- "count": 56,
1179
- "rate": 21.6
1180
- },
1181
- {
1182
- "age": "2",
1183
- "percent": 17,
1184
- "count": 117,
1185
- "rate": 37.7
1186
- },
1187
- {
1188
- "age": "3",
1189
- "percent": 14,
1190
- "count": 99,
1191
- "rate": 33.9
1192
- },
1193
- {
1194
- "age": "4",
1195
- "percent": 14,
1196
- "count": 95,
1197
- "rate": 36.9
1198
- },
1199
- {
1200
- "age": "5",
1201
- "percent": 11,
1202
- "count": 76,
1203
- "rate": 29.6
1204
- },
1205
- {
1206
- "age": "6",
1207
- "percent": 6,
1208
- "count": 40,
1209
- "rate": 11.1
1210
- }
1211
- ],
1212
- "female": [
1213
- {
1214
- "age": "1",
1215
- "percent": 2,
1216
- "count": 20,
1217
- "rate": 10
1218
- },
1219
- {
1220
- "age": "2",
1221
- "percent": 6,
1222
- "count": 39,
1223
- "rate": 13.1
1224
- },
1225
- {
1226
- "age": "3",
1227
- "percent": 8,
1228
- "count": 56,
1229
- "rate": 19.5
1230
- },
1231
- {
1232
- "age": "4",
1233
- "percent": 8,
1234
- "count": 57,
1235
- "rate": 22.4
1236
- },
1237
- {
1238
- "age": "5",
1239
- "percent": 5,
1240
- "count": 32,
1241
- "rate": 11.6
1242
- },
1243
- {
1244
- "age": "6",
1245
- "percent": 2,
1246
- "count": 20,
1247
- "rate": 10
1248
- }
1249
- ]
1250
- },
1251
- "Delaware": {
1252
- "male": [
1253
- {
1254
- "age": "1",
1255
- "percent": 3,
1256
- "count": 20,
1257
- "rate": 23.5
1258
- },
1259
- {
1260
- "age": "2",
1261
- "percent": 16,
1262
- "count": 72,
1263
- "rate": 111
1264
- },
1265
- {
1266
- "age": "3",
1267
- "percent": 19,
1268
- "count": 85,
1269
- "rate": 149.8
1270
- },
1271
- {
1272
- "age": "4",
1273
- "percent": 14,
1274
- "count": 64,
1275
- "rate": 114.8
1276
- },
1277
- {
1278
- "age": "5",
1279
- "percent": 13,
1280
- "count": 58,
1281
- "rate": 88.7
1282
- },
1283
- {
1284
- "age": "6",
1285
- "percent": 3,
1286
- "count": 20,
1287
- "rate": 13.6
1288
- }
1289
- ],
1290
- "female": [
1291
- {
1292
- "age": "1",
1293
- "percent": 2,
1294
- "count": 20,
1295
- "rate": 18.8
1296
- },
1297
- {
1298
- "age": "2",
1299
- "percent": 5,
1300
- "count": 23,
1301
- "rate": 35.5
1302
- },
1303
- {
1304
- "age": "3",
1305
- "percent": 10,
1306
- "count": 46,
1307
- "rate": 77.8
1308
- },
1309
- {
1310
- "age": "4",
1311
- "percent": 5,
1312
- "count": 21,
1313
- "rate": 34.5
1314
- },
1315
- {
1316
- "age": "5",
1317
- "percent": 8,
1318
- "count": 35,
1319
- "rate": 47.1
1320
- },
1321
- {
1322
- "age": "6",
1323
- "percent": 1,
1324
- "count": 20,
1325
- "rate": 10
1326
- }
1327
- ]
1328
- },
1329
- "DC": {
1330
- "male": [
1331
- {
1332
- "age": "1",
1333
- "percent": 3,
1334
- "count": 20,
1335
- "rate": 35.1
1336
- },
1337
- {
1338
- "age": "2",
1339
- "percent": 8,
1340
- "count": 42,
1341
- "rate": 54.2
1342
- },
1343
- {
1344
- "age": "3",
1345
- "percent": 11,
1346
- "count": 57,
1347
- "rate": 103
1348
- },
1349
- {
1350
- "age": "4",
1351
- "percent": 16,
1352
- "count": 82,
1353
- "rate": 222
1354
- },
1355
- {
1356
- "age": "5",
1357
- "percent": 23,
1358
- "count": 119,
1359
- "rate": 354.7
1360
- },
1361
- {
1362
- "age": "6",
1363
- "percent": 10,
1364
- "count": 49,
1365
- "rate": 133.3
1366
- }
1367
- ],
1368
- "female": [
1369
- {
1370
- "age": "1",
1371
- "percent": 1,
1372
- "count": 20,
1373
- "rate": 10
1374
- },
1375
- {
1376
- "age": "2",
1377
- "percent": 5,
1378
- "count": 24,
1379
- "rate": 27.5
1380
- },
1381
- {
1382
- "age": "3",
1383
- "percent": 3,
1384
- "count": 20,
1385
- "rate": 22.5
1386
- },
1387
- {
1388
- "age": "4",
1389
- "percent": 7,
1390
- "count": 38,
1391
- "rate": 102.4
1392
- },
1393
- {
1394
- "age": "5",
1395
- "percent": 11,
1396
- "count": 56,
1397
- "rate": 154.5
1398
- },
1399
- {
1400
- "age": "6",
1401
- "percent": 2,
1402
- "count": 20,
1403
- "rate": 18.8
1404
- }
1405
- ]
1406
- },
1407
- "Mississippi": {
1408
- "male": [
1409
- {
1410
- "age": "1",
1411
- "percent": 5,
1412
- "count": 24,
1413
- "rate": 11.8
1414
- },
1415
- {
1416
- "age": "2",
1417
- "percent": 16,
1418
- "count": 77,
1419
- "rate": 39.8
1420
- },
1421
- {
1422
- "age": "3",
1423
- "percent": 20,
1424
- "count": 95,
1425
- "rate": 53.8
1426
- },
1427
- {
1428
- "age": "4",
1429
- "percent": 12,
1430
- "count": 58,
1431
- "rate": 33.9
1432
- },
1433
- {
1434
- "age": "5",
1435
- "percent": 8,
1436
- "count": 38,
1437
- "rate": 20.9
1438
- },
1439
- {
1440
- "age": "6",
1441
- "percent": 2,
1442
- "count": 20,
1443
- "rate": 10
1444
- }
1445
- ],
1446
- "female": [
1447
- {
1448
- "age": "1",
1449
- "percent": 1,
1450
- "count": 20,
1451
- "rate": 10
1452
- },
1453
- {
1454
- "age": "2",
1455
- "percent": 9,
1456
- "count": 42,
1457
- "rate": 21.4
1458
- },
1459
- {
1460
- "age": "3",
1461
- "percent": 9,
1462
- "count": 44,
1463
- "rate": 23.3
1464
- },
1465
- {
1466
- "age": "4",
1467
- "percent": 8,
1468
- "count": 40,
1469
- "rate": 21.6
1470
- },
1471
- {
1472
- "age": "5",
1473
- "percent": 6,
1474
- "count": 30,
1475
- "rate": 14.9
1476
- },
1477
- {
1478
- "age": "6",
1479
- "percent": 2,
1480
- "count": 20,
1481
- "rate": 10
1482
- }
1483
- ]
1484
- }
1485
- }
1486
- ]