@cdc/map 4.22.11 → 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 (49) 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/{private/city-state2.json → city-state.json} +2 -2
  8. package/examples/example-city-state.json +202 -25
  9. package/package.json +3 -4
  10. package/src/CdcMap.js +142 -232
  11. package/src/components/BubbleList.js +2 -3
  12. package/src/components/CityList.js +1 -2
  13. package/src/components/DataTable.js +31 -3
  14. package/src/components/EditorPanel.js +73 -16
  15. package/src/components/Filters.js +114 -0
  16. package/src/components/Sidebar.js +0 -6
  17. package/src/components/UsaMap.js +4 -4
  18. package/src/context.js +5 -0
  19. package/src/data/initial-state.js +19 -15
  20. package/src/data/supported-geos.js +3201 -3175
  21. package/src/index.html +32 -28
  22. package/src/scss/datatable.scss +1 -2
  23. package/src/scss/filters.scss +42 -0
  24. package/src/scss/main.scss +4 -3
  25. package/examples/private/atsdr.json +0 -429
  26. package/examples/private/atsdr_new.json +0 -436
  27. package/examples/private/bubble.json +0 -283
  28. package/examples/private/city-state.json +0 -428
  29. package/examples/private/cty-issue.json +0 -42765
  30. package/examples/private/default-usa.json +0 -457
  31. package/examples/private/default-world-data.json +0 -1444
  32. package/examples/private/default.json +0 -968
  33. package/examples/private/diff.json +0 -226
  34. package/examples/private/filters.json +0 -1
  35. package/examples/private/legend-issue.json +0 -3271
  36. package/examples/private/map-issue.json +0 -166
  37. package/examples/private/map-rounding-error.json +0 -42756
  38. package/examples/private/map.csv +0 -60
  39. package/examples/private/mdx.json +0 -210
  40. package/examples/private/monkeypox.json +0 -376
  41. package/examples/private/regions.json +0 -52
  42. package/examples/private/valid-data-map.csv +0 -59
  43. package/examples/private/wcmsrd-13881-data.json +0 -2858
  44. package/examples/private/wcmsrd-13881.json +0 -5819
  45. package/examples/private/wcmsrd-14492-data.json +0 -292
  46. package/examples/private/wcmsrd-14492.json +0 -104
  47. package/examples/private/wcmsrd-test.json +0 -265
  48. package/examples/private/world.json +0 -1580
  49. 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,104 +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": ["1 - 500", "501 - 1,000", "1,001 - 5,000", "5,001 - 10,000", "10,001 - 50,000", "> 50,000"]
78
- },
79
- "filters": [],
80
- "dataTable": {
81
- "title": "Data Table",
82
- "forceDisplay": true
83
- },
84
- "tooltips": {
85
- "appearanceType": "hover",
86
- "linkLabel": "Learn More",
87
- "capitalizeLabels": true
88
- },
89
- "runtime": {
90
- "editorErrorMessage": []
91
- },
92
- "visual": {
93
- "cityStyle": "pin"
94
- },
95
- "mapPosition": {
96
- "coordinates": [0, 30],
97
- "zoom": 1
98
- },
99
- "dataFileName": "https://www.cdc.gov/wcms/vizdata/poxvirus/monkeypox/data/Vaccines/mpx_vaccine_Jurisdiction map.csv",
100
- "dataFileSourceType": "url",
101
- "dataUrl": "https://www.cdc.gov/wcms/vizdata/poxvirus/monkeypox/data/Vaccines/mpx_vaccine_Jurisdiction map.csv",
102
- "orientation": null,
103
- "visualizationSubType": null
104
- }
@@ -1,265 +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": [0, 30],
85
- "zoom": 1
86
- },
87
- "data": [
88
- {
89
- "STATE": "AK",
90
- "Rate": 12
91
- },
92
- {
93
- "STATE": "AL",
94
- "Rate": 10
95
- },
96
- {
97
- "STATE": "AR",
98
- "Rate": 17
99
- },
100
- {
101
- "STATE": "Atlanta",
102
- "Rate": 12
103
- },
104
- {
105
- "STATE": "Boston",
106
- "Rate": 2
107
- },
108
- {
109
- "STATE": "CO",
110
- "Rate": 22
111
- },
112
- {
113
- "STATE": "CT",
114
- "Rate": 10
115
- },
116
- {
117
- "STATE": "Dallas",
118
- "Rate": 5
119
- },
120
- {
121
- "STATE": "DE",
122
- "Rate": 12
123
- },
124
- {
125
- "STATE": "District Of Columbia",
126
- "Rate": 12
127
- },
128
- {
129
- "STATE": "FL",
130
- "Rate": 9
131
- },
132
- {
133
- "STATE": "GA",
134
- "Rate": 17
135
- },
136
- {
137
- "STATE": "GU",
138
- "Rate": 20
139
- },
140
- {
141
- "STATE": "HI",
142
- "Rate": 6
143
- },
144
- {
145
- "STATE": "LA",
146
- "Rate": 22
147
- },
148
- {
149
- "STATE": "Los Angeles",
150
- "Rate": 14
151
- },
152
- {
153
- "STATE": "MA",
154
- "Rate": 9
155
- },
156
- {
157
- "STATE": "ME",
158
- "Rate": 10
159
- },
160
- {
161
- "STATE": "MH",
162
- "Rate": 12
163
- },
164
- {
165
- "STATE": "MI",
166
- "Rate": 2
167
- },
168
- {
169
- "STATE": "MP",
170
- "Rate": 17
171
- },
172
- {
173
- "STATE": "ND",
174
- "Rate": 9
175
- },
176
- {
177
- "STATE": "New Orleans",
178
- "Rate": 14
179
- },
180
- {
181
- "STATE": "New York City",
182
- "Rate": 22
183
- },
184
- {
185
- "STATE": "NH",
186
- "Rate": 20
187
- },
188
- {
189
- "STATE": "NJ",
190
- "Rate": 30
191
- },
192
- {
193
- "STATE": "NM",
194
- "Rate": 10
195
- },
196
- {
197
- "STATE": "NV",
198
- "Rate": 4
199
- },
200
- {
201
- "STATE": "NY",
202
- "Rate": 12
203
- },
204
- {
205
- "STATE": "OH",
206
- "Rate": 8
207
- },
208
- {
209
- "STATE": "OK",
210
- "Rate": 8
211
- },
212
- {
213
- "STATE": "PA",
214
- "Rate": 14
215
- },
216
- {
217
- "STATE": "PW",
218
- "Rate": 12
219
- },
220
- {
221
- "STATE": "SD",
222
- "Rate": 5
223
- },
224
- {
225
- "STATE": "Seattle",
226
- "Rate": 17
227
- },
228
- {
229
- "STATE": "TN",
230
- "Rate": 10
231
- },
232
- {
233
- "STATE": "TX",
234
- "Rate": 12
235
- },
236
- {
237
- "STATE": "UT",
238
- "Rate": 3
239
- },
240
- {
241
- "STATE": "VI",
242
- "Rate": 17
243
- },
244
- {
245
- "STATE": "VT",
246
- "Rate": 9
247
- },
248
- {
249
- "STATE": "WI",
250
- "Rate": 12
251
- },
252
- {
253
- "STATE": "WV",
254
- "Rate": 3
255
- },
256
- {
257
- "STATE": "WY",
258
- "Rate": 14
259
- }
260
- ],
261
- "dataFileName": "Example Data Map with Cities Bubble.csv",
262
- "dataFileSourceType": "file",
263
- "orientation": null,
264
- "visualizationSubType": null
265
- }