@cdc/map 4.22.10 → 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 (48) 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 +434 -0
  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/data/supported-geos.js +1 -1
  44. package/src/hooks/useActiveElement.js +13 -13
  45. package/src/hooks/useColorPalette.ts +66 -74
  46. package/src/hooks/useZoomPan.js +22 -23
  47. package/src/index.html +1 -2
  48. package/src/scss/sidebar.scss +22 -0
@@ -1,268 +1,265 @@
1
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
- }
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
+ }