@cdc/map 4.22.10 → 4.23.1

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 (58) hide show
  1. package/dist/495.js +3 -0
  2. package/dist/703.js +1 -0
  3. package/dist/856.js +3 -0
  4. package/dist/cdcmap.js +724 -120
  5. package/examples/bubble-us.json +362 -362
  6. package/examples/bubble-world.json +426 -426
  7. package/examples/city-state.json +434 -0
  8. package/examples/example-city-state.json +202 -25
  9. package/package.json +3 -4
  10. package/src/CdcMap.js +249 -423
  11. package/src/components/BubbleList.js +198 -240
  12. package/src/components/CityList.js +50 -97
  13. package/src/components/CountyMap.js +511 -600
  14. package/src/components/DataTable.js +223 -230
  15. package/src/components/EditorPanel.js +2395 -2551
  16. package/src/components/Filters.js +114 -0
  17. package/src/components/Geo.js +4 -14
  18. package/src/components/Modal.js +13 -23
  19. package/src/components/NavigationMenu.js +43 -39
  20. package/src/components/Sidebar.js +77 -93
  21. package/src/components/SingleStateMap.js +95 -151
  22. package/src/components/UsaMap.js +165 -214
  23. package/src/components/UsaRegionMap.js +122 -160
  24. package/src/components/WorldMap.js +96 -179
  25. package/src/components/ZoomableGroup.js +6 -26
  26. package/src/context.js +5 -0
  27. package/src/data/initial-state.js +20 -15
  28. package/src/data/supported-geos.js +3201 -3175
  29. package/src/hooks/useActiveElement.js +13 -13
  30. package/src/hooks/useColorPalette.ts +66 -74
  31. package/src/hooks/useZoomPan.js +22 -23
  32. package/src/index.html +32 -29
  33. package/src/scss/datatable.scss +1 -2
  34. package/src/scss/filters.scss +42 -0
  35. package/src/scss/main.scss +4 -3
  36. package/src/scss/sidebar.scss +22 -0
  37. package/examples/private/atsdr.json +0 -439
  38. package/examples/private/atsdr_new.json +0 -436
  39. package/examples/private/bubble.json +0 -285
  40. package/examples/private/city-state.json +0 -428
  41. package/examples/private/cty-issue.json +0 -42768
  42. package/examples/private/default-usa.json +0 -460
  43. package/examples/private/default-world-data.json +0 -1444
  44. package/examples/private/default.json +0 -968
  45. package/examples/private/legend-issue.json +0 -1
  46. package/examples/private/map-rounding-error.json +0 -42759
  47. package/examples/private/map.csv +0 -60
  48. package/examples/private/mdx.json +0 -210
  49. package/examples/private/monkeypox.json +0 -376
  50. package/examples/private/regions.json +0 -52
  51. package/examples/private/valid-data-map.csv +0 -59
  52. package/examples/private/wcmsrd-13881-data.json +0 -2858
  53. package/examples/private/wcmsrd-13881.json +0 -5823
  54. package/examples/private/wcmsrd-14492-data.json +0 -292
  55. package/examples/private/wcmsrd-14492.json +0 -114
  56. package/examples/private/wcmsrd-test.json +0 -268
  57. package/examples/private/world.json +0 -1580
  58. package/examples/private/worldmap.json +0 -1490
