@cdc/map 4.22.10-alpha.1 → 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.
- package/dist/cdcmap.js +10 -10
- package/examples/private/atsdr.json +19 -29
- package/examples/private/atsdr_new.json +1 -1
- package/examples/private/bubble.json +282 -284
- package/examples/private/city-state.json +427 -427
- package/examples/private/city-state2.json +433 -433
- package/examples/private/cty-issue.json +42765 -42768
- package/examples/private/default-usa.json +2 -5
- package/examples/private/default-world-data.json +1443 -1443
- package/examples/private/default.json +965 -965
- package/examples/private/diff.json +226 -0
- package/examples/private/filters.json +1 -0
- package/examples/private/legend-issue.json +3271 -1
- package/examples/private/map-issue.json +166 -0
- package/examples/private/map-rounding-error.json +42756 -42759
- package/examples/private/mdx.json +209 -209
- package/examples/private/monkeypox.json +375 -375
- package/examples/private/regions.json +51 -51
- package/examples/private/wcmsrd-13881-data.json +2856 -2856
- package/examples/private/wcmsrd-13881.json +5818 -5822
- package/examples/private/wcmsrd-14492-data.json +291 -291
- package/examples/private/wcmsrd-14492.json +103 -113
- package/examples/private/wcmsrd-test.json +264 -267
- package/examples/private/world.json +1579 -1579
- package/examples/private/worldmap.json +1489 -1489
- package/package.json +3 -3
- package/src/CdcMap.js +231 -315
- package/src/components/BubbleList.js +199 -240
- package/src/components/CityList.js +50 -96
- package/src/components/CountyMap.js +511 -600
- package/src/components/DataTable.js +218 -253
- package/src/components/EditorPanel.js +2338 -2551
- package/src/components/Geo.js +4 -14
- package/src/components/Modal.js +13 -23
- package/src/components/NavigationMenu.js +43 -39
- package/src/components/Sidebar.js +83 -93
- package/src/components/SingleStateMap.js +95 -151
- package/src/components/UsaMap.js +165 -214
- package/src/components/UsaRegionMap.js +122 -160
- package/src/components/WorldMap.js +96 -179
- package/src/components/ZoomableGroup.js +6 -26
- package/src/data/initial-state.js +1 -0
- package/src/hooks/useActiveElement.js +13 -13
- package/src/hooks/useColorPalette.ts +66 -74
- package/src/hooks/useZoomPan.js +22 -23
- package/src/index.html +1 -2
- package/src/scss/sidebar.scss +22 -0
|
@@ -1,114 +1,104 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
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
|
-
}
|
|
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
|
+
}
|