@cdc/map 2.6.3 → 9.22.9

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 (73) hide show
  1. package/dist/cdcmap.js +32 -18
  2. package/examples/bubble-us.json +363 -0
  3. package/examples/bubble-world.json +427 -0
  4. package/examples/default-county.json +64 -12
  5. package/examples/default-hex.json +477 -0
  6. package/examples/default-usa-regions.json +118 -0
  7. package/examples/default-usa.json +1 -1
  8. package/examples/default-world-data.json +1450 -0
  9. package/examples/default-world.json +5 -3
  10. package/examples/example-city-state.json +46 -1
  11. package/examples/gallery/categorical-qualitative.json +797 -0
  12. package/examples/gallery/categorical-scale-based.json +739 -0
  13. package/examples/gallery/city-state.json +479 -0
  14. package/examples/gallery/county.json +22731 -0
  15. package/examples/gallery/equal-interval.json +1027 -0
  16. package/examples/gallery/equal-number.json +1027 -0
  17. package/examples/gallery/filterable.json +909 -0
  18. package/examples/gallery/hex-filtered.json +420 -0
  19. package/examples/gallery/hex.json +413 -0
  20. package/examples/gallery/single-state.json +21402 -0
  21. package/examples/gallery/world.json +1592 -0
  22. package/examples/private/atsdr.json +439 -0
  23. package/examples/private/atsdr_new.json +436 -0
  24. package/examples/private/bubble.json +285 -0
  25. package/examples/private/city-state.json +428 -0
  26. package/examples/private/cty-issue.json +42768 -0
  27. package/examples/private/default-usa.json +460 -0
  28. package/examples/private/default-world-data.json +1444 -0
  29. package/examples/private/default.json +968 -0
  30. package/examples/private/legend-issue.json +1 -0
  31. package/examples/private/map-rounding-error.json +42759 -0
  32. package/examples/private/map.csv +60 -0
  33. package/examples/private/mdx.json +210 -0
  34. package/examples/private/monkeypox.json +376 -0
  35. package/examples/private/regions.json +52 -0
  36. package/examples/private/valid-data-map.csv +59 -0
  37. package/examples/private/wcmsrd-13881-data.json +2858 -0
  38. package/examples/private/wcmsrd-13881.json +5823 -0
  39. package/examples/private/wcmsrd-14492-data.json +292 -0
  40. package/examples/private/wcmsrd-14492.json +114 -0
  41. package/examples/private/wcmsrd-test.json +268 -0
  42. package/examples/private/world.json +1580 -0
  43. package/examples/private/worldmap.json +1490 -0
  44. package/package.json +51 -50
  45. package/src/CdcMap.js +496 -158
  46. package/src/components/BubbleList.js +244 -0
  47. package/src/components/CityList.js +41 -5
  48. package/src/components/CountyMap.js +16 -6
  49. package/src/components/DataTable.js +25 -18
  50. package/src/components/EditorPanel.js +915 -404
  51. package/src/components/Geo.js +1 -1
  52. package/src/components/Modal.js +2 -1
  53. package/src/components/NavigationMenu.js +4 -3
  54. package/src/components/Sidebar.js +14 -19
  55. package/src/components/SingleStateMap.js +11 -5
  56. package/src/components/UsaMap.js +103 -36
  57. package/src/components/UsaRegionMap.js +320 -0
  58. package/src/components/WorldMap.js +116 -34
  59. package/src/data/country-coordinates.js +250 -0
  60. package/src/data/{dfc-map.json → county-map.json} +0 -0
  61. package/src/data/initial-state.js +20 -2
  62. package/src/data/state-coordinates.js +55 -0
  63. package/src/data/supported-geos.js +96 -15
  64. package/src/data/us-regions-topo-2.json +360525 -0
  65. package/src/data/us-regions-topo.json +37894 -0
  66. package/src/hooks/useColorPalette.ts +96 -0
  67. package/src/index.html +7 -4
  68. package/src/scss/editor-panel.scss +78 -57
  69. package/src/scss/main.scss +1 -1
  70. package/src/scss/map.scss +112 -2
  71. package/src/scss/sidebar.scss +2 -1
  72. package/src/data/color-palettes.js +0 -200
  73. package/src/images/map-folded.svg +0 -1
@@ -0,0 +1,292 @@
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
+ ]
@@ -0,0 +1,114 @@
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
+ }
@@ -0,0 +1,268 @@
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
+ }