@@ -1,292 +0,0 @@
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
- ]
@@ -1,114 +0,0 @@
1
- {
2
- "general": {
3
- "geoType": "us",
4
- "geoBorderColor": "darkGray",
5
- "headerColor": "theme-blue",
6
- "showTitle": true,
7
- "showSidebar": true,
8
- "showDownloadButton": true,
9
- "showDownloadMediaButton": false,
10
- "displayAsHex": false,
11
- "displayStateLabels": false,
12
- "territoriesLabel": "Territories",
13
- "language": "en",
14
- "hasRegions": false,
15
- "expandDataTable": false,
16
- "fullBorder": false,
17
- "type": "data",
18
- "palette": {
19
- "isReversed": false
20
- },
21
- "allowMapZoom": true,
22
- "hideGeoColumnInTooltip": true,
23
- "hidePrimaryColumnInTooltip": false,
24
- "title": "Total Vaccine Doses Administered and Reported to CDC",
25
- "statePicked": {
26
- "fipsCode": "01",
27
- "stateName": "Alabama"
28
- }
29
- },
30
- "type": "map",
31
- "color": "sequential-blue-2(MPX)",
32
- "columns": {
33
- "geo": {
34
- "name": "Reporting Jurisdictions",
35
- "label": "Location",
36
- "tooltip": false,
37
- "dataTable": true
38
- },
39
- "primary": {
40
- "dataTable": false,
41
- "tooltip": false,
42
- "prefix": "",
43
- "suffix": "",
44
- "name": "Category",
45
- "label": "Vaccine Distribution"
46
- },
47
- "navigate": {
48
- "name": ""
49
- },
50
- "additionalColumn1": {
51
- "label": "Vaccine Doses",
52
- "dataTable": true,
53
- "tooltips": false,
54
- "prefix": "",
55
- "suffix": "",
56
- "name": "Total",
57
- "tooltip": true,
58
- "useCommas": true
59
- }
60
- },
61
- "legend": {
62
- "descriptions": {},
63
- "specialClasses": [
64
- {
65
- "key": "Category",
66
- "value": "Not Reported",
67
- "label": "Data not yet reported to CDC"
68
- }
69
- ],
70
- "unified": false,
71
- "singleColumn": false,
72
- "dynamicDescription": false,
73
- "type": "category",
74
- "numberOfItems": 3,
75
- "position": "bottom",
76
- "title": "Doses Administered",
77
- "categoryValuesOrder": [
78
- "1 - 500",
79
- "501 - 1,000",
80
- "1,001 - 5,000",
81
- "5,001 - 10,000",
82
- "10,001 - 50,000",
83
- "> 50,000"
84
- ]
85
- },
86
- "filters": [],
87
- "dataTable": {
88
- "title": "Data Table",
89
- "forceDisplay": true
90
- },
91
- "tooltips": {
92
- "appearanceType": "hover",
93
- "linkLabel": "Learn More",
94
- "capitalizeLabels": true
95
- },
96
- "runtime": {
97
- "editorErrorMessage": []
98
- },
99
- "visual": {
100
- "cityStyle": "pin"
101
- },
102
- "mapPosition": {
103
- "coordinates": [
104
- 0,
105
- 30
106
- ],
107
- "zoom": 1
108
- },
109
- "dataFileName": "https://www.cdc.gov/wcms/vizdata/poxvirus/monkeypox/data/Vaccines/mpx_vaccine_Jurisdiction map.csv",
110
- "dataFileSourceType": "url",
111
- "dataUrl": "https://www.cdc.gov/wcms/vizdata/poxvirus/monkeypox/data/Vaccines/mpx_vaccine_Jurisdiction map.csv",
112
- "orientation": null,
113
- "visualizationSubType": null
114
- }
@@ -1,268 +0,0 @@
1
- {
2
- "general": {
3
- "geoType": "us",
4
- "geoBorderColor": "darkGray",
5
- "headerColor": "theme-blue",
6
- "showTitle": true,
7
- "showSidebar": false,
8
- "showDownloadButton": true,
9
- "showDownloadMediaButton": false,
10
- "displayAsHex": false,
11
- "displayStateLabels": false,
12
- "territoriesLabel": "Territories",
13
- "language": "en",
14
- "hasRegions": false,
15
- "expandDataTable": true,
16
- "fullBorder": false,
17
- "type": "bubble",
18
- "palette": {
19
- "isReversed": false
20
- },
21
- "allowMapZoom": true,
22
- "statePicked": {
23
- "fipsCode": "01",
24
- "stateName": "Alabama"
25
- }
26
- },
27
- "type": "map",
28
- "color": "pinkpurple",
29
- "columns": {
30
- "geo": {
31
- "name": "STATE",
32
- "label": "Location",
33
- "tooltip": false,
34
- "dataTable": true
35
- },
36
- "primary": {
37
- "dataTable": true,
38
- "tooltip": true,
39
- "prefix": "",
40
- "suffix": "",
41
- "name": "Rate",
42
- "label": ""
43
- },
44
- "navigate": {
45
- "name": ""
46
- }
47
- },
48
- "legend": {
49
- "descriptions": {},
50
- "specialClasses": [
51
- {
52
- "key": "Rate",
53
- "value": "*",
54
- "label": "no data"
55
- }
56
- ],
57
- "unified": false,
58
- "singleColumn": false,
59
- "dynamicDescription": false,
60
- "type": "equalnumber",
61
- "numberOfItems": 3,
62
- "position": "side",
63
- "title": "Legend"
64
- },
65
- "filters": [],
66
- "dataTable": {
67
- "title": "Data Table",
68
- "forceDisplay": true
69
- },
70
- "tooltips": {
71
- "appearanceType": "hover",
72
- "linkLabel": "Learn More",
73
- "capitalizeLabels": true
74
- },
75
- "runtime": {
76
- "editorErrorMessage": []
77
- },
78
- "visual": {
79
- "minBubbleSize": 1,
80
- "maxBubbleSize": "29",
81
- "extraBubbleBorder": true
82
- },
83
- "mapPosition": {
84
- "coordinates": [
85
- 0,
86
- 30
87
- ],
88
- "zoom": 1
89
- },
90
- "data": [
91
- {
92
- "STATE": "AK",
93
- "Rate": 12
94
- },
95
- {
96
- "STATE": "AL",
97
- "Rate": 10
98
- },
99
- {
100
- "STATE": "AR",
101
- "Rate": 17
102
- },
103
- {
104
- "STATE": "Atlanta",
105
- "Rate": 12
106
- },
107
- {
108
- "STATE": "Boston",
109
- "Rate": 2
110
- },
111
- {
112
- "STATE": "CO",
113
- "Rate": 22
114
- },
115
- {
116
- "STATE": "CT",
117
- "Rate": 10
118
- },
119
- {
120
- "STATE": "Dallas",
121
- "Rate": 5
122
- },
123
- {
124
- "STATE": "DE",
125
- "Rate": 12
126
- },
127
- {
128
- "STATE": "District Of Columbia",
129
- "Rate": 12
130
- },
131
- {
132
- "STATE": "FL",
133
- "Rate": 9
134
- },
135
- {
136
- "STATE": "GA",
137
- "Rate": 17
138
- },
139
- {
140
- "STATE": "GU",
141
- "Rate": 20
142
- },
143
- {
144
- "STATE": "HI",
145
- "Rate": 6
146
- },
147
- {
148
- "STATE": "LA",
149
- "Rate": 22
150
- },
151
- {
152
- "STATE": "Los Angeles",
153
- "Rate": 14
154
- },
155
- {
156
- "STATE": "MA",
157
- "Rate": 9
158
- },
159
- {
160
- "STATE": "ME",
161
- "Rate": 10
162
- },
163
- {
164
- "STATE": "MH",
165
- "Rate": 12
166
- },
167
- {
168
- "STATE": "MI",
169
- "Rate": 2
170
- },
171
- {
172
- "STATE": "MP",
173
- "Rate": 17
174
- },
175
- {
176
- "STATE": "ND",
177
- "Rate": 9
178
- },
179
- {
180
- "STATE": "New Orleans",
181
- "Rate": 14
182
- },
183
- {
184
- "STATE": "New York City",
185
- "Rate": 22
186
- },
187
- {
188
- "STATE": "NH",
189
- "Rate": 20
190
- },
191
- {
192
- "STATE": "NJ",
193
- "Rate": 30
194
- },
195
- {
196
- "STATE": "NM",
197
- "Rate": 10
198
- },
199
- {
200
- "STATE": "NV",
201
- "Rate": 4
202
- },
203
- {
204
- "STATE": "NY",
205
- "Rate": 12
206
- },
207
- {
208
- "STATE": "OH",
209
- "Rate": 8
210
- },
211
- {
212
- "STATE": "OK",
213
- "Rate": 8
214
- },
215
- {
216
- "STATE": "PA",
217
- "Rate": 14
218
- },
219
- {
220
- "STATE": "PW",
221
- "Rate": 12
222
- },
223
- {
224
- "STATE": "SD",
225
- "Rate": 5
226
- },
227
- {
228
- "STATE": "Seattle",
229
- "Rate": 17
230
- },
231
- {
232
- "STATE": "TN",
233
- "Rate": 10
234
- },
235
- {
236
- "STATE": "TX",
237
- "Rate": 12
238
- },
239
- {
240
- "STATE": "UT",
241
- "Rate": 3
242
- },
243
- {
244
- "STATE": "VI",
245
- "Rate": 17
246
- },
247
- {
248
- "STATE": "VT",
249
- "Rate": 9
250
- },
251
- {
252
- "STATE": "WI",
253
- "Rate": 12
254
- },
255
- {
256
- "STATE": "WV",
257
- "Rate": 3
258
- },
259
- {
260
- "STATE": "WY",
261
- "Rate": 14
262
- }
263
- ],
264
- "dataFileName": "Example Data Map with Cities Bubble.csv",
265
- "dataFileSourceType": "file",
266
- "orientation": null,
267
- "visualizationSubType": null
268
- }