@cdc/map 4.25.7 → 4.25.10

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 (99) hide show
  1. package/.claude/settings.local.json +30 -0
  2. package/CLAUDE.local.md +0 -0
  3. package/dist/cdcmap.js +54785 -53159
  4. package/examples/private/c.json +290 -0
  5. package/examples/private/canvas-city-hover.json +787 -0
  6. package/examples/private/d.json +345 -0
  7. package/examples/private/filter-map.json +909 -0
  8. package/examples/private/g.json +1 -0
  9. package/examples/private/h.json +105911 -0
  10. package/examples/private/measles-data.json +378 -0
  11. package/examples/private/measles.json +211 -0
  12. package/examples/private/north-dakota.json +1132 -0
  13. package/examples/private/rsv-data.json +532 -0
  14. package/examples/private/state-with-pattern.json +883 -0
  15. package/examples/private/test.json +222 -640
  16. package/index.html +1 -1
  17. package/package.json +26 -5
  18. package/src/CdcMap.tsx +28 -8
  19. package/src/CdcMapComponent.tsx +230 -306
  20. package/src/_stories/CdcMap.Filters.stories.tsx +2 -2
  21. package/src/_stories/CdcMap.Legend.Gradient.stories.tsx +3 -3
  22. package/src/_stories/CdcMap.Legend.stories.tsx +7 -4
  23. package/src/_stories/CdcMap.Patterns.stories.tsx +2 -2
  24. package/src/_stories/CdcMap.Table.stories.tsx +2 -2
  25. package/src/_stories/CdcMap.stories.tsx +18 -11
  26. package/src/_stories/GoogleMap.stories.tsx +2 -2
  27. package/src/_stories/UsaMap.NoData.stories.tsx +2 -2
  28. package/src/_stories/_mock/equal-number.json +1109 -0
  29. package/src/_stories/_mock/multi-state.json +21389 -0
  30. package/src/_stories/_mock/us-bubble-cities.json +306 -0
  31. package/src/components/BubbleList.tsx +16 -12
  32. package/src/components/CityList.tsx +88 -110
  33. package/src/components/DataTable.tsx +44 -12
  34. package/src/components/EditorPanel/components/EditorPanel.tsx +201 -203
  35. package/src/components/EditorPanel/components/HexShapeSettings.tsx +3 -2
  36. package/src/components/EditorPanel/components/Panels/Panel.PatternSettings.tsx +7 -5
  37. package/src/components/Geo.tsx +2 -0
  38. package/src/components/Legend/components/Legend.tsx +117 -93
  39. package/src/components/Legend/components/LegendGroup/Legend.Group.tsx +10 -7
  40. package/src/components/MapContainer.tsx +52 -0
  41. package/src/components/MapControls.tsx +44 -0
  42. package/src/components/Modal.tsx +2 -8
  43. package/src/components/NavigationMenu.tsx +13 -1
  44. package/src/components/UsaMap/components/SingleState/SingleState.CountyOutput.tsx +24 -7
  45. package/src/components/UsaMap/components/SingleState/SingleState.StateOutput.tsx +21 -15
  46. package/src/components/UsaMap/components/TerritoriesSection.tsx +2 -2
  47. package/src/components/UsaMap/components/UsaMap.County.tsx +112 -33
  48. package/src/components/UsaMap/components/UsaMap.Region.tsx +23 -5
  49. package/src/components/UsaMap/components/UsaMap.SingleState.tsx +38 -26
  50. package/src/components/UsaMap/components/UsaMap.State.tsx +28 -10
  51. package/src/components/UsaMap/helpers/map.ts +16 -8
  52. package/src/components/WorldMap/WorldMap.tsx +116 -11
  53. package/src/components/ZoomControls.tsx +6 -9
  54. package/src/context/LegendMemoContext.tsx +30 -0
  55. package/src/context.ts +1 -39
  56. package/src/data/initial-state.js +143 -128
  57. package/src/data/supported-geos.js +202 -4
  58. package/src/helpers/addUIDs.ts +8 -8
  59. package/src/helpers/applyColorToLegend.ts +122 -45
  60. package/src/helpers/applyLegendToRow.ts +15 -13
  61. package/src/helpers/componentHelpers.ts +8 -0
  62. package/src/helpers/constants.ts +12 -0
  63. package/src/helpers/dataTableHelpers.ts +6 -0
  64. package/src/helpers/displayGeoName.ts +12 -7
  65. package/src/helpers/formatLegendLocation.ts +1 -3
  66. package/src/helpers/generateRuntimeLegend.ts +192 -340
  67. package/src/helpers/generateRuntimeLegendHash.ts +4 -2
  68. package/src/helpers/getColumnNames.ts +1 -1
  69. package/src/helpers/getPatternForRow.ts +36 -0
  70. package/src/helpers/getStatesPicked.ts +14 -0
  71. package/src/helpers/handleMapAriaLabels.ts +2 -2
  72. package/src/helpers/index.ts +11 -3
  73. package/src/helpers/isLegendItemDisabled.ts +16 -0
  74. package/src/helpers/mapObserverHelpers.ts +40 -0
  75. package/src/helpers/resetLegendToggles.ts +3 -2
  76. package/src/helpers/toggleLegendActive.ts +6 -11
  77. package/src/helpers/urlDataHelpers.ts +70 -0
  78. package/src/hooks/useGeoClickHandler.ts +35 -1
  79. package/src/hooks/useLegendMemo.ts +17 -0
  80. package/src/hooks/useMapLayers.tsx +5 -4
  81. package/src/hooks/useStateZoom.tsx +137 -88
  82. package/src/hooks/useTooltip.ts +1 -2
  83. package/src/index.jsx +6 -3
  84. package/src/scss/main.scss +23 -12
  85. package/src/store/map.actions.ts +2 -2
  86. package/src/store/map.reducer.ts +21 -10
  87. package/src/test/CdcMap.test.jsx +11 -0
  88. package/src/types/MapConfig.ts +25 -17
  89. package/src/types/MapContext.ts +2 -8
  90. package/src/types/runtimeLegend.ts +12 -10
  91. package/vite.config.js +2 -7
  92. package/vitest.config.ts +16 -0
  93. package/src/_stories/_mock/floating-point.json +0 -427
  94. package/src/coreStyles_map.scss +0 -3
  95. package/src/helpers/colorDistributions.ts +0 -12
  96. package/src/helpers/generateColorsArray.ts +0 -14
  97. package/src/helpers/getStatePicked.ts +0 -8
  98. package/src/helpers/tests/generateColorsArray.test.ts +0 -18
  99. package/src/helpers/tests/generateRuntimeLegendHash.test.ts +0 -11
