@cdc/map 4.22.10-alpha.1 → 4.22.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/dist/cdcmap.js +10 -10
  2. package/examples/private/atsdr.json +19 -29
  3. package/examples/private/atsdr_new.json +1 -1
  4. package/examples/private/bubble.json +282 -284
  5. package/examples/private/city-state.json +427 -427
  6. package/examples/private/city-state2.json +433 -433
  7. package/examples/private/cty-issue.json +42765 -42768
  8. package/examples/private/default-usa.json +2 -5
  9. package/examples/private/default-world-data.json +1443 -1443
  10. package/examples/private/default.json +965 -965
  11. package/examples/private/diff.json +226 -0
  12. package/examples/private/filters.json +1 -0
  13. package/examples/private/legend-issue.json +3271 -1
  14. package/examples/private/map-issue.json +166 -0
  15. package/examples/private/map-rounding-error.json +42756 -42759
  16. package/examples/private/mdx.json +209 -209
  17. package/examples/private/monkeypox.json +375 -375
  18. package/examples/private/regions.json +51 -51
  19. package/examples/private/wcmsrd-13881-data.json +2856 -2856
  20. package/examples/private/wcmsrd-13881.json +5818 -5822
  21. package/examples/private/wcmsrd-14492-data.json +291 -291
  22. package/examples/private/wcmsrd-14492.json +103 -113
  23. package/examples/private/wcmsrd-test.json +264 -267
  24. package/examples/private/world.json +1579 -1579
  25. package/examples/private/worldmap.json +1489 -1489
  26. package/package.json +3 -3
  27. package/src/CdcMap.js +231 -315
  28. package/src/components/BubbleList.js +199 -240
  29. package/src/components/CityList.js +50 -96
  30. package/src/components/CountyMap.js +511 -600
  31. package/src/components/DataTable.js +218 -253
  32. package/src/components/EditorPanel.js +2338 -2551
  33. package/src/components/Geo.js +4 -14
  34. package/src/components/Modal.js +13 -23
  35. package/src/components/NavigationMenu.js +43 -39
  36. package/src/components/Sidebar.js +83 -93
  37. package/src/components/SingleStateMap.js +95 -151
  38. package/src/components/UsaMap.js +165 -214
  39. package/src/components/UsaRegionMap.js +122 -160
  40. package/src/components/WorldMap.js +96 -179
  41. package/src/components/ZoomableGroup.js +6 -26
  42. package/src/data/initial-state.js +1 -0
  43. package/src/hooks/useActiveElement.js +13 -13
  44. package/src/hooks/useColorPalette.ts +66 -74
  45. package/src/hooks/useZoomPan.js +22 -23
  46. package/src/index.html +1 -2
  47. package/src/scss/sidebar.scss +22 -0
