@cdc/dashboard 4.25.7-2 → 4.25.8
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/cdcdashboard.js +36373 -35957
- package/examples/no-data-markup.json +206 -0
- package/examples/private/DEV-11072.json +7591 -0
- package/examples/private/brfs.json +2174 -0
- package/examples/private/example-1.json +1553 -0
- package/examples/private/filters.json +390 -0
- package/examples/private/footnote-issue.json +20943 -0
- package/examples/private/mv-columns.json +506 -0
- package/examples/private/oral-health.json +6171 -0
- package/examples/private/test-breaking-dash.json +942 -0
- package/examples/private/vehicle-issue.json +683 -0
- package/index.html +26 -24
- package/package.json +9 -9
- package/src/CdcDashboard.tsx +13 -3
- package/src/CdcDashboardComponent.tsx +113 -56
- package/src/DashboardContext.tsx +2 -1
- package/src/components/DashboardEditors.tsx +10 -2
- package/src/components/DashboardFilters/DashboardFiltersWrapper.tsx +54 -9
- package/src/components/VisualizationRow.tsx +25 -4
- package/src/helpers/getFilteredData.ts +49 -50
- package/src/helpers/getVizConfig.ts +32 -15
- package/src/index.tsx +1 -0
- package/src/store/dashboard.actions.ts +2 -0
- package/src/store/dashboard.reducer.ts +4 -0
- package/src/types/ConfigRow.ts +1 -0
- package/src/types/InitialState.ts +1 -0
|
@@ -0,0 +1,390 @@
|
|
|
1
|
+
{
|
|
2
|
+
"dashboard": {
|
|
3
|
+
"theme": "theme-blue",
|
|
4
|
+
"sharedFilters": [
|
|
5
|
+
{
|
|
6
|
+
"key": "New Dashboard Filter 1",
|
|
7
|
+
"showDropdown": true,
|
|
8
|
+
"values": [
|
|
9
|
+
"Florida",
|
|
10
|
+
"California"
|
|
11
|
+
],
|
|
12
|
+
"type": "datafilter",
|
|
13
|
+
"columnName": "State",
|
|
14
|
+
"tier": 1,
|
|
15
|
+
"usedBy": [
|
|
16
|
+
"map1721943918271"
|
|
17
|
+
]
|
|
18
|
+
}
|
|
19
|
+
]
|
|
20
|
+
},
|
|
21
|
+
"rows": [
|
|
22
|
+
{
|
|
23
|
+
"columns": [
|
|
24
|
+
{
|
|
25
|
+
"width": 12,
|
|
26
|
+
"widget": "dashboardFilters1721943964161"
|
|
27
|
+
}
|
|
28
|
+
],
|
|
29
|
+
"uuid": 1721943975299
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"uuid": 1721943975299,
|
|
33
|
+
"columns": [
|
|
34
|
+
{
|
|
35
|
+
"width": 12,
|
|
36
|
+
"widget": "map1721943918271"
|
|
37
|
+
},
|
|
38
|
+
{},
|
|
39
|
+
{}
|
|
40
|
+
]
|
|
41
|
+
}
|
|
42
|
+
],
|
|
43
|
+
"visualizations": {
|
|
44
|
+
"map1721943918271": {
|
|
45
|
+
"annotations": [],
|
|
46
|
+
"general": {
|
|
47
|
+
"geoType": "single-state",
|
|
48
|
+
"annotationDropdownText": "Annotations",
|
|
49
|
+
"geoBorderColor": "darkGray",
|
|
50
|
+
"headerColor": "theme-blue",
|
|
51
|
+
"title": "",
|
|
52
|
+
"showTitle": true,
|
|
53
|
+
"showSidebar": true,
|
|
54
|
+
"showDownloadButton": true,
|
|
55
|
+
"showDownloadMediaButton": false,
|
|
56
|
+
"displayAsHex": false,
|
|
57
|
+
"displayStateLabels": false,
|
|
58
|
+
"territoriesLabel": "Territories",
|
|
59
|
+
"territoriesAlwaysShow": false,
|
|
60
|
+
"language": "en",
|
|
61
|
+
"geoLabelOverride": "",
|
|
62
|
+
"hasRegions": false,
|
|
63
|
+
"fullBorder": false,
|
|
64
|
+
"type": "data",
|
|
65
|
+
"convertFipsCodes": true,
|
|
66
|
+
"palette": {
|
|
67
|
+
"isReversed": false
|
|
68
|
+
},
|
|
69
|
+
"allowMapZoom": true,
|
|
70
|
+
"hideGeoColumnInTooltip": false,
|
|
71
|
+
"hidePrimaryColumnInTooltip": false,
|
|
72
|
+
"expandDataTable": false,
|
|
73
|
+
"filterControlsStatePicked": "State",
|
|
74
|
+
"statePicked": {
|
|
75
|
+
"fipsCode": "01",
|
|
76
|
+
"stateName": "Alabama"
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
"type": "map",
|
|
80
|
+
"color": "pinkpurple",
|
|
81
|
+
"columns": {
|
|
82
|
+
"geo": {
|
|
83
|
+
"name": "FIPS Codes",
|
|
84
|
+
"label": "Location",
|
|
85
|
+
"tooltip": false,
|
|
86
|
+
"dataTable": true
|
|
87
|
+
},
|
|
88
|
+
"primary": {
|
|
89
|
+
"dataTable": true,
|
|
90
|
+
"tooltip": true,
|
|
91
|
+
"prefix": "",
|
|
92
|
+
"suffix": "",
|
|
93
|
+
"name": "Insured Rate",
|
|
94
|
+
"label": "",
|
|
95
|
+
"roundToPlace": 0
|
|
96
|
+
},
|
|
97
|
+
"navigate": {
|
|
98
|
+
"name": ""
|
|
99
|
+
},
|
|
100
|
+
"latitude": {
|
|
101
|
+
"name": "Latitude"
|
|
102
|
+
},
|
|
103
|
+
"longitude": {
|
|
104
|
+
"name": "Longitude"
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
"legend": {
|
|
108
|
+
"descriptions": {},
|
|
109
|
+
"specialClasses": [],
|
|
110
|
+
"unified": false,
|
|
111
|
+
"singleColumn": false,
|
|
112
|
+
"singleRow": false,
|
|
113
|
+
"verticalSorted": false,
|
|
114
|
+
"showSpecialClassesLast": false,
|
|
115
|
+
"dynamicDescription": false,
|
|
116
|
+
"type": "equalnumber",
|
|
117
|
+
"numberOfItems": 3,
|
|
118
|
+
"position": "side",
|
|
119
|
+
"title": "Legend"
|
|
120
|
+
},
|
|
121
|
+
"filters": [],
|
|
122
|
+
"table": {
|
|
123
|
+
"wrapColumns": false,
|
|
124
|
+
"label": "Data Table",
|
|
125
|
+
"expanded": false,
|
|
126
|
+
"limitHeight": false,
|
|
127
|
+
"height": "",
|
|
128
|
+
"caption": "",
|
|
129
|
+
"showDownloadUrl": false,
|
|
130
|
+
"showDataTableLink": true,
|
|
131
|
+
"showFullGeoNameInCSV": false,
|
|
132
|
+
"forceDisplay": true,
|
|
133
|
+
"download": true,
|
|
134
|
+
"indexLabel": ""
|
|
135
|
+
},
|
|
136
|
+
"tooltips": {
|
|
137
|
+
"appearanceType": "hover",
|
|
138
|
+
"linkLabel": "Learn More",
|
|
139
|
+
"capitalizeLabels": true,
|
|
140
|
+
"opacity": 90
|
|
141
|
+
},
|
|
142
|
+
"visual": {
|
|
143
|
+
"minBubbleSize": 1,
|
|
144
|
+
"maxBubbleSize": 20,
|
|
145
|
+
"extraBubbleBorder": false,
|
|
146
|
+
"cityStyle": "circle",
|
|
147
|
+
"cityStyleLabel": "",
|
|
148
|
+
"showBubbleZeros": false,
|
|
149
|
+
"additionalCityStyles": [],
|
|
150
|
+
"geoCodeCircleSize": "2"
|
|
151
|
+
},
|
|
152
|
+
"mapPosition": {
|
|
153
|
+
"coordinates": [
|
|
154
|
+
0,
|
|
155
|
+
30
|
|
156
|
+
],
|
|
157
|
+
"zoom": 1
|
|
158
|
+
},
|
|
159
|
+
"map": {
|
|
160
|
+
"layers": [],
|
|
161
|
+
"patterns": []
|
|
162
|
+
},
|
|
163
|
+
"hexMap": {
|
|
164
|
+
"type": "",
|
|
165
|
+
"shapeGroups": [
|
|
166
|
+
{
|
|
167
|
+
"legendTitle": "",
|
|
168
|
+
"legendDescription": "",
|
|
169
|
+
"items": [
|
|
170
|
+
{
|
|
171
|
+
"key": "",
|
|
172
|
+
"shape": "Arrow Up",
|
|
173
|
+
"column": "",
|
|
174
|
+
"operator": "=",
|
|
175
|
+
"value": ""
|
|
176
|
+
}
|
|
177
|
+
]
|
|
178
|
+
}
|
|
179
|
+
]
|
|
180
|
+
},
|
|
181
|
+
"filterBehavior": "Filter Change",
|
|
182
|
+
"openModal": true,
|
|
183
|
+
"uid": "map1721943918271",
|
|
184
|
+
"dataDescription": {
|
|
185
|
+
"horizontal": false,
|
|
186
|
+
"series": false
|
|
187
|
+
},
|
|
188
|
+
"dataKey": "test-single-county-file.json",
|
|
189
|
+
"editing": false,
|
|
190
|
+
"originalFormattedData": [
|
|
191
|
+
{
|
|
192
|
+
"Insured Rate": 8,
|
|
193
|
+
"Coverage Status": "Insured",
|
|
194
|
+
"FIPS Codes": "12057",
|
|
195
|
+
"Year (Good filter option)": "2010",
|
|
196
|
+
"link": "",
|
|
197
|
+
"Latitude": "",
|
|
198
|
+
"Longitude": "",
|
|
199
|
+
"State": "Florida"
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
"Insured Rate": 25,
|
|
203
|
+
"Coverage Status": "Insured",
|
|
204
|
+
"FIPS Codes": "55005",
|
|
205
|
+
"Year (Good filter option)": "2010",
|
|
206
|
+
"link": "",
|
|
207
|
+
"Latitude": "",
|
|
208
|
+
"Longitude": "",
|
|
209
|
+
"State": "California"
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
"Insured Rate": 25,
|
|
213
|
+
"Coverage Status": "Insured",
|
|
214
|
+
"FIPS Codes": "12103",
|
|
215
|
+
"Year (Good filter option)": "2010",
|
|
216
|
+
"link": "",
|
|
217
|
+
"Latitude": "",
|
|
218
|
+
"Longitude": "",
|
|
219
|
+
"State": "Florida"
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
"Insured Rate": 25,
|
|
223
|
+
"Coverage Status": "Insured",
|
|
224
|
+
"FIPS Codes": "32005",
|
|
225
|
+
"Year (Good filter option)": "2010",
|
|
226
|
+
"link": "",
|
|
227
|
+
"Latitude": "",
|
|
228
|
+
"Longitude": "",
|
|
229
|
+
"State": "California"
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
"Insured Rate": 18,
|
|
233
|
+
"Coverage Status": "Insured",
|
|
234
|
+
"FIPS Codes": "06075",
|
|
235
|
+
"Year (Good filter option)": "2010",
|
|
236
|
+
"link": "",
|
|
237
|
+
"Latitude": "",
|
|
238
|
+
"Longitude": "",
|
|
239
|
+
"State": "California"
|
|
240
|
+
},
|
|
241
|
+
{
|
|
242
|
+
"Insured Rate": 3,
|
|
243
|
+
"Coverage Status": "Insured",
|
|
244
|
+
"FIPS Codes": "06027",
|
|
245
|
+
"Year (Good filter option)": "2010",
|
|
246
|
+
"link": "",
|
|
247
|
+
"Latitude": "",
|
|
248
|
+
"Longitude": "",
|
|
249
|
+
"State": "California"
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
"Insured Rate": 25,
|
|
253
|
+
"Coverage Status": "Insured",
|
|
254
|
+
"FIPS Codes": "06029",
|
|
255
|
+
"Year (Good filter option)": "2010",
|
|
256
|
+
"link": "",
|
|
257
|
+
"Latitude": "",
|
|
258
|
+
"Longitude": "",
|
|
259
|
+
"State": "California"
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
"Insured Rate": 60,
|
|
263
|
+
"Coverage Status": "Insured",
|
|
264
|
+
"FIPS Codes": "Yosemite",
|
|
265
|
+
"Year (Good filter option)": "2010",
|
|
266
|
+
"link": "",
|
|
267
|
+
"Latitude": "37.865101",
|
|
268
|
+
"Longitude": "-119.538330",
|
|
269
|
+
"State": "California"
|
|
270
|
+
}
|
|
271
|
+
],
|
|
272
|
+
"version": "4.24.9"
|
|
273
|
+
},
|
|
274
|
+
"dashboardFilters1721943964161": {
|
|
275
|
+
"filters": [],
|
|
276
|
+
"filterBehavior": "Filter Change",
|
|
277
|
+
"newViz": true,
|
|
278
|
+
"openModal": true,
|
|
279
|
+
"uid": "dashboardFilters1721943964161",
|
|
280
|
+
"type": "dashboardFilters",
|
|
281
|
+
"sharedFilterIndexes": [
|
|
282
|
+
0
|
|
283
|
+
],
|
|
284
|
+
"visualizationType": "dashboardFilters",
|
|
285
|
+
"editing": false
|
|
286
|
+
}
|
|
287
|
+
},
|
|
288
|
+
"table": {
|
|
289
|
+
"label": "Data Table",
|
|
290
|
+
"show": true,
|
|
291
|
+
"showDownloadUrl": false,
|
|
292
|
+
"showVertical": true
|
|
293
|
+
},
|
|
294
|
+
"newViz": true,
|
|
295
|
+
"datasets": {
|
|
296
|
+
"test-single-county-file.json": {
|
|
297
|
+
"data": [
|
|
298
|
+
{
|
|
299
|
+
"Insured Rate": 8,
|
|
300
|
+
"Coverage Status": "Insured",
|
|
301
|
+
"FIPS Codes": "12057",
|
|
302
|
+
"Year (Good filter option)": "2010",
|
|
303
|
+
"link": "",
|
|
304
|
+
"Latitude": "",
|
|
305
|
+
"Longitude": "",
|
|
306
|
+
"State": "Florida"
|
|
307
|
+
},
|
|
308
|
+
{
|
|
309
|
+
"Insured Rate": 25,
|
|
310
|
+
"Coverage Status": "Insured",
|
|
311
|
+
"FIPS Codes": "55005",
|
|
312
|
+
"Year (Good filter option)": "2010",
|
|
313
|
+
"link": "",
|
|
314
|
+
"Latitude": "",
|
|
315
|
+
"Longitude": "",
|
|
316
|
+
"State": "California"
|
|
317
|
+
},
|
|
318
|
+
{
|
|
319
|
+
"Insured Rate": 25,
|
|
320
|
+
"Coverage Status": "Insured",
|
|
321
|
+
"FIPS Codes": "12103",
|
|
322
|
+
"Year (Good filter option)": "2010",
|
|
323
|
+
"link": "",
|
|
324
|
+
"Latitude": "",
|
|
325
|
+
"Longitude": "",
|
|
326
|
+
"State": "Florida"
|
|
327
|
+
},
|
|
328
|
+
{
|
|
329
|
+
"Insured Rate": 25,
|
|
330
|
+
"Coverage Status": "Insured",
|
|
331
|
+
"FIPS Codes": "32005",
|
|
332
|
+
"Year (Good filter option)": "2010",
|
|
333
|
+
"link": "",
|
|
334
|
+
"Latitude": "",
|
|
335
|
+
"Longitude": "",
|
|
336
|
+
"State": "California"
|
|
337
|
+
},
|
|
338
|
+
{
|
|
339
|
+
"Insured Rate": 18,
|
|
340
|
+
"Coverage Status": "Insured",
|
|
341
|
+
"FIPS Codes": "06075",
|
|
342
|
+
"Year (Good filter option)": "2010",
|
|
343
|
+
"link": "",
|
|
344
|
+
"Latitude": "",
|
|
345
|
+
"Longitude": "",
|
|
346
|
+
"State": "California"
|
|
347
|
+
},
|
|
348
|
+
{
|
|
349
|
+
"Insured Rate": 3,
|
|
350
|
+
"Coverage Status": "Insured",
|
|
351
|
+
"FIPS Codes": "06027",
|
|
352
|
+
"Year (Good filter option)": "2010",
|
|
353
|
+
"link": "",
|
|
354
|
+
"Latitude": "",
|
|
355
|
+
"Longitude": "",
|
|
356
|
+
"State": "California"
|
|
357
|
+
},
|
|
358
|
+
{
|
|
359
|
+
"Insured Rate": 25,
|
|
360
|
+
"Coverage Status": "Insured",
|
|
361
|
+
"FIPS Codes": "06029",
|
|
362
|
+
"Year (Good filter option)": "2010",
|
|
363
|
+
"link": "",
|
|
364
|
+
"Latitude": "",
|
|
365
|
+
"Longitude": "",
|
|
366
|
+
"State": "California"
|
|
367
|
+
},
|
|
368
|
+
{
|
|
369
|
+
"Insured Rate": 60,
|
|
370
|
+
"Coverage Status": "Insured",
|
|
371
|
+
"FIPS Codes": "Yosemite",
|
|
372
|
+
"Year (Good filter option)": "2010",
|
|
373
|
+
"link": "",
|
|
374
|
+
"Latitude": "37.865101",
|
|
375
|
+
"Longitude": "-119.538330",
|
|
376
|
+
"State": "California"
|
|
377
|
+
}
|
|
378
|
+
],
|
|
379
|
+
"dataFileSize": 1764,
|
|
380
|
+
"dataFileName": "test-single-county-file.json",
|
|
381
|
+
"dataFileSourceType": "file",
|
|
382
|
+
"dataFileFormat": "JSON",
|
|
383
|
+
"preview": true
|
|
384
|
+
}
|
|
385
|
+
},
|
|
386
|
+
"type": "dashboard",
|
|
387
|
+
"runtime": {},
|
|
388
|
+
"version": "4.24.9",
|
|
389
|
+
"uuid": 1721943961122
|
|
390
|
+
}
|