@@ -0,0 +1,1109 @@
1
+ {
2
+ "general": {
3
+ "title": "Example Equal Number (Quantiles) U.S. Data Map",
4
+ "subtext": "Map subtext",
5
+ "type": "data",
6
+ "geoType": "us",
7
+ "headerColor": "theme-cyan",
8
+ "showSidebar": true,
9
+ "showTitle": true,
10
+ "showDownloadButton": true,
11
+ "expandDataTable": false,
12
+ "backgroundColor": "#f5f5f5",
13
+ "geoBorderColor": "darkGray",
14
+ "territoriesLabel": "Territories",
15
+ "language": "en",
16
+ "hasRegions": false,
17
+ "showDownloadMediaButton": false,
18
+ "displayAsHex": false,
19
+ "displayStateLabels": false,
20
+ "territoriesAlwaysShow": false,
21
+ "geoLabelOverride": "",
22
+ "fullBorder": false,
23
+ "convertFipsCodes": true,
24
+ "palette": {
25
+ "isReversed": false
26
+ },
27
+ "allowMapZoom": true,
28
+ "hideGeoColumnInTooltip": false,
29
+ "hidePrimaryColumnInTooltip": false,
30
+ "statePicked": {
31
+ "fipsCode": "01",
32
+ "stateName": "Alabama"
33
+ }
34
+ },
35
+ "type": "map",
36
+ "color": "yellowpurple",
37
+ "columns": {
38
+ "geo": {
39
+ "name": "STATE",
40
+ "label": "Location",
41
+ "tooltip": false,
42
+ "dataTable": true
43
+ },
44
+ "primary": {
45
+ "name": "Rate",
46
+ "label": "Rate",
47
+ "prefix": "",
48
+ "suffix": "%",
49
+ "dataTable": true,
50
+ "tooltip": true
51
+ },
52
+ "navigate": {
53
+ "name": "URL",
54
+ "tooltip": false,
55
+ "dataTable": false
56
+ },
57
+ "Location": {
58
+ "name": "Location",
59
+ "label": "Location",
60
+ "prefix": "",
61
+ "suffix": "",
62
+ "tooltip": true,
63
+ "dataTable": true
64
+ },
65
+ "geosInRegion": {
66
+ "name": ""
67
+ },
68
+ "latitude": {
69
+ "name": ""
70
+ },
71
+ "longitude": {
72
+ "name": ""
73
+ }
74
+ },
75
+ "legend": {
76
+ "numberOfItems": 4,
77
+ "position": "side",
78
+ "title": "Legend Title",
79
+ "description": "Legend Text",
80
+ "type": "equalnumber",
81
+ "specialClasses": [],
82
+ "geosPerColor": {},
83
+ "descriptions": {},
84
+ "unified": false,
85
+ "singleColumn": true,
86
+ "dynamicDescription": false,
87
+ "singleRow": false,
88
+ "verticalSorted": false,
89
+ "showSpecialClassesLast": false
90
+ },
91
+ "filters": [],
92
+ "table": {
93
+ "wrapColumns": false,
94
+ "label": "Data Table",
95
+ "expanded": false,
96
+ "limitHeight": false,
97
+ "height": "",
98
+ "caption": "",
99
+ "showDownloadUrl": false,
100
+ "showDataTableLink": true,
101
+ "showFullGeoNameInCSV": false,
102
+ "forceDisplay": true,
103
+ "download": true,
104
+ "indexLabel": ""
105
+ },
106
+ "tooltips": {
107
+ "appearanceType": "hover",
108
+ "linkLabel": "Learn More",
109
+ "capitalizeLabels": true,
110
+ "opacity": 90
111
+ },
112
+ "visual": {
113
+ "minBubbleSize": 1,
114
+ "maxBubbleSize": 20,
115
+ "extraBubbleBorder": false,
116
+ "cityStyle": "circle",
117
+ "cityStyleLabel": "",
118
+ "showBubbleZeros": false,
119
+ "additionalCityStyles": [],
120
+ "geoCodeCircleSize": 8
121
+ },
122
+ "mapPosition": {
123
+ "coordinates": [
124
+ 0,
125
+ 30
126
+ ],
127
+ "zoom": 1
128
+ },
129
+ "map": {
130
+ "layers": [],
131
+ "patterns": []
132
+ },
133
+ "hexMap": {
134
+ "type": "",
135
+ "shapeGroups": [
136
+ {
137
+ "legendTitle": "",
138
+ "legendDescription": "",
139
+ "items": [
140
+ {
141
+ "key": "",
142
+ "shape": "Arrow Up",
143
+ "column": "",
144
+ "operator": "=",
145
+ "value": ""
146
+ }
147
+ ]
148
+ }
149
+ ]
150
+ },
151
+ "filterBehavior": "Filter Change",
152
+ "data": [
153
+ {
154
+ "STATE": "AL",
155
+ "Rate": 30,
156
+ "Location": "Vehicle",
157
+ "URL": "https://www.cdc.gov/",
158
+ "$$hashKey": "object:195",
159
+ "stateabbreviation": "al",
160
+ "statename": "Alabama",
161
+ "stateId": "1",
162
+ "timeIntervalDataVal": 0,
163
+ "color": "class4_color1",
164
+ "$$stateabbreviation": "al",
165
+ "$$statename": "Alabama",
166
+ "$$stateId": "1",
167
+ "$$color": "class4_color1"
168
+ },
169
+ {
170
+ "STATE": "AK",
171
+ "Rate": 40,
172
+ "Location": "Work",
173
+ "URL": "https://www.cdc.gov/",
174
+ "$$hashKey": "object:196",
175
+ "stateabbreviation": "ak",
176
+ "statename": "Alaska",
177
+ "stateId": "2",
178
+ "timeIntervalDataVal": 0,
179
+ "color": "class4_color2",
180
+ "$$stateabbreviation": "ak",
181
+ "$$statename": "Alaska",
182
+ "$$stateId": "2",
183
+ "$$color": "class4_color1"
184
+ },
185
+ {
186
+ "STATE": "AS",
187
+ "Rate": 55,
188
+ "Location": "Home",
189
+ "URL": "https://www.cdc.gov/",
190
+ "$$hashKey": "object:197",
191
+ "type": "territory",
192
+ "stateabbreviation": "as",
193
+ "statename": "American Samoa",
194
+ "stateId": "60",
195
+ "timeIntervalDataVal": 0,
196
+ "color": "class4_color3",
197
+ "$$stateabbreviation": "as",
198
+ "$$statename": "American Samoa",
199
+ "$$stateId": "60",
200
+ "$$color": "class4_color2"
201
+ },
202
+ {
203
+ "STATE": "AZ",
204
+ "Rate": 57,
205
+ "Location": "School",
206
+ "URL": "https://www.cdc.gov/",
207
+ "$$hashKey": "object:198",
208
+ "stateabbreviation": "az",
209
+ "statename": "Arizona",
210
+ "stateId": "4",
211
+ "timeIntervalDataVal": 0,
212
+ "color": "class4_color3",
213
+ "$$stateabbreviation": "az",
214
+ "$$statename": "Arizona",
215
+ "$$stateId": "4",
216
+ "$$color": "class4_color3"
217
+ },
218
+ {
219
+ "STATE": "AR",
220
+ "Rate": 60,
221
+ "Location": "School",
222
+ "URL": "https://www.cdc.gov/",
223
+ "$$hashKey": "object:199",
224
+ "stateabbreviation": "ar",
225
+ "statename": "Arkansas",
226
+ "textoffsety": 3,
227
+ "stateId": "5",
228
+ "timeIntervalDataVal": 0,
229
+ "color": "class4_color3",
230
+ "$$stateabbreviation": "ar",
231
+ "$$statename": "Arkansas",
232
+ "$$stateId": "5",
233
+ "$$color": "class4_color4"
234
+ },
235
+ {
236
+ "STATE": "CA",
237
+ "Rate": 30,
238
+ "Location": "Home",
239
+ "URL": "https://www.cdc.gov/",
240
+ "stateabbreviation": "ca",
241
+ "statename": "California",
242
+ "textoffsety": 10,
243
+ "stateId": "6",
244
+ "timeIntervalDataVal": 0,
245
+ "color": "class4_color1",
246
+ "$$stateabbreviation": "ca",
247
+ "$$statename": "California",
248
+ "$$stateId": "6",
249
+ "$$color": "class4_color1"
250
+ },
251
+ {
252
+ "STATE": "CO",
253
+ "Rate": 40,
254
+ "Location": "Vehicle",
255
+ "URL": "https://www.cdc.gov/",
256
+ "stateabbreviation": "co",
257
+ "statename": "Colorado",
258
+ "textoffsety": 3,
259
+ "stateId": "8",
260
+ "timeIntervalDataVal": 0,
261
+ "color": "class4_color2",
262
+ "$$stateabbreviation": "co",
263
+ "$$statename": "Colorado",
264
+ "$$stateId": "8",
265
+ "$$color": "class4_color1"
266
+ },
267
+ {
268
+ "STATE": "CT",
269
+ "Rate": 55,
270
+ "Location": "Home",
271
+ "URL": "https://www.cdc.gov/",
272
+ "type": "smallstate",
273
+ "stateabbreviation": "ct",
274
+ "statename": "Connecticut",
275
+ "textoffsetx": 2,
276
+ "textoffsety": 4,
277
+ "stateId": "9",
278
+ "timeIntervalDataVal": 0,
279
+ "color": "class4_color3",
280
+ "$$stateabbreviation": "ct",
281
+ "$$statename": "Connecticut",
282
+ "$$stateId": "9",
283
+ "$$color": "class4_color2"
284
+ },
285
+ {
286
+ "STATE": "DE",
287
+ "Rate": 57,
288
+ "Location": "Home",
289
+ "URL": "https://www.cdc.gov/",
290
+ "type": "smallstate",
291
+ "stateabbreviation": "de",
292
+ "statename": "Delaware",
293
+ "stateId": "10",
294
+ "timeIntervalDataVal": 0,
295
+ "color": "class4_color3",
296
+ "$$stateabbreviation": "de",
297
+ "$$statename": "Delaware",
298
+ "$$stateId": "10",
299
+ "$$color": "class4_color3"
300
+ },
301
+ {
302
+ "STATE": "DC",
303
+ "Rate": 60,
304
+ "Location": "Home",
305
+ "URL": "https://www.cdc.gov/",
306
+ "type": "smallstate",
307
+ "stateabbreviation": "dc",
308
+ "statename": "District of Columbia",
309
+ "stateId": "11",
310
+ "timeIntervalDataVal": 0,
311
+ "color": "class4_color3",
312
+ "$$stateabbreviation": "dc",
313
+ "$$statename": "District of Columbia",
314
+ "$$stateId": "11",
315
+ "$$color": "class4_color4"
316
+ },
317
+ {
318
+ "STATE": "FL",
319
+ "Rate": 30,
320
+ "Location": "Work",
321
+ "URL": "https://www.cdc.gov/",
322
+ "stateabbreviation": "fl",
323
+ "statename": "Florida",
324
+ "textoffsetx": 8,
325
+ "textoffsety": 7,
326
+ "stateId": "12",
327
+ "timeIntervalDataVal": 0,
328
+ "color": "class4_color1",
329
+ "$$stateabbreviation": "fl",
330
+ "$$statename": "Florida",
331
+ "$$stateId": "12",
332
+ "$$color": "class4_color1"
333
+ },
334
+ {
335
+ "STATE": "GA",
336
+ "Rate": 40,
337
+ "Location": "Work",
338
+ "URL": "https://www.cdc.gov/",
339
+ "stateabbreviation": "ga",
340
+ "statename": "Georgia",
341
+ "stateId": "13",
342
+ "timeIntervalDataVal": 0,
343
+ "color": "class4_color2",
344
+ "$$stateabbreviation": "ga",
345
+ "$$statename": "Georgia",
346
+ "$$stateId": "13",
347
+ "$$color": "class4_color2"
348
+ },
349
+ {
350
+ "STATE": "GU",
351
+ "Rate": 55,
352
+ "Location": "Home",
353
+ "URL": "https://www.cdc.gov/",
354
+ "type": "territory",
355
+ "stateabbreviation": "gu",
356
+ "statename": "Guam",
357
+ "stateId": "66",
358
+ "timeIntervalDataVal": 0,
359
+ "color": "class4_color3",
360
+ "$$stateabbreviation": "gu",
361
+ "$$statename": "Guam",
362
+ "$$stateId": "66",
363
+ "$$color": "class4_color2"
364
+ },
365
+ {
366
+ "STATE": "HI",
367
+ "Rate": 57,
368
+ "Location": "School",
369
+ "URL": "https://www.cdc.gov/",
370
+ "stateabbreviation": "hi",
371
+ "statename": "Hawaii",
372
+ "textoffsetx": -15,
373
+ "textoffsety": 7,
374
+ "stateId": "15",
375
+ "timeIntervalDataVal": 0,
376
+ "color": "class4_color3",
377
+ "$$stateabbreviation": "hi",
378
+ "$$statename": "Hawaii",
379
+ "$$stateId": "15",
380
+ "$$color": "class4_color3"
381
+ },
382
+ {
383
+ "STATE": "ID",
384
+ "Rate": 60,
385
+ "Location": "School",
386
+ "URL": "https://www.cdc.gov/",
387
+ "stateabbreviation": "id",
388
+ "statename": "Idaho",
389
+ "textoffsety": 10,
390
+ "stateId": "16",
391
+ "timeIntervalDataVal": 0,
392
+ "color": "class4_color3",
393
+ "$$stateabbreviation": "id",
394
+ "$$statename": "Idaho",
395
+ "$$stateId": "16",
396
+ "$$color": "class4_color4"
397
+ },
398
+ {
399
+ "STATE": "IL",
400
+ "Rate": 30,
401
+ "Location": "Work",
402
+ "URL": "https://www.cdc.gov/",
403
+ "stateabbreviation": "il",
404
+ "statename": "Illinois",
405
+ "stateId": "17",
406
+ "timeIntervalDataVal": 0,
407
+ "color": "class4_color1",
408
+ "$$stateabbreviation": "il",
409
+ "$$statename": "Illinois",
410
+ "$$stateId": "17",
411
+ "$$color": "class4_color1"
412
+ },
413
+ {
414
+ "STATE": "IN",
415
+ "Rate": 40,
416
+ "Location": "Vehicle",
417
+ "URL": "https://www.cdc.gov/",
418
+ "stateabbreviation": "in",
419
+ "statename": "Indiana",
420
+ "stateId": "18",
421
+ "timeIntervalDataVal": 0,
422
+ "color": "class4_color2",
423
+ "$$stateabbreviation": "in",
424
+ "$$statename": "Indiana",
425
+ "$$stateId": "18",
426
+ "$$color": "class4_color2"
427
+ },
428
+ {
429
+ "STATE": "IA",
430
+ "Rate": 55,
431
+ "Location": "Home",
432
+ "URL": "https://www.cdc.gov/",
433
+ "stateabbreviation": "ia",
434
+ "statename": "Iowa",
435
+ "textoffsety": 3,
436
+ "stateId": "19",
437
+ "timeIntervalDataVal": 0,
438
+ "color": "class4_color3",
439
+ "$$stateabbreviation": "ia",
440
+ "$$statename": "Iowa",
441
+ "$$stateId": "19",
442
+ "$$color": "class4_color2"
443
+ },
444
+ {
445
+ "STATE": "KS",
446
+ "Rate": 57,
447
+ "Location": "Home",
448
+ "URL": "https://www.cdc.gov/",
449
+ "stateabbreviation": "ks",
450
+ "statename": "Kansas",
451
+ "textoffsety": 5,
452
+ "stateId": "20",
453
+ "timeIntervalDataVal": 0,
454
+ "color": "class4_color3",
455
+ "$$stateabbreviation": "ks",
456
+ "$$statename": "Kansas",
457
+ "$$stateId": "20",
458
+ "$$color": "class4_color3"
459
+ },
460
+ {
461
+ "STATE": "KY",
462
+ "Rate": 60,
463
+ "Location": "NA",
464
+ "URL": "https://www.cdc.gov/",
465
+ "stateabbreviation": "ky",
466
+ "statename": "Kentucky",
467
+ "textoffsetx": 4,
468
+ "textoffsety": 3,
469
+ "stateId": "21",
470
+ "timeIntervalDataVal": 0,
471
+ "color": "class4_color3",
472
+ "$$stateabbreviation": "ky",
473
+ "$$statename": "Kentucky",
474
+ "$$stateId": "21",
475
+ "$$color": "class4_color4"
476
+ },
477
+ {
478
+ "STATE": "LA",
479
+ "Rate": 30,
480
+ "Location": "Vehicle",
481
+ "URL": "https://www.cdc.gov/",
482
+ "stateabbreviation": "la",
483
+ "statename": "Louisiana",
484
+ "textoffsetx": -5,
485
+ "stateId": "22",
486
+ "timeIntervalDataVal": 0,
487
+ "color": "class4_color1",
488
+ "$$stateabbreviation": "la",
489
+ "$$statename": "Louisiana",
490
+ "$$stateId": "22",
491
+ "$$color": "class4_color1"
492
+ },
493
+ {
494
+ "STATE": "ME",
495
+ "Rate": 40,
496
+ "Location": "Work",
497
+ "URL": "https://www.cdc.gov/",
498
+ "stateabbreviation": "me",
499
+ "statename": "Maine",
500
+ "stateId": "23",
501
+ "timeIntervalDataVal": 0,
502
+ "color": "class4_color2",
503
+ "$$stateabbreviation": "me",
504
+ "$$statename": "Maine",
505
+ "$$stateId": "23",
506
+ "$$color": "class4_color2"
507
+ },
508
+ {
509
+ "STATE": "MH",
510
+ "Rate": 55,
511
+ "Location": "Home",
512
+ "URL": "https://www.cdc.gov/",
513
+ "type": "territory",
514
+ "stateabbreviation": "mh",
515
+ "statename": "Marshall Islands",
516
+ "stateId": "68",
517
+ "timeIntervalDataVal": 0,
518
+ "color": "class4_color3",
519
+ "$$stateabbreviation": "mh",
520
+ "$$statename": "Marshall Islands",
521
+ "$$stateId": "68",
522
+ "$$color": "class4_color2"
523
+ },
524
+ {
525
+ "STATE": "MD",
526
+ "Rate": 57,
527
+ "Location": "School",
528
+ "URL": "https://www.cdc.gov/",
529
+ "type": "smallstate",
530
+ "stateabbreviation": "md",
531
+ "statename": "Maryland",
532
+ "textoffsetx": 2,
533
+ "textoffsety": 2,
534
+ "stateId": "24",
535
+ "timeIntervalDataVal": 0,
536
+ "color": "class4_color3",
537
+ "$$stateabbreviation": "md",
538
+ "$$statename": "Maryland",
539
+ "$$stateId": "24",
540
+ "$$color": "class4_color3"
541
+ },
542
+ {
543
+ "STATE": "MA",
544
+ "Rate": 60,
545
+ "Location": "School",
546
+ "URL": "https://www.cdc.gov/",
547
+ "stateabbreviation": "ma",
548
+ "statename": "Massachusetts",
549
+ "textoffsety": 3,
550
+ "stateId": "25",
551
+ "timeIntervalDataVal": 0,
552
+ "color": "class4_color3",
553
+ "$$stateabbreviation": "ma",
554
+ "$$statename": "Massachusetts",
555
+ "$$stateId": "25",
556
+ "$$color": "class4_color4"
557
+ },
558
+ {
559
+ "STATE": "MI",
560
+ "Rate": 12,
561
+ "Location": "Work",
562
+ "URL": "https://www.cdc.gov/",
563
+ "stateabbreviation": "mi",
564
+ "statename": "Michigan",
565
+ "textoffsetx": 6,
566
+ "textoffsety": 10,
567
+ "stateId": "26",
568
+ "timeIntervalDataVal": 0,
569
+ "color": "class4_color1",
570
+ "$$stateabbreviation": "mi",
571
+ "$$statename": "Michigan",
572
+ "$$stateId": "26",
573
+ "$$color": "class4_color1"
574
+ },
575
+ {
576
+ "STATE": "FM",
577
+ "Rate": 65,
578
+ "Location": "Vehicle",
579
+ "URL": "https://www.cdc.gov/",
580
+ "type": "territory",
581
+ "stateabbreviation": "fm",
582
+ "statename": "Micronesia",
583
+ "stateId": "71",
584
+ "timeIntervalDataVal": 0,
585
+ "color": "class4_color3",
586
+ "$$stateabbreviation": "fm",
587
+ "$$statename": "Micronesia",
588
+ "$$stateId": "71",
589
+ "$$color": "class4_color4"
590
+ },
591
+ {
592
+ "STATE": "MN",
593
+ "Rate": 55,
594
+ "Location": "Home",
595
+ "URL": "https://www.cdc.gov/",
596
+ "stateabbreviation": "mn",
597
+ "statename": "Minnesota",
598
+ "stateId": "27",
599
+ "timeIntervalDataVal": 0,
600
+ "color": "class4_color3",
601
+ "$$stateabbreviation": "mn",
602
+ "$$statename": "Minnesota",
603
+ "$$stateId": "27",
604
+ "$$color": "class4_color3"
605
+ },
606
+ {
607
+ "STATE": "MS",
608
+ "Rate": 57,
609
+ "Location": "Home",
610
+ "URL": "https://www.cdc.gov/",
611
+ "stateabbreviation": "ms",
612
+ "statename": "Mississippi",
613
+ "stateId": "28",
614
+ "timeIntervalDataVal": 0,
615
+ "color": "class4_color3",
616
+ "$$stateabbreviation": "ms",
617
+ "$$statename": "Mississippi",
618
+ "$$stateId": "28",
619
+ "$$color": "class4_color3"
620
+ },
621
+ {
622
+ "STATE": "MO",
623
+ "Rate": 60,
624
+ "Location": "Home",
625
+ "URL": "https://www.cdc.gov/",
626
+ "stateabbreviation": "mo",
627
+ "statename": "Missouri",
628
+ "textoffsety": 5,
629
+ "stateId": "29",
630
+ "timeIntervalDataVal": 0,
631
+ "color": "class4_color3",
632
+ "$$stateabbreviation": "mo",
633
+ "$$statename": "Missouri",
634
+ "$$stateId": "29",
635
+ "$$color": "class4_color4"
636
+ },
637
+ {
638
+ "STATE": "MT",
639
+ "Rate": 30,
640
+ "Location": "Vehicle",
641
+ "URL": "https://www.cdc.gov/",
642
+ "stateabbreviation": "mt",
643
+ "statename": "Montana",
644
+ "stateId": "30",
645
+ "timeIntervalDataVal": 0,
646
+ "color": "class4_color1",
647
+ "$$stateabbreviation": "mt",
648
+ "$$statename": "Montana",
649
+ "$$stateId": "30",
650
+ "$$color": "class4_color1"
651
+ },
652
+ {
653
+ "STATE": "NE",
654
+ "Rate": 40,
655
+ "Location": "Work",
656
+ "URL": "https://www.cdc.gov/",
657
+ "stateabbreviation": "ne",
658
+ "statename": "Nebraska",
659
+ "textoffsety": 3,
660
+ "stateId": "31",
661
+ "timeIntervalDataVal": 0,
662
+ "color": "class4_color2",
663
+ "$$stateabbreviation": "ne",
664
+ "$$statename": "Nebraska",
665
+ "$$stateId": "31",
666
+ "$$color": "class4_color2"
667
+ },
668
+ {
669
+ "STATE": "NV",
670
+ "Rate": 55,
671
+ "Location": "Home",
672
+ "URL": "https://www.cdc.gov/",
673
+ "stateabbreviation": "nv",
674
+ "statename": "Nevada",
675
+ "stateId": "32",
676
+ "timeIntervalDataVal": 0,
677
+ "color": "class4_color3",
678
+ "$$stateabbreviation": "nv",
679
+ "$$statename": "Nevada",
680
+ "$$stateId": "32",
681
+ "$$color": "class4_color3"
682
+ },
683
+ {
684
+ "STATE": "NH",
685
+ "Rate": 57,
686
+ "Location": "School",
687
+ "URL": "https://www.cdc.gov/",
688
+ "type": "smallstate",
689
+ "stateabbreviation": "nh",
690
+ "statename": "New Hampshire",
691
+ "textoffsety": 6,
692
+ "stateId": "33",
693
+ "timeIntervalDataVal": 0,
694
+ "color": "class4_color3",
695
+ "$$stateabbreviation": "nh",
696
+ "$$statename": "New Hampshire",
697
+ "$$stateId": "33",
698
+ "$$color": "class4_color3"
699
+ },
700
+ {
701
+ "STATE": "NJ",
702
+ "Rate": 60,
703
+ "Location": "School",
704
+ "URL": "https://www.cdc.gov/",
705
+ "type": "smallstate",
706
+ "stateabbreviation": "nj",
707
+ "statename": "New Jersey",
708
+ "stateId": "34",
709
+ "timeIntervalDataVal": 0,
710
+ "color": "class4_color3",
711
+ "$$stateabbreviation": "nj",
712
+ "$$statename": "New Jersey",
713
+ "$$stateId": "34",
714
+ "$$color": "class4_color4"
715
+ },
716
+ {
717
+ "STATE": "NM",
718
+ "Rate": 12,
719
+ "Location": "Work",
720
+ "URL": "https://www.cdc.gov/",
721
+ "stateabbreviation": "nm",
722
+ "statename": "New Mexico",
723
+ "textoffsety": 3,
724
+ "stateId": "35",
725
+ "timeIntervalDataVal": 0,
726
+ "color": "class4_color1",
727
+ "$$stateabbreviation": "nm",
728
+ "$$statename": "New Mexico",
729
+ "$$stateId": "35",
730
+ "$$color": "class4_color1"
731
+ },
732
+ {
733
+ "STATE": "NY",
734
+ "Rate": 40,
735
+ "Location": "Vehicle",
736
+ "URL": "https://www.cdc.gov/",
737
+ "stateabbreviation": "ny",
738
+ "statename": "New York",
739
+ "stateId": "36",
740
+ "timeIntervalDataVal": 0,
741
+ "color": "class4_color2",
742
+ "$$stateabbreviation": "ny",
743
+ "$$statename": "New York",
744
+ "$$stateId": "36",
745
+ "$$color": "class4_color2"
746
+ },
747
+ {
748
+ "STATE": "NC",
749
+ "Rate": 55,
750
+ "Location": "Home",
751
+ "URL": "https://www.cdc.gov/",
752
+ "stateabbreviation": "nc",
753
+ "statename": "North Carolina",
754
+ "textoffsety": 3,
755
+ "stateId": "37",
756
+ "timeIntervalDataVal": 0,
757
+ "color": "class4_color3",
758
+ "$$stateabbreviation": "nc",
759
+ "$$statename": "North Carolina",
760
+ "$$stateId": "37",
761
+ "$$color": "class4_color3"
762
+ },
763
+ {
764
+ "STATE": "ND",
765
+ "Rate": 57,
766
+ "Location": "Home",
767
+ "URL": "https://www.cdc.gov/",
768
+ "stateabbreviation": "nd",
769
+ "statename": "North Dakota",
770
+ "textoffsety": 3,
771
+ "stateId": "38",
772
+ "timeIntervalDataVal": 0,
773
+ "color": "class4_color3",
774
+ "$$stateabbreviation": "nd",
775
+ "$$statename": "North Dakota",
776
+ "$$stateId": "38",
777
+ "$$color": "class4_color3"
778
+ },
779
+ {
780
+ "STATE": "MP",
781
+ "Rate": 60,
782
+ "Location": "Home",
783
+ "URL": "https://www.cdc.gov/",
784
+ "type": "territory",
785
+ "stateabbreviation": "mp",
786
+ "statename": "Northern Mariana Islands",
787
+ "stateId": "69",
788
+ "timeIntervalDataVal": 0,
789
+ "color": "class4_color3",
790
+ "$$stateabbreviation": "mp",
791
+ "$$statename": "Northern Mariana Islands",
792
+ "$$stateId": "69",
793
+ "$$color": "class4_color4"
794
+ },
795
+ {
796
+ "STATE": "OH",
797
+ "Rate": 88,
798
+ "Location": "Vehicle",
799
+ "URL": "https://www.cdc.gov/",
800
+ "stateabbreviation": "oh",
801
+ "statename": "Ohio",
802
+ "textoffsety": 5,
803
+ "stateId": "39",
804
+ "timeIntervalDataVal": 0,
805
+ "color": "class4_color4",
806
+ "$$stateabbreviation": "oh",
807
+ "$$statename": "Ohio",
808
+ "$$stateId": "39",
809
+ "$$color": "class4_color4"
810
+ },
811
+ {
812
+ "STATE": "OK",
813
+ "Rate": 40,
814
+ "Location": "Work",
815
+ "URL": "https://www.cdc.gov/",
816
+ "stateabbreviation": "ok",
817
+ "statename": "Oklahoma",
818
+ "textoffsety": 3,
819
+ "stateId": "40",
820
+ "timeIntervalDataVal": 0,
821
+ "color": "class4_color2",
822
+ "$$stateabbreviation": "ok",
823
+ "$$statename": "Oklahoma",
824
+ "$$stateId": "40",
825
+ "$$color": "class4_color2"
826
+ },
827
+ {
828
+ "STATE": "OR",
829
+ "Rate": 55,
830
+ "Location": "Home",
831
+ "URL": "https://www.cdc.gov/",
832
+ "stateabbreviation": "or",
833
+ "statename": "Oregon",
834
+ "textoffsety": 3,
835
+ "stateId": "41",
836
+ "timeIntervalDataVal": 0,
837
+ "color": "class4_color3",
838
+ "$$stateabbreviation": "or",
839
+ "$$statename": "Oregon",
840
+ "$$stateId": "41",
841
+ "$$color": "class4_color3"
842
+ },
843
+ {
844
+ "STATE": "PW",
845
+ "Rate": 15,
846
+ "Location": "School",
847
+ "URL": "https://www.cdc.gov/",
848
+ "type": "territory",
849
+ "stateabbreviation": "pw",
850
+ "statename": "Palau",
851
+ "stateId": "70",
852
+ "timeIntervalDataVal": 0,
853
+ "color": "class4_color1",
854
+ "$$stateabbreviation": "pw",
855
+ "$$statename": "Palau",
856
+ "$$stateId": "70",
857
+ "$$color": "class4_color1"
858
+ },
859
+ {
860
+ "STATE": "PA",
861
+ "Rate": 60,
862
+ "Location": "School",
863
+ "URL": "https://www.cdc.gov/",
864
+ "stateabbreviation": "pa",
865
+ "statename": "Pennsylvania",
866
+ "textoffsety": 5,
867
+ "stateId": "42",
868
+ "timeIntervalDataVal": 0,
869
+ "color": "class4_color3",
870
+ "$$stateabbreviation": "pa",
871
+ "$$statename": "Pennsylvania",
872
+ "$$stateId": "42",
873
+ "$$color": "class4_color4"
874
+ },
875
+ {
876
+ "STATE": "PR",
877
+ "Rate": 30,
878
+ "Location": "Work",
879
+ "URL": "https://www.cdc.gov/",
880
+ "type": "territory",
881
+ "stateabbreviation": "pr",
882
+ "statename": "Puerto Rico",
883
+ "stateId": "72",
884
+ "timeIntervalDataVal": 0,
885
+ "color": "class4_color1",
886
+ "$$stateabbreviation": "pr",
887
+ "$$statename": "Puerto Rico",
888
+ "$$stateId": "72",
889
+ "$$color": "class4_color1"
890
+ },
891
+ {
892
+ "STATE": "RI",
893
+ "Rate": 40,
894
+ "Location": "Vehicle",
895
+ "URL": "https://www.cdc.gov/",
896
+ "type": "smallstate",
897
+ "stateabbreviation": "ri",
898
+ "statename": "Rhode Island",
899
+ "stateId": "44",
900
+ "timeIntervalDataVal": 0,
901
+ "color": "class4_color2",
902
+ "$$stateabbreviation": "ri",
903
+ "$$statename": "Rhode Island",
904
+ "$$stateId": "44",
905
+ "$$color": "class4_color2"
906
+ },
907
+ {
908
+ "STATE": "SC",
909
+ "Rate": 55,
910
+ "Location": "Home",
911
+ "URL": "https://www.cdc.gov/",
912
+ "stateabbreviation": "sc",
913
+ "statename": "South Carolina",
914
+ "textoffsety": 3,
915
+ "stateId": "45",
916
+ "timeIntervalDataVal": 0,
917
+ "color": "class4_color3",
918
+ "$$stateabbreviation": "sc",
919
+ "$$statename": "South Carolina",
920
+ "$$stateId": "45",
921
+ "$$color": "class4_color3"
922
+ },
923
+ {
924
+ "STATE": "SD",
925
+ "Rate": 86,
926
+ "Location": "Home",
927
+ "URL": "https://www.cdc.gov/",
928
+ "stateabbreviation": "sd",
929
+ "statename": "South Dakota",
930
+ "textoffsety": 3,
931
+ "stateId": "46",
932
+ "timeIntervalDataVal": 0,
933
+ "color": "class4_color4",
934
+ "$$stateabbreviation": "sd",
935
+ "$$statename": "South Dakota",
936
+ "$$stateId": "46",
937
+ "$$color": "class4_color4"
938
+ },
939
+ {
940
+ "STATE": "TN",
941
+ "Rate": 60,
942
+ "Location": "Home",
943
+ "URL": "https://www.cdc.gov/",
944
+ "stateabbreviation": "tn",
945
+ "statename": "Tennessee",
946
+ "textoffsety": 4,
947
+ "stateId": "47",
948
+ "timeIntervalDataVal": 0,
949
+ "color": "class4_color3",
950
+ "$$stateabbreviation": "tn",
951
+ "$$statename": "Tennessee",
952
+ "$$stateId": "47",
953
+ "$$color": "class4_color4"
954
+ },
955
+ {
956
+ "STATE": "TX",
957
+ "Rate": 30,
958
+ "Location": "Vehicle",
959
+ "URL": "https://www.cdc.gov/",
960
+ "stateabbreviation": "tx",
961
+ "statename": "Texas",
962
+ "stateId": "48",
963
+ "timeIntervalDataVal": 0,
964
+ "color": "class4_color1",
965
+ "$$stateabbreviation": "tx",
966
+ "$$statename": "Texas",
967
+ "$$stateId": "48",
968
+ "$$color": "class4_color1"
969
+ },
970
+ {
971
+ "STATE": "UT",
972
+ "Rate": 54,
973
+ "Location": "Work",
974
+ "URL": "https://www.cdc.gov/",
975
+ "stateabbreviation": "ut",
976
+ "statename": "Utah",
977
+ "textoffsety": 3,
978
+ "stateId": "49",
979
+ "timeIntervalDataVal": 0,
980
+ "color": "class4_color3",
981
+ "$$stateabbreviation": "ut",
982
+ "$$statename": "Utah",
983
+ "$$stateId": "49",
984
+ "$$color": "class4_color2"
985
+ },
986
+ {
987
+ "STATE": "VT",
988
+ "Rate": 40,
989
+ "Location": "Home",
990
+ "URL": "https://www.cdc.gov/",
991
+ "type": "smallstate",
992
+ "stateabbreviation": "vt",
993
+ "statename": "Vermont",
994
+ "stateId": "50",
995
+ "timeIntervalDataVal": 0,
996
+ "color": "class4_color2",
997
+ "$$stateabbreviation": "vt",
998
+ "$$statename": "Vermont",
999
+ "$$stateId": "50",
1000
+ "$$color": "class4_color2"
1001
+ },
1002
+ {
1003
+ "STATE": "VI",
1004
+ "Rate": 55,
1005
+ "Location": "School",
1006
+ "URL": "https://www.cdc.gov/",
1007
+ "type": "territory",
1008
+ "stateabbreviation": "vi",
1009
+ "statename": "Virgin Islands",
1010
+ "stateId": "78",
1011
+ "timeIntervalDataVal": 0,
1012
+ "color": "class4_color3",
1013
+ "$$stateabbreviation": "vi",
1014
+ "$$statename": "Virgin Islands",
1015
+ "$$stateId": "78",
1016
+ "$$color": "class4_color3"
1017
+ },
1018
+ {
1019
+ "STATE": "VA",
1020
+ "Rate": 57,
1021
+ "Location": "School",
1022
+ "URL": "https://www.cdc.gov/",
1023
+ "stateabbreviation": "va",
1024
+ "statename": "Virginia",
1025
+ "textoffsety": 3,
1026
+ "stateId": "51",
1027
+ "timeIntervalDataVal": 0,
1028
+ "color": "class4_color3",
1029
+ "$$stateabbreviation": "va",
1030
+ "$$statename": "Virginia",
1031
+ "$$stateId": "51",
1032
+ "$$color": "class4_color4"
1033
+ },
1034
+ {
1035
+ "STATE": "WA",
1036
+ "Rate": 62,
1037
+ "Location": "Work",
1038
+ "URL": "https://www.cdc.gov/",
1039
+ "stateabbreviation": "wa",
1040
+ "statename": "Washington",
1041
+ "textoffsety": 5,
1042
+ "stateId": "53",
1043
+ "timeIntervalDataVal": 0,
1044
+ "color": "class4_color3",
1045
+ "$$stateabbreviation": "wa",
1046
+ "$$statename": "Washington",
1047
+ "$$stateId": "53",
1048
+ "$$color": "class4_color4"
1049
+ },
1050
+ {
1051
+ "STATE": "WV",
1052
+ "Rate": 25,
1053
+ "Location": "Vehicle",
1054
+ "URL": "https://www.cdc.gov/",
1055
+ "stateabbreviation": "wv",
1056
+ "statename": "West Virginia",
1057
+ "textoffsetx": -4,
1058
+ "textoffsety": 10,
1059
+ "stateId": "54",
1060
+ "timeIntervalDataVal": 0,
1061
+ "color": "class4_color1",
1062
+ "$$stateabbreviation": "wv",
1063
+ "$$statename": "West Virginia",
1064
+ "$$stateId": "54",
1065
+ "$$color": "class4_color1"
1066
+ },
1067
+ {
1068
+ "STATE": "WI",
1069
+ "Rate": 40,
1070
+ "Location": "Home",
1071
+ "URL": "https://www.cdc.gov/",
1072
+ "stateabbreviation": "wi",
1073
+ "statename": "Wisconsin",
1074
+ "stateId": "55",
1075
+ "timeIntervalDataVal": 0,
1076
+ "color": "class4_color2",
1077
+ "$$stateabbreviation": "wi",
1078
+ "$$statename": "Wisconsin",
1079
+ "$$stateId": "55",
1080
+ "$$color": "class4_color2"
1081
+ },
1082
+ {
1083
+ "STATE": "WY",
1084
+ "Rate": 55,
1085
+ "Location": "Home",
1086
+ "URL": "https://www.cdc.gov/",
1087
+ "stateabbreviation": "wy",
1088
+ "statename": "Wyoming",
1089
+ "textoffsety": 3,
1090
+ "stateId": "56",
1091
+ "timeIntervalDataVal": 0,
1092
+ "color": "class4_color3",
1093
+ "$$stateabbreviation": "wy",
1094
+ "$$statename": "Wyoming",
1095
+ "$$stateId": "56",
1096
+ "$$color": "class4_color3"
1097
+ }
1098
+ ],
1099
+ "sharing": {
1100
+ "enabled": false,
1101
+ "dataHost": "wcms-wp.cdc.gov",
1102
+ "configUrl": "/wcms/4.0/cdc-wp/data-presentation/page-elements/equal-number-map.json"
1103
+ },
1104
+ "dataTable": {
1105
+ "title": "Data Table"
1106
+ },
1107
+ "usingWidgetLoader": true,
1108
+ "version": "4.24.4"
1109
+ }