@cdc/map 2.6.4 → 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 (46) hide show
  1. package/dist/cdcmap.js +22 -16
  2. package/examples/default-county.json +64 -12
  3. package/examples/default-hex.json +3 -1
  4. package/examples/example-city-state.json +10 -1
  5. package/examples/gallery/categorical-qualitative.json +797 -0
  6. package/examples/gallery/categorical-scale-based.json +739 -0
  7. package/examples/gallery/city-state.json +479 -0
  8. package/examples/gallery/county.json +22731 -0
  9. package/examples/gallery/equal-interval.json +1027 -0
  10. package/examples/gallery/equal-number.json +1027 -0
  11. package/examples/gallery/filterable.json +909 -0
  12. package/examples/gallery/hex-filtered.json +420 -0
  13. package/examples/gallery/hex.json +413 -0
  14. package/examples/gallery/single-state.json +21402 -0
  15. package/examples/gallery/world.json +1592 -0
  16. package/examples/private/city-state.json +428 -0
  17. package/examples/private/cty-issue.json +42768 -0
  18. package/examples/private/default-usa.json +460 -0
  19. package/examples/private/legend-issue.json +1 -0
  20. package/examples/private/map-rounding-error.json +42759 -0
  21. package/examples/private/monkeypox.json +376 -0
  22. package/examples/private/valid-data-map.csv +59 -0
  23. package/examples/private/wcmsrd-14492-data.json +292 -0
  24. package/examples/private/wcmsrd-14492.json +114 -0
  25. package/package.json +3 -3
  26. package/src/CdcMap.js +204 -127
  27. package/src/components/BubbleList.js +9 -5
  28. package/src/components/CityList.js +22 -4
  29. package/src/components/CountyMap.js +13 -4
  30. package/src/components/DataTable.js +9 -9
  31. package/src/components/EditorPanel.js +239 -121
  32. package/src/components/Modal.js +2 -1
  33. package/src/components/NavigationMenu.js +4 -3
  34. package/src/components/Sidebar.js +14 -19
  35. package/src/components/SingleStateMap.js +10 -4
  36. package/src/components/UsaMap.js +82 -30
  37. package/src/components/UsaRegionMap.js +3 -2
  38. package/src/components/WorldMap.js +7 -2
  39. package/src/data/{dfc-map.json → county-map.json} +0 -0
  40. package/src/data/initial-state.js +2 -1
  41. package/src/data/supported-geos.js +5 -0
  42. package/src/index.html +3 -8
  43. package/src/scss/editor-panel.scss +2 -2
  44. package/src/scss/main.scss +1 -1
  45. package/src/scss/map.scss +4 -0
  46. package/src/scss/sidebar.scss +2 -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
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cdc/map",
3
- "version": "2.6.4",
3
+ "version": "9.22.9",
4
4
  "description": "React component for visualizing tabular data on a map of the United States or the world.",
5
5
  "main": "dist/cdcmap",
6
6
  "scripts": {
@@ -20,7 +20,7 @@
20
20
  "license": "Apache-2.0",
21
21
  "dependencies": {
22
22
  "@babel/runtime": "^7.12.5",
23
- "@cdc/core": "^1.1.4",
23
+ "@cdc/core": "^9.22.9",
24
24
  "@emotion/core": "^10.0.28",
25
25
  "@emotion/react": "^11.1.5",
26
26
  "@visx/geo": "^1.13.0",
@@ -49,5 +49,5 @@
49
49
  "resolutions": {
50
50
  "@types/react": "17.x"
51
51
  },
52
- "gitHead": "ff89a7aea74c533413c62ef8859cc011e6b3cbfa"
52
+ "gitHead": "90faf22c91ca0062432607e4599598f9e67c848a"
53
53
  }