@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.
Files changed (47) 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 +433 -433
  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/hooks/useActiveElement.js +13 -13
  44. package/src/hooks/useColorPalette.ts +66 -74
  45. package/src/hooks/useZoomPan.js +22 -23
  46. package/src/index.html +1 -2
  47. package/src/scss/sidebar.scss +22 -0
@@ -0,0 +1,166 @@
1
+ {
2
+ "general": {
3
+ "geoType": "us-region",
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": false,
23
+ "hidePrimaryColumnInTooltip": false,
24
+ "title": "Cumulative Number of TPOXX-prescribed Patients Reported to CDC: HHS Region"
25
+ },
26
+ "type": "map",
27
+ "color": "sequential-orange(MPX)",
28
+ "columns": {
29
+ "geo": {
30
+ "name": "HHS_REGION2",
31
+ "label": "Location",
32
+ "tooltip": false,
33
+ "dataTable": true
34
+ },
35
+ "primary": {
36
+ "dataTable": false,
37
+ "tooltip": false,
38
+ "prefix": "",
39
+ "suffix": "",
40
+ "name": "FREQUENCY CATEGORIES",
41
+ "label": ""
42
+ },
43
+ "navigate": {
44
+ "name": ""
45
+ },
46
+ "additionalColumn1": {
47
+ "label": "Number of TPOXX-Prescribed Patients",
48
+ "dataTable": true,
49
+ "tooltips": false,
50
+ "prefix": "",
51
+ "suffix": "",
52
+ "name": "Number of TPOXX-prescribed Patients",
53
+ "tooltip": true,
54
+ "useCommas": true
55
+ }
56
+ },
57
+ "legend": {
58
+ "descriptions": {},
59
+ "specialClasses": [],
60
+ "unified": false,
61
+ "singleColumn": false,
62
+ "dynamicDescription": false,
63
+ "numberOfItems": 3,
64
+ "position": "bottom",
65
+ "title": "Legend",
66
+ "categoryValuesOrder": [
67
+ 0,
68
+ 401,
69
+ 201,
70
+ "601 or more"
71
+ ]
72
+ },
73
+ "filters": [],
74
+ "dataTable": {
75
+ "title": "Data Table",
76
+ "forceDisplay": true
77
+ },
78
+ "tooltips": {
79
+ "appearanceType": "hover",
80
+ "linkLabel": "Learn More",
81
+ "capitalizeLabels": true
82
+ },
83
+ "runtime": {
84
+ "editorErrorMessage": []
85
+ },
86
+ "visual": {
87
+ "minBubbleSize": 1,
88
+ "maxBubbleSize": 20,
89
+ "extraBubbleBorder": false,
90
+ "cityStyle": "circle"
91
+ },
92
+ "mapPosition": {
93
+ "coordinates": [
94
+ 0,
95
+ 30
96
+ ],
97
+ "zoom": 1
98
+ },
99
+ "data": [
100
+ {
101
+ "HHS_REGION2": "Region 1",
102
+ "Number of TPOXX-prescribed Patients": 165,
103
+ "Percent": 3.643188342,
104
+ "FREQUENCY CATEGORIES": "0-200"
105
+ },
106
+ {
107
+ "HHS_REGION2": "Region 10",
108
+ "Number of TPOXX-prescribed Patients": 128,
109
+ "Percent": 2.826230956,
110
+ "FREQUENCY CATEGORIES": "0-200"
111
+ },
112
+ {
113
+ "HHS_REGION2": "Region 7",
114
+ "Number of TPOXX-prescribed Patients": 34,
115
+ "Percent": 0.750717598,
116
+ "FREQUENCY CATEGORIES": "0-200"
117
+ },
118
+ {
119
+ "HHS_REGION2": "Region 8",
120
+ "Number of TPOXX-prescribed Patients": 85,
121
+ "Percent": 1.876793994,
122
+ "FREQUENCY CATEGORIES": "0-200"
123
+ },
124
+ {
125
+ "HHS_REGION2": "Region 6",
126
+ "Number of TPOXX-prescribed Patients": 302,
127
+ "Percent": 6.668138662,
128
+ "FREQUENCY CATEGORIES": "201-400"
129
+ },
130
+ {
131
+ "HHS_REGION2": "Region 3",
132
+ "Number of TPOXX-prescribed Patients": 471,
133
+ "Percent": 10.39964672,
134
+ "FREQUENCY CATEGORIES": "401-600"
135
+ },
136
+ {
137
+ "HHS_REGION2": "Region 5",
138
+ "Number of TPOXX-prescribed Patients": 403,
139
+ "Percent": 8.898211526,
140
+ "FREQUENCY CATEGORIES": "401-600"
141
+ },
142
+ {
143
+ "HHS_REGION2": "Region 9",
144
+ "Number of TPOXX-prescribed Patients": 1157,
145
+ "Percent": 25.54647825,
146
+ "FREQUENCY CATEGORIES": "601 or more"
147
+ },
148
+ {
149
+ "HHS_REGION2": "Region 2",
150
+ "Number of TPOXX-prescribed Patients": 920,
151
+ "Percent": 20.313535,
152
+ "FREQUENCY CATEGORIES": "601 or more"
153
+ },
154
+ {
155
+ "HHS_REGION2": "Region 4",
156
+ "Number of TPOXX-prescribed Patients": 864,
157
+ "Percent": 19.07705895,
158
+ "FREQUENCY CATEGORIES": "601 or more"
159
+ }
160
+ ],
161
+ "dataFileName": "https://wwwdev.cdc.gov/poxvirus/monkeypox/data/TPOXX-Demographics/tpoxx_hhs_region.csv",
162
+ "dataFileSourceType": "url",
163
+ "dataUrl": "/example/private/map-issue.csv",
164
+ "orientation": null,
165
+ "visualizationSubType": null
166
+ }