@@ -1,292 +1,292 @@
1
1
  [
2
- {
3
- "Reporting Jurisdictions": "Alabama",
4
- "Total": 939,
5
- "Category": "501 - 1,000"
6
- },
7
- {
8
- "Reporting Jurisdictions": "Alaska",
9
- "Total": 506,
10
- "Category": "501 - 1,000"
11
- },
12
- {
13
- "Reporting Jurisdictions": "American Samoa",
14
- "Total": null,
15
- "Category": "Not Reported"
16
- },
17
- {
18
- "Reporting Jurisdictions": "Arizona",
19
- "Total": null,
20
- "Category": "Not Reported"
21
- },
22
- {
23
- "Reporting Jurisdictions": "Arkansas",
24
- "Total": 833,
25
- "Category": "501 - 1,000"
26
- },
27
- {
28
- "Reporting Jurisdictions": "California",
29
- "Total": 181537,
30
- "Category": "> 50,000"
31
- },
32
- {
33
- "Reporting Jurisdictions": "Colorado",
34
- "Total": 14835,
35
- "Category": "10,001 - 50,000"
36
- },
37
- {
38
- "Reporting Jurisdictions": "Connecticut",
39
- "Total": 5740,
40
- "Category": "5,001 - 10,000"
41
- },
42
- {
43
- "Reporting Jurisdictions": "Delaware",
44
- "Total": 1292,
45
- "Category": "1,001 - 5,000"
46
- },
47
- {
48
- "Reporting Jurisdictions": "District of Columbia",
49
- "Total": null,
50
- "Category": "Not Reported"
51
- },
52
- {
53
- "Reporting Jurisdictions": "Florida",
54
- "Total": 65398,
55
- "Category": "> 50,000"
56
- },
57
- {
58
- "Reporting Jurisdictions": "Georgia",
59
- "Total": 35688,
60
- "Category": "10,001 - 50,000"
61
- },
62
- {
63
- "Reporting Jurisdictions": "Guam",
64
- "Total": null,
65
- "Category": "Not Reported"
66
- },
67
- {
68
- "Reporting Jurisdictions": "Hawaii",
69
- "Total": 2799,
70
- "Category": "1,001 - 5,000"
71
- },
72
- {
73
- "Reporting Jurisdictions": "Idaho",
74
- "Total": 930,
75
- "Category": "501 - 1,000"
76
- },
77
- {
78
- "Reporting Jurisdictions": "Illinois",
79
- "Total": 44509,
80
- "Category": "10,001 - 50,000"
81
- },
82
- {
83
- "Reporting Jurisdictions": "Indiana",
84
- "Total": null,
85
- "Category": "Not Reported"
86
- },
87
- {
88
- "Reporting Jurisdictions": "Iowa",
89
- "Total": 2141,
90
- "Category": "1,001 - 5,000"
91
- },
92
- {
93
- "Reporting Jurisdictions": "Kansas",
94
- "Total": 603,
95
- "Category": "501 - 1,000"
96
- },
97
- {
98
- "Reporting Jurisdictions": "Kentucky",
99
- "Total": 3787,
100
- "Category": "1,001 - 5,000"
101
- },
102
- {
103
- "Reporting Jurisdictions": "Louisiana",
104
- "Total": 10778,
105
- "Category": "10,001 - 50,000"
106
- },
107
- {
108
- "Reporting Jurisdictions": "Maine",
109
- "Total": 1596,
110
- "Category": "1,001 - 5,000"
111
- },
112
- {
113
- "Reporting Jurisdictions": "Mariana Islands",
114
- "Total": null,
115
- "Category": "Not Reported"
116
- },
117
- {
118
- "Reporting Jurisdictions": "Maryland",
119
- "Total": 4890,
120
- "Category": "1,001 - 5,000"
121
- },
122
- {
123
- "Reporting Jurisdictions": "Massachusetts",
124
- "Total": 22746,
125
- "Category": "10,001 - 50,000"
126
- },
127
- {
128
- "Reporting Jurisdictions": "Michigan",
129
- "Total": 7202,
130
- "Category": "5,001 - 10,000"
131
- },
132
- {
133
- "Reporting Jurisdictions": "Minnesota",
134
- "Total": 5221,
135
- "Category": "5,001 - 10,000"
136
- },
137
- {
138
- "Reporting Jurisdictions": "Mississippi",
139
- "Total": null,
140
- "Category": "Not Reported"
141
- },
142
- {
143
- "Reporting Jurisdictions": "Missouri",
144
- "Total": 1811,
145
- "Category": "1,001 - 5,000"
146
- },
147
- {
148
- "Reporting Jurisdictions": "Montana",
149
- "Total": null,
150
- "Category": "Not Reported"
151
- },
152
- {
153
- "Reporting Jurisdictions": "Nebraska",
154
- "Total": null,
155
- "Category": "Not Reported"
156
- },
157
- {
158
- "Reporting Jurisdictions": "Nevada",
159
- "Total": 10743,
160
- "Category": "10,001 - 50,000"
161
- },
162
- {
163
- "Reporting Jurisdictions": "New Hampshire",
164
- "Total": 295,
165
- "Category": "1 - 500"
166
- },
167
- {
168
- "Reporting Jurisdictions": "New Jersey",
169
- "Total": 13531,
170
- "Category": "10,001 - 50,000"
171
- },
172
- {
173
- "Reporting Jurisdictions": "New Mexico",
174
- "Total": 2080,
175
- "Category": "1,001 - 5,000"
176
- },
177
- {
178
- "Reporting Jurisdictions": "New York",
179
- "Total": 19881,
180
- "Category": "10,001 - 50,000"
181
- },
182
- {
183
- "Reporting Jurisdictions": "New York City",
184
- "Total": 100116,
185
- "Category": "> 50,000"
186
- },
187
- {
188
- "Reporting Jurisdictions": "North Carolina",
189
- "Total": 14648,
190
- "Category": "10,001 - 50,000"
191
- },
192
- {
193
- "Reporting Jurisdictions": "North Dakota",
194
- "Total": 494,
195
- "Category": "1 - 500"
196
- },
197
- {
198
- "Reporting Jurisdictions": "Ohio",
199
- "Total": 9275,
200
- "Category": "5,001 - 10,000"
201
- },
202
- {
203
- "Reporting Jurisdictions": "Oklahoma",
204
- "Total": 1526,
205
- "Category": "1,001 - 5,000"
206
- },
207
- {
208
- "Reporting Jurisdictions": "Oregon",
209
- "Total": 9940,
210
- "Category": "5,001 - 10,000"
211
- },
212
- {
213
- "Reporting Jurisdictions": "Pennsylvania",
214
- "Total": 8186,
215
- "Category": "5,001 - 10,000"
216
- },
217
- {
218
- "Reporting Jurisdictions": "Philadelphia",
219
- "Total": 6884,
220
- "Category": "5,001 - 10,000"
221
- },
222
- {
223
- "Reporting Jurisdictions": "Puerto Rico",
224
- "Total": null,
225
- "Category": "Not Reported"
226
- },
227
- {
228
- "Reporting Jurisdictions": "Rhode Island",
229
- "Total": 3374,
230
- "Category": "1,001 - 5,000"
231
- },
232
- {
233
- "Reporting Jurisdictions": "South Carolina",
234
- "Total": 1920,
235
- "Category": "1,001 - 5,000"
236
- },
237
- {
238
- "Reporting Jurisdictions": "South Dakota",
239
- "Total": 184,
240
- "Category": "1 - 500"
241
- },
242
- {
243
- "Reporting Jurisdictions": "Tennessee",
244
- "Total": 3957,
245
- "Category": "1,001 - 5,000"
246
- },
247
- {
248
- "Reporting Jurisdictions": "Texas",
249
- "Total": 23419,
250
- "Category": "10,001 - 50,000"
251
- },
252
- {
253
- "Reporting Jurisdictions": "U.S. Virgin Islands",
254
- "Total": 41,
255
- "Category": "1 - 500"
256
- },
257
- {
258
- "Reporting Jurisdictions": "Utah",
259
- "Total": 5048,
260
- "Category": "5,001 - 10,000"
261
- },
262
- {
263
- "Reporting Jurisdictions": "Vermont",
264
- "Total": 306,
265
- "Category": "1 - 500"
266
- },
267
- {
268
- "Reporting Jurisdictions": "Virginia",
269
- "Total": 11492,
270
- "Category": "10,001 - 50,000"
271
- },
272
- {
273
- "Reporting Jurisdictions": "Washington",
274
- "Total": 17624,
275
- "Category": "10,001 - 50,000"
276
- },
277
- {
278
- "Reporting Jurisdictions": "West Virginia",
279
- "Total": 222,
280
- "Category": "1 - 500"
281
- },
282
- {
283
- "Reporting Jurisdictions": "Wisconsin",
284
- "Total": 3815,
285
- "Category": "1,001 - 5,000"
286
- },
287
- {
288
- "Reporting Jurisdictions": "Wyoming",
289
- "Total": 198,
290
- "Category": "1 - 500"
291
- }
292
- ]
2
+ {
3
+ "Reporting Jurisdictions": "Alabama",
4
+ "Total": 939,
5
+ "Category": "501 - 1,000"
6
+ },
7
+ {
8
+ "Reporting Jurisdictions": "Alaska",
9
+ "Total": 506,
10
+ "Category": "501 - 1,000"
11
+ },
12
+ {
13
+ "Reporting Jurisdictions": "American Samoa",
14
+ "Total": null,
15
+ "Category": "Not Reported"
16
+ },
17
+ {
18
+ "Reporting Jurisdictions": "Arizona",
19
+ "Total": null,
20
+ "Category": "Not Reported"
21
+ },
22
+ {
23
+ "Reporting Jurisdictions": "Arkansas",
24
+ "Total": 833,
25
+ "Category": "501 - 1,000"
26
+ },
27
+ {
28
+ "Reporting Jurisdictions": "California",
29
+ "Total": 181537,
30
+ "Category": "> 50,000"
31
+ },
32
+ {
33
+ "Reporting Jurisdictions": "Colorado",
34
+ "Total": 14835,
35
+ "Category": "10,001 - 50,000"
36
+ },
37
+ {
38
+ "Reporting Jurisdictions": "Connecticut",
39
+ "Total": 5740,
40
+ "Category": "5,001 - 10,000"
41
+ },
42
+ {
43
+ "Reporting Jurisdictions": "Delaware",
44
+ "Total": 1292,
45
+ "Category": "1,001 - 5,000"
46
+ },
47
+ {
48
+ "Reporting Jurisdictions": "District of Columbia",
49
+ "Total": null,
50
+ "Category": "Not Reported"
51
+ },
52
+ {
53
+ "Reporting Jurisdictions": "Florida",
54
+ "Total": 65398,
55
+ "Category": "> 50,000"
56
+ },
57
+ {
58
+ "Reporting Jurisdictions": "Georgia",
59
+ "Total": 35688,
60
+ "Category": "10,001 - 50,000"
61
+ },
62
+ {
63
+ "Reporting Jurisdictions": "Guam",
64
+ "Total": null,
65
+ "Category": "Not Reported"
66
+ },
67
+ {
68
+ "Reporting Jurisdictions": "Hawaii",
69
+ "Total": 2799,
70
+ "Category": "1,001 - 5,000"
71
+ },
72
+ {
73
+ "Reporting Jurisdictions": "Idaho",
74
+ "Total": 930,
75
+ "Category": "501 - 1,000"
76
+ },
77
+ {
78
+ "Reporting Jurisdictions": "Illinois",
79
+ "Total": 44509,
80
+ "Category": "10,001 - 50,000"
81
+ },
82
+ {
83
+ "Reporting Jurisdictions": "Indiana",
84
+ "Total": null,
85
+ "Category": "Not Reported"
86
+ },
87
+ {
88
+ "Reporting Jurisdictions": "Iowa",
89
+ "Total": 2141,
90
+ "Category": "1,001 - 5,000"
91
+ },
92
+ {
93
+ "Reporting Jurisdictions": "Kansas",
94
+ "Total": 603,
95
+ "Category": "501 - 1,000"
96
+ },
97
+ {
98
+ "Reporting Jurisdictions": "Kentucky",
99
+ "Total": 3787,
100
+ "Category": "1,001 - 5,000"
101
+ },
102
+ {
103
+ "Reporting Jurisdictions": "Louisiana",
104
+ "Total": 10778,
105
+ "Category": "10,001 - 50,000"
106
+ },
107
+ {
108
+ "Reporting Jurisdictions": "Maine",
109
+ "Total": 1596,
110
+ "Category": "1,001 - 5,000"
111
+ },
112
+ {
113
+ "Reporting Jurisdictions": "Mariana Islands",
114
+ "Total": null,
115
+ "Category": "Not Reported"
116
+ },
117
+ {
118
+ "Reporting Jurisdictions": "Maryland",
119
+ "Total": 4890,
120
+ "Category": "1,001 - 5,000"
121
+ },
122
+ {
123
+ "Reporting Jurisdictions": "Massachusetts",
124
+ "Total": 22746,
125
+ "Category": "10,001 - 50,000"
126
+ },
127
+ {
128
+ "Reporting Jurisdictions": "Michigan",
129
+ "Total": 7202,
130
+ "Category": "5,001 - 10,000"
131
+ },
132
+ {
133
+ "Reporting Jurisdictions": "Minnesota",
134
+ "Total": 5221,
135
+ "Category": "5,001 - 10,000"
136
+ },
137
+ {
138
+ "Reporting Jurisdictions": "Mississippi",
139
+ "Total": null,
140
+ "Category": "Not Reported"
141
+ },
142
+ {
143
+ "Reporting Jurisdictions": "Missouri",
144
+ "Total": 1811,
145
+ "Category": "1,001 - 5,000"
146
+ },
147
+ {
148
+ "Reporting Jurisdictions": "Montana",
149
+ "Total": null,
150
+ "Category": "Not Reported"
151
+ },
152
+ {
153
+ "Reporting Jurisdictions": "Nebraska",
154
+ "Total": null,
155
+ "Category": "Not Reported"
156
+ },
157
+ {
158
+ "Reporting Jurisdictions": "Nevada",
159
+ "Total": 10743,
160
+ "Category": "10,001 - 50,000"
161
+ },
162
+ {
163
+ "Reporting Jurisdictions": "New Hampshire",
164
+ "Total": 295,
165
+ "Category": "1 - 500"
166
+ },
167
+ {
168
+ "Reporting Jurisdictions": "New Jersey",
169
+ "Total": 13531,
170
+ "Category": "10,001 - 50,000"
171
+ },
172
+ {
173
+ "Reporting Jurisdictions": "New Mexico",
174
+ "Total": 2080,
175
+ "Category": "1,001 - 5,000"
176
+ },
177
+ {
178
+ "Reporting Jurisdictions": "New York",
179
+ "Total": 19881,
180
+ "Category": "10,001 - 50,000"
181
+ },
182
+ {
183
+ "Reporting Jurisdictions": "New York City",
184
+ "Total": 100116,
185
+ "Category": "> 50,000"
186
+ },
187
+ {
188
+ "Reporting Jurisdictions": "North Carolina",
189
+ "Total": 14648,
190
+ "Category": "10,001 - 50,000"
191
+ },
192
+ {
193
+ "Reporting Jurisdictions": "North Dakota",
194
+ "Total": 494,
195
+ "Category": "1 - 500"
196
+ },
197
+ {
198
+ "Reporting Jurisdictions": "Ohio",
199
+ "Total": 9275,
200
+ "Category": "5,001 - 10,000"
201
+ },
202
+ {
203
+ "Reporting Jurisdictions": "Oklahoma",
204
+ "Total": 1526,
205
+ "Category": "1,001 - 5,000"
206
+ },
207
+ {
208
+ "Reporting Jurisdictions": "Oregon",
209
+ "Total": 9940,
210
+ "Category": "5,001 - 10,000"
211
+ },
212
+ {
213
+ "Reporting Jurisdictions": "Pennsylvania",
214
+ "Total": 8186,
215
+ "Category": "5,001 - 10,000"
216
+ },
217
+ {
218
+ "Reporting Jurisdictions": "Philadelphia",
219
+ "Total": 6884,
220
+ "Category": "5,001 - 10,000"
221
+ },
222
+ {
223
+ "Reporting Jurisdictions": "Puerto Rico",
224
+ "Total": null,
225
+ "Category": "Not Reported"
226
+ },
227
+ {
228
+ "Reporting Jurisdictions": "Rhode Island",
229
+ "Total": 3374,
230
+ "Category": "1,001 - 5,000"
231
+ },
232
+ {
233
+ "Reporting Jurisdictions": "South Carolina",
234
+ "Total": 1920,
235
+ "Category": "1,001 - 5,000"
236
+ },
237
+ {
238
+ "Reporting Jurisdictions": "South Dakota",
239
+ "Total": 184,
240
+ "Category": "1 - 500"
241
+ },
242
+ {
243
+ "Reporting Jurisdictions": "Tennessee",
244
+ "Total": 3957,
245
+ "Category": "1,001 - 5,000"
246
+ },
247
+ {
248
+ "Reporting Jurisdictions": "Texas",
249
+ "Total": 23419,
250
+ "Category": "10,001 - 50,000"
251
+ },
252
+ {
253
+ "Reporting Jurisdictions": "U.S. Virgin Islands",
254
+ "Total": 41,
255
+ "Category": "1 - 500"
256
+ },
257
+ {
258
+ "Reporting Jurisdictions": "Utah",
259
+ "Total": 5048,
260
+ "Category": "5,001 - 10,000"
261
+ },
262
+ {
263
+ "Reporting Jurisdictions": "Vermont",
264
+ "Total": 306,
265
+ "Category": "1 - 500"
266
+ },
267
+ {
268
+ "Reporting Jurisdictions": "Virginia",
269
+ "Total": 11492,
270
+ "Category": "10,001 - 50,000"
271
+ },
272
+ {
273
+ "Reporting Jurisdictions": "Washington",
274
+ "Total": 17624,
275
+ "Category": "10,001 - 50,000"
276
+ },
277
+ {
278
+ "Reporting Jurisdictions": "West Virginia",
279
+ "Total": 222,
280
+ "Category": "1 - 500"
281
+ },
282
+ {
283
+ "Reporting Jurisdictions": "Wisconsin",
284
+ "Total": 3815,
285
+ "Category": "1,001 - 5,000"
286
+ },
287
+ {
288
+ "Reporting Jurisdictions": "Wyoming",
289
+ "Total": 198,
290
+ "Category": "1 - 500"
291
+ }
292
+ ]