@cdc/map 4.22.11 → 4.23.1

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 (49) hide show
  1. package/dist/495.js +3 -0
  2. package/dist/703.js +1 -0
  3. package/dist/856.js +3 -0
  4. package/dist/cdcmap.js +724 -120
  5. package/examples/bubble-us.json +362 -362
  6. package/examples/bubble-world.json +426 -426
  7. package/examples/{private/city-state2.json → city-state.json} +2 -2
  8. package/examples/example-city-state.json +202 -25
  9. package/package.json +3 -4
  10. package/src/CdcMap.js +142 -232
  11. package/src/components/BubbleList.js +2 -3
  12. package/src/components/CityList.js +1 -2
  13. package/src/components/DataTable.js +31 -3
  14. package/src/components/EditorPanel.js +73 -16
  15. package/src/components/Filters.js +114 -0
  16. package/src/components/Sidebar.js +0 -6
  17. package/src/components/UsaMap.js +4 -4
  18. package/src/context.js +5 -0
  19. package/src/data/initial-state.js +19 -15
  20. package/src/data/supported-geos.js +3201 -3175
  21. package/src/index.html +32 -28
  22. package/src/scss/datatable.scss +1 -2
  23. package/src/scss/filters.scss +42 -0
  24. package/src/scss/main.scss +4 -3
  25. package/examples/private/atsdr.json +0 -429
  26. package/examples/private/atsdr_new.json +0 -436
  27. package/examples/private/bubble.json +0 -283
  28. package/examples/private/city-state.json +0 -428
  29. package/examples/private/cty-issue.json +0 -42765
  30. package/examples/private/default-usa.json +0 -457
  31. package/examples/private/default-world-data.json +0 -1444
  32. package/examples/private/default.json +0 -968
  33. package/examples/private/diff.json +0 -226
  34. package/examples/private/filters.json +0 -1
  35. package/examples/private/legend-issue.json +0 -3271
  36. package/examples/private/map-issue.json +0 -166
  37. package/examples/private/map-rounding-error.json +0 -42756
  38. package/examples/private/map.csv +0 -60
  39. package/examples/private/mdx.json +0 -210
  40. package/examples/private/monkeypox.json +0 -376
  41. package/examples/private/regions.json +0 -52
  42. package/examples/private/valid-data-map.csv +0 -59
  43. package/examples/private/wcmsrd-13881-data.json +0 -2858
  44. package/examples/private/wcmsrd-13881.json +0 -5819
  45. package/examples/private/wcmsrd-14492-data.json +0 -292
  46. package/examples/private/wcmsrd-14492.json +0 -104
  47. package/examples/private/wcmsrd-test.json +0 -265
  48. package/examples/private/world.json +0 -1580
  49. package/examples/private/worldmap.json +0 -1490
@@ -1,166 +0,0 @@
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
- }