@cdc/map 2.6.2 → 2.6.4

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 (67) hide show
  1. package/dist/cdcmap.js +37 -29
  2. package/examples/bubble-us.json +363 -0
  3. package/examples/bubble-world.json +427 -0
  4. package/examples/default-county.json +105 -0
  5. package/examples/default-hex.json +475 -0
  6. package/examples/default-single-state.json +109 -0
  7. package/examples/default-usa-regions.json +118 -0
  8. package/examples/default-usa.json +744 -603
  9. package/examples/default-world-data.json +1450 -0
  10. package/examples/default-world.json +5 -3
  11. package/examples/example-city-state.json +510 -0
  12. package/examples/example-world-map.json +1596 -0
  13. package/examples/gender-rate-map.json +1 -0
  14. package/examples/private/atsdr.json +439 -0
  15. package/examples/private/atsdr_new.json +436 -0
  16. package/examples/private/bubble.json +285 -0
  17. package/examples/private/default-world-data.json +1444 -0
  18. package/examples/private/default.json +968 -0
  19. package/examples/private/map.csv +60 -0
  20. package/examples/private/mdx.json +210 -0
  21. package/examples/private/regions.json +52 -0
  22. package/examples/private/wcmsrd-13881-data.json +2858 -0
  23. package/examples/private/wcmsrd-13881.json +5823 -0
  24. package/examples/private/wcmsrd-test.json +268 -0
  25. package/examples/private/world.json +1580 -0
  26. package/examples/private/worldmap.json +1490 -0
  27. package/package.json +11 -7
  28. package/src/CdcMap.js +726 -202
  29. package/src/components/BubbleList.js +240 -0
  30. package/src/components/CityList.js +22 -3
  31. package/src/components/CountyMap.js +557 -0
  32. package/src/components/DataTable.js +85 -24
  33. package/src/components/EditorPanel.js +2455 -1204
  34. package/src/components/Geo.js +1 -1
  35. package/src/components/Sidebar.js +5 -5
  36. package/src/components/SingleStateMap.js +326 -0
  37. package/src/components/UsaMap.js +41 -9
  38. package/src/components/UsaRegionMap.js +319 -0
  39. package/src/components/WorldMap.js +112 -35
  40. package/src/data/abbreviations.js +57 -0
  41. package/src/data/country-coordinates.js +250 -0
  42. package/src/data/county-map-halfquality.json +58453 -0
  43. package/src/data/county-map-quarterquality.json +1 -0
  44. package/src/data/county-topo.json +1 -0
  45. package/src/data/dfc-map.json +1 -0
  46. package/src/data/initial-state.js +21 -4
  47. package/src/data/newtest.json +1 -0
  48. package/src/data/state-abbreviations.js +60 -0
  49. package/src/data/state-coordinates.js +55 -0
  50. package/src/data/supported-geos.js +3592 -163
  51. package/src/data/test.json +1 -0
  52. package/src/data/us-regions-topo-2.json +360525 -0
  53. package/src/data/us-regions-topo.json +37894 -0
  54. package/src/hooks/useActiveElement.js +19 -0
  55. package/src/hooks/useColorPalette.ts +96 -0
  56. package/src/index.html +35 -20
  57. package/src/index.js +8 -4
  58. package/src/scss/datatable.scss +2 -1
  59. package/src/scss/editor-panel.scss +76 -55
  60. package/src/scss/main.scss +10 -1
  61. package/src/scss/map.scss +257 -121
  62. package/src/scss/sidebar.scss +0 -1
  63. package/uploads/upload-example-city-state.json +392 -0
  64. package/uploads/upload-example-world-data.json +1490 -0
  65. package/LICENSE +0 -201
  66. package/src/data/color-palettes.js +0 -191
  67. package/src/images/map-folded.svg +0 -1
@@ -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
+ }