@cdc/dashboard 4.25.5-1 → 4.25.6-2

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 (55) hide show
  1. package/LICENSE +201 -0
  2. package/dist/cdcdashboard.js +77621 -77591
  3. package/examples/private/DEV-10120.json +1294 -0
  4. package/examples/private/DEV-10527.json +845 -0
  5. package/examples/private/DEV-10586.json +54319 -0
  6. package/examples/private/DEV-10856.json +54319 -0
  7. package/examples/private/DEV-9199.json +606 -0
  8. package/examples/private/DEV-9644.json +20092 -0
  9. package/examples/private/DEV-9684.json +2135 -0
  10. package/examples/private/DEV-9932.json +95 -0
  11. package/examples/private/DEV-9989.json +229 -0
  12. package/examples/private/art-dashboard.json +18174 -0
  13. package/examples/private/art-scratch.json +2406 -0
  14. package/examples/private/bird-flu-2.json +440 -0
  15. package/examples/private/bird-flu.json +413 -0
  16. package/examples/private/crashing-sidebar.json +975 -0
  17. package/examples/private/d.json +1561 -0
  18. package/examples/private/dashboard-config-ehdi.json +29915 -0
  19. package/examples/private/dashboard-map-filter.json +815 -0
  20. package/examples/private/dashboard-margins.js +15 -0
  21. package/examples/private/dataset.json +1452 -0
  22. package/examples/private/dev-10856-2.json +1348 -0
  23. package/examples/private/ehdi-data.json +29502 -0
  24. package/examples/private/exposure-source-h5-data.csv +26 -0
  25. package/examples/private/fatal-data.csv +3159 -0
  26. package/examples/private/feelings.json +1 -0
  27. package/examples/private/gaza-issue.json +1214 -0
  28. package/examples/private/josh.json +6175 -0
  29. package/examples/private/map-issue.json +628 -0
  30. package/examples/private/markup.json +115 -0
  31. package/examples/private/mpox.json +429 -0
  32. package/examples/private/nhis.json +1792 -0
  33. package/examples/private/testing-pie.json +436 -0
  34. package/examples/private/workforce.json +2041 -0
  35. package/examples/special-classes.json +54340 -0
  36. package/package.json +9 -9
  37. package/src/CdcDashboardComponent.tsx +36 -214
  38. package/src/_stories/_mock/api-filter-map.json +1 -0
  39. package/src/components/CollapsibleVisualizationRow.tsx +2 -4
  40. package/src/components/DashboardEditors.tsx +143 -0
  41. package/src/components/DashboardFilters/DashboardFilters.tsx +205 -205
  42. package/src/components/DashboardFilters/DashboardFiltersEditor/DashboardFiltersEditor.tsx +286 -287
  43. package/src/components/DashboardFilters/DashboardFiltersWrapper.tsx +198 -198
  44. package/src/components/Header/Header.tsx +7 -9
  45. package/src/components/Row.tsx +1 -24
  46. package/src/components/VisualizationRow.tsx +190 -213
  47. package/src/helpers/getVizConfig.ts +93 -80
  48. package/src/helpers/getVizRowColumnLocator.ts +0 -1
  49. package/src/helpers/reloadURLHelpers.ts +10 -13
  50. package/src/store/dashboard.actions.ts +61 -64
  51. package/src/store/dashboard.reducer.ts +0 -11
  52. package/src/types/ConfigRow.ts +0 -1
  53. package/src/types/Dashboard.ts +1 -1
  54. package/src/types/DashboardConfig.ts +1 -1
  55. package/src/types/DataSet.ts +0 -12
@@ -0,0 +1,606 @@
1
+ {
2
+ "dashboard": {
3
+ "theme": "theme-blue",
4
+ "sharedFilters": [
5
+ {
6
+ "key": "Dataset",
7
+ "showDropdown": true,
8
+ "tier": 1,
9
+ "type": "urlfilter",
10
+ "apiFilter": {
11
+ "apiEndpoint": "https://nccd-cove-public-api.apps.ecpaas-dev.cdc.gov/od-public?$datakey=brfss_prevalence_cove_explore_by_location_nationwide_mmsa&$limit=2000&$select=DISTINCT%20Dataset",
12
+ "valueSelector": "Dataset",
13
+ "textSelector": ""
14
+ },
15
+ "resetLabel": ""
16
+ },
17
+ {
18
+ "key": "Location",
19
+ "showDropdown": true,
20
+ "tier": 2,
21
+ "type": "urlfilter",
22
+ "apiFilter": {
23
+ "apiEndpoint": "https://nccd-cove-public-api.apps.ecpaas-dev.cdc.gov/od-public?$datakey=brfss_prevalence_cove_explore_by_location_nationwide_mmsa&$limit=2000&$select=DISTINCT%20LocationCategory,State&$order=LocationCategory,State",
24
+ "subgroupValueSelector": "State",
25
+ "textSelector": "-Select Location-",
26
+ "valueSelector": "LocationCategory"
27
+ },
28
+ "parents": [
29
+ "Dataset"
30
+ ],
31
+ "filterStyle": "nested-dropdown",
32
+ "subGrouping": {
33
+ "active": "Alaska",
34
+ "columnName": "",
35
+ "setByQueryParameter": "",
36
+ "valuesLookup": {}
37
+ },
38
+ "resetLabel": "-Select-"
39
+ },
40
+ {
41
+ "key": "Class",
42
+ "showDropdown": true,
43
+ "tier": 2,
44
+ "type": "urlfilter",
45
+ "apiFilter": {
46
+ "apiEndpoint": "https://nccd-cove-public-api.apps.ecpaas-dev.cdc.gov/od-public?$datakey=brfss_prevalence_cove_explore_by_location_nationwide_mmsa&$limit=2000&$select=DISTINCT%20Class&$order=Class",
47
+ "valueSelector": "Class",
48
+ "textSelector": ""
49
+ },
50
+ "parents": [
51
+ "Dataset",
52
+ "Location"
53
+ ]
54
+ },
55
+ {
56
+ "key": "Topic",
57
+ "showDropdown": true,
58
+ "tier": 2,
59
+ "type": "urlfilter",
60
+ "apiFilter": {
61
+ "apiEndpoint": "https://nccd-cove-public-api.apps.ecpaas-dev.cdc.gov/od-public?$datakey=brfss_prevalence_cove_explore_by_location_nationwide_mmsa&$limit=2000&$select=DISTINCT%20Topic&$order=Topic",
62
+ "valueSelector": "Topic",
63
+ "textSelector": ""
64
+ },
65
+ "parents": [
66
+ "Dataset",
67
+ "Location",
68
+ "Class"
69
+ ]
70
+ },
71
+ {
72
+ "key": "Year",
73
+ "showDropdown": true,
74
+ "tier": 2,
75
+ "type": "urlfilter",
76
+ "apiFilter": {
77
+ "apiEndpoint": "https://nccd-cove-public-api.apps.ecpaas-dev.cdc.gov/od-public?$datakey=brfss_prevalence_cove_explore_by_location_nationwide_mmsa&$limit=2000&$select=DISTINCT%20Year&$order=Year%20Desc",
78
+ "valueSelector": "Year",
79
+ "textSelector": ""
80
+ },
81
+ "parents": [
82
+ "Dataset",
83
+ "Location",
84
+ "Class",
85
+ "Topic"
86
+ ]
87
+ },
88
+ {
89
+ "key": "Question",
90
+ "showDropdown": true,
91
+ "tier": 1,
92
+ "type": "urlfilter",
93
+ "apiFilter": {
94
+ "apiEndpoint": "https://nccd-cove-public-api.apps.ecpaas-dev.cdc.gov/od-public?$datakey=brfss_prevalence_cove_explore_by_location_nationwide_mmsa&$limit=2000&$select=DISTINCT%20Question&$order=Question",
95
+ "valueSelector": "Question",
96
+ "textSelector": ""
97
+ },
98
+ "parents": [
99
+ "Dataset",
100
+ "Location",
101
+ "Class",
102
+ "Topic",
103
+ "Year"
104
+ ],
105
+ "usedBy": []
106
+ },
107
+ {
108
+ "key": "View By",
109
+ "showDropdown": true,
110
+ "tier": 1,
111
+ "type": "urlfilter",
112
+ "apiFilter": {
113
+ "apiEndpoint": "https://nccd-cove-public-api.apps.ecpaas-dev.cdc.gov/od-public?$datakey=brfss_prevalence_cove_explore_by_location_nationwide_mmsa&$limit=2000&$select=DISTINCT%20Category",
114
+ "valueSelector": "Category",
115
+ "textSelector": ""
116
+ },
117
+ "parents": [
118
+ "Dataset",
119
+ "Location",
120
+ "Class",
121
+ "Topic",
122
+ "Year",
123
+ "Question"
124
+ ],
125
+ "usedBy": [
126
+ "chart1729106285960",
127
+ "table1729106290803",
128
+ "footnotes1729516540074"
129
+ ]
130
+ },
131
+ {
132
+ "key": "Data Type",
133
+ "showDropdown": true,
134
+ "tier": 2,
135
+ "type": "urlfilter",
136
+ "apiFilter": {
137
+ "apiEndpoint": "https://nccd-cove-public-api.apps.ecpaas-dev.cdc.gov/od-public?$datakey=brfss_prevalence_cove_explore_by_location_nationwide_mmsa&$limit=2000&$select=DISTINCT%20Data_Type&$order=Data_Type%20DESC",
138
+ "valueSelector": "Data_Type",
139
+ "textSelector": ""
140
+ },
141
+ "parents": [
142
+ "Dataset",
143
+ "Location",
144
+ "Class",
145
+ "Topic",
146
+ "Year",
147
+ "Question",
148
+ "View By"
149
+ ],
150
+ "usedBy": [
151
+ "chart1729106285960",
152
+ "table1729106290803",
153
+ "footnotes1729516540074"
154
+ ]
155
+ }
156
+ ]
157
+ },
158
+ "rows": [
159
+ {
160
+ "columns": [
161
+ {
162
+ "width": 12,
163
+ "widget": "dashboardFilters1729110083267"
164
+ },
165
+ {},
166
+ {}
167
+ ]
168
+ },
169
+ {
170
+ "columns": [
171
+ {
172
+ "width": 12,
173
+ "widget": "dashboardFilters1729110055542"
174
+ }
175
+ ],
176
+ "uuid": 1729110036831
177
+ },
178
+ {
179
+ "columns": [
180
+ {
181
+ "width": 12,
182
+ "widget": "chart1729106285960"
183
+ },
184
+ {
185
+ "width": 12
186
+ },
187
+ {
188
+ "width": 12
189
+ }
190
+ ],
191
+ "toggle": true,
192
+ "uuid": 1730733434732
193
+ }
194
+ ],
195
+ "visualizations": {
196
+ "chart1729106285960": {
197
+ "annotations": [],
198
+ "type": "chart",
199
+ "debugSvg": false,
200
+ "chartMessage": {
201
+ "noData": "No Data Available"
202
+ },
203
+ "title": "",
204
+ "showTitle": false,
205
+ "showDownloadMediaButton": false,
206
+ "theme": "theme-blue",
207
+ "animate": false,
208
+ "fontSize": "medium",
209
+ "lineDatapointStyle": "hover",
210
+ "lineDatapointColor": "Same as Line",
211
+ "barHasBorder": "false",
212
+ "isLollipopChart": false,
213
+ "lollipopShape": "circle",
214
+ "lollipopColorStyle": "two-tone",
215
+ "visualizationSubType": "regular",
216
+ "barStyle": "",
217
+ "roundingStyle": "standard",
218
+ "tipRounding": "top",
219
+ "isResponsiveTicks": false,
220
+ "general": {
221
+ "annotationDropdownText": "Annotations",
222
+ "showDownloadButton": false,
223
+ "showMissingDataLabel": true,
224
+ "showSuppressedSymbol": true,
225
+ "showZeroValueData": true,
226
+ "hideNullValue": true
227
+ },
228
+ "padding": {
229
+ "left": 5,
230
+ "right": 5
231
+ },
232
+ "preliminaryData": [],
233
+ "yAxis": {
234
+ "hideAxis": false,
235
+ "displayNumbersOnBar": false,
236
+ "hideLabel": false,
237
+ "hideTicks": false,
238
+ "size": "60",
239
+ "gridLines": false,
240
+ "enablePadding": false,
241
+ "min": "0",
242
+ "max": "100",
243
+ "labelColor": "#333",
244
+ "tickLabelColor": "#333",
245
+ "tickColor": "#333",
246
+ "rightHideAxis": true,
247
+ "rightAxisSize": 0,
248
+ "rightLabel": "",
249
+ "rightLabelOffsetSize": 0,
250
+ "rightAxisLabelColor": "#333",
251
+ "rightAxisTickLabelColor": "#333",
252
+ "rightAxisTickColor": "#333",
253
+ "numTicks": "10",
254
+ "axisPadding": 0,
255
+ "scalePadding": 10,
256
+ "tickRotation": 0,
257
+ "anchors": [],
258
+ "shoMissingDataLabel": true,
259
+ "showMissingDataLine": true,
260
+ "categories": [],
261
+ "label": "Percentage",
262
+ "labelOffset": "",
263
+ "labelPlacement": "Below Bar",
264
+ "type": "linear"
265
+ },
266
+ "boxplot": {
267
+ "plots": [],
268
+ "borders": "true",
269
+ "plotOutlierValues": false,
270
+ "plotNonOutlierValues": true,
271
+ "labels": {
272
+ "q1": "Lower Quartile",
273
+ "q2": "q2",
274
+ "q3": "Upper Quartile",
275
+ "q4": "q4",
276
+ "minimum": "Minimum",
277
+ "maximum": "Maximum",
278
+ "mean": "Mean",
279
+ "median": "Median",
280
+ "sd": "Standard Deviation",
281
+ "iqr": "Interquartile Range",
282
+ "total": "Total",
283
+ "outliers": "Outliers",
284
+ "values": "Values",
285
+ "lowerBounds": "Lower Bounds",
286
+ "upperBounds": "Upper Bounds"
287
+ },
288
+ "firstQuartilePercentage": 25,
289
+ "thirdQuartilePercentage": 75,
290
+ "boxWidthPercentage": 40,
291
+ "legend": {
292
+ "showHowToReadText": false,
293
+ "howToReadText": ""
294
+ }
295
+ },
296
+ "topAxis": {
297
+ "hasLine": false
298
+ },
299
+ "isLegendValue": false,
300
+ "barThickness": 0.35,
301
+ "barHeight": 25,
302
+ "barSpace": 15,
303
+ "heights": {
304
+ "vertical": "400",
305
+ "horizontal": 739.1999999999999
306
+ },
307
+ "xAxis": {
308
+ "sortDates": false,
309
+ "anchors": [],
310
+ "type": "categorical",
311
+ "showTargetLabel": true,
312
+ "targetLabel": "Target",
313
+ "hideAxis": false,
314
+ "hideLabel": false,
315
+ "hideTicks": false,
316
+ "size": 75,
317
+ "tickRotation": 0,
318
+ "min": "",
319
+ "max": "",
320
+ "labelColor": "#333",
321
+ "tickLabelColor": "#333",
322
+ "tickColor": "#333",
323
+ "numTicks": "",
324
+ "labelOffset": 65,
325
+ "axisPadding": 200,
326
+ "target": 0,
327
+ "maxTickRotation": 0,
328
+ "padding": 0,
329
+ "showYearsOnce": false,
330
+ "sortByRecentDate": false,
331
+ "dataKey": "Response",
332
+ "axisBBox": 56.36000061035156,
333
+ "tickWidthMax": 30,
334
+ "label": "Response"
335
+ },
336
+ "table": {
337
+ "label": "Data Table",
338
+ "expanded": false,
339
+ "limitHeight": false,
340
+ "height": "",
341
+ "caption": "",
342
+ "showDownloadUrl": false,
343
+ "showDataTableLink": false,
344
+ "showDownloadLinkBelow": true,
345
+ "indexLabel": "",
346
+ "download": true,
347
+ "showVertical": false,
348
+ "dateDisplayFormat": "",
349
+ "showMissingDataLabel": true,
350
+ "showSuppressedSymbol": true,
351
+ "show": false,
352
+ "showDownloadImgButton": true,
353
+ "collapsible": false
354
+ },
355
+ "orientation": "vertical",
356
+ "color": "pinkpurple",
357
+ "columns": {},
358
+ "legend": {
359
+ "hide": false,
360
+ "behavior": "isolate",
361
+ "axisAlign": true,
362
+ "singleRow": true,
363
+ "colorCode": "",
364
+ "reverseLabelOrder": true,
365
+ "description": "",
366
+ "dynamicLegend": false,
367
+ "dynamicLegendDefaultText": "Show All",
368
+ "dynamicLegendItemLimit": 5,
369
+ "dynamicLegendItemLimitMessage": "Dynamic Legend Item Limit Hit.",
370
+ "dynamicLegendChartMessage": "Select Options from the Legend",
371
+ "label": "",
372
+ "lineMode": false,
373
+ "verticalSorted": true,
374
+ "highlightOnHover": false,
375
+ "hideSuppressedLabels": false,
376
+ "hideSuppressionLink": false,
377
+ "seriesHighlight": [],
378
+ "style": "circles",
379
+ "subStyle": "linear blocks",
380
+ "tickRotation": "",
381
+ "hideBorder": {
382
+ "side": false,
383
+ "topBottom": false
384
+ },
385
+ "position": "bottom"
386
+ },
387
+ "brush": {
388
+ "height": 25,
389
+ "active": false
390
+ },
391
+ "exclusions": {
392
+ "active": false,
393
+ "keys": []
394
+ },
395
+ "palette": "qualitative-bold",
396
+ "isPaletteReversed": false,
397
+ "twoColor": {
398
+ "palette": "monochrome-1",
399
+ "isPaletteReversed": false
400
+ },
401
+ "labels": false,
402
+ "dataFormat": {
403
+ "commas": false,
404
+ "prefix": "",
405
+ "suffix": "%",
406
+ "abbreviated": false,
407
+ "bottomSuffix": "",
408
+ "bottomPrefix": "",
409
+ "bottomAbbreviated": false,
410
+ "onlyShowTopPrefixSuffix": true
411
+ },
412
+ "confidenceKeys": {
413
+ "upper": "High_CI",
414
+ "lower": "Low_CI"
415
+ },
416
+ "visual": {
417
+ "border": true,
418
+ "accent": true,
419
+ "background": true,
420
+ "verticalHoverLine": false,
421
+ "horizontalHoverLine": false
422
+ },
423
+ "useLogScale": false,
424
+ "filterBehavior": "Filter Change",
425
+ "highlightedBarValues": [],
426
+ "series": [
427
+ {
428
+ "dataKey": "Percentage",
429
+ "type": "Bar",
430
+ "axis": "Left",
431
+ "tooltip": true,
432
+ "dynamicCategory": "Subcategory",
433
+ "name": ""
434
+ }
435
+ ],
436
+ "tooltips": {
437
+ "opacity": 90,
438
+ "singleSeries": false,
439
+ "dateDisplayFormat": ""
440
+ },
441
+ "forestPlot": {
442
+ "startAt": 0,
443
+ "colors": {
444
+ "line": "",
445
+ "shape": ""
446
+ },
447
+ "lineOfNoEffect": {
448
+ "show": true
449
+ },
450
+ "type": "",
451
+ "pooledResult": {
452
+ "diamondHeight": 5,
453
+ "column": ""
454
+ },
455
+ "estimateField": "",
456
+ "estimateRadius": "",
457
+ "shape": "square",
458
+ "rowHeight": 20,
459
+ "description": {
460
+ "show": true,
461
+ "text": "description",
462
+ "location": 0
463
+ },
464
+ "result": {
465
+ "show": true,
466
+ "text": "result",
467
+ "location": 100
468
+ },
469
+ "radius": {
470
+ "min": 2,
471
+ "max": 10,
472
+ "scalingColumn": ""
473
+ },
474
+ "regression": {
475
+ "lower": 0,
476
+ "upper": 0,
477
+ "estimateField": 0
478
+ },
479
+ "leftWidthOffset": 0,
480
+ "rightWidthOffset": 0,
481
+ "showZeroLine": false,
482
+ "leftLabel": "",
483
+ "rightLabel": ""
484
+ },
485
+ "area": {
486
+ "isStacked": false
487
+ },
488
+ "sankey": {
489
+ "title": {
490
+ "defaultColor": "black"
491
+ },
492
+ "iterations": 1,
493
+ "rxValue": 0.9,
494
+ "overallSize": {
495
+ "width": 900,
496
+ "height": 700
497
+ },
498
+ "margin": {
499
+ "margin_y": 25,
500
+ "margin_x": 0
501
+ },
502
+ "nodeSize": {
503
+ "nodeWidth": 26,
504
+ "nodeHeight": 40
505
+ },
506
+ "nodePadding": 55,
507
+ "nodeFontColor": "black",
508
+ "nodeColor": {
509
+ "default": "#ff8500",
510
+ "inactive": "#808080"
511
+ },
512
+ "linkColor": {
513
+ "default": "#ffc900",
514
+ "inactive": "#D3D3D3"
515
+ },
516
+ "opacity": {
517
+ "nodeOpacityDefault": 1,
518
+ "nodeOpacityInactive": 0.1,
519
+ "LinkOpacityDefault": 1,
520
+ "LinkOpacityInactive": 0.1
521
+ },
522
+ "storyNodeFontColor": "#006778",
523
+ "storyNodeText": [],
524
+ "nodeValueStyle": {
525
+ "textBefore": "(",
526
+ "textAfter": ")"
527
+ },
528
+ "data": []
529
+ },
530
+ "filters": [],
531
+ "openModal": true,
532
+ "uid": "chart1729106285960",
533
+ "visualizationType": "Bar",
534
+ "dataDescription": {
535
+ "horizontal": false,
536
+ "series": false
537
+ },
538
+ "dataKey": "Explore by Location No Duplicates",
539
+ "version": "4.24.10",
540
+ "dynamicMarginTop": 0,
541
+ "description": "<strong>Data Source:</strong> <a href=\"/brfss/\">Behavioral Risk Factor Surveillance System (BRFSS)</a>"
542
+ },
543
+ "dashboardFilters1729110055542": {
544
+ "filters": [],
545
+ "filterBehavior": "Filter Change",
546
+ "newViz": true,
547
+ "openModal": true,
548
+ "uid": "dashboardFilters1729110055542",
549
+ "type": "dashboardFilters",
550
+ "sharedFilterIndexes": [
551
+ 6,
552
+ 7
553
+ ],
554
+ "visualizationType": "dashboardFilters",
555
+ "autoLoad": true
556
+ },
557
+ "dashboardFilters1729110083267": {
558
+ "filters": [],
559
+ "filterBehavior": "Apply Button",
560
+ "newViz": true,
561
+ "openModal": true,
562
+ "uid": "dashboardFilters1729110083267",
563
+ "type": "dashboardFilters",
564
+ "sharedFilterIndexes": [
565
+ 0,
566
+ 1,
567
+ 2,
568
+ 3,
569
+ 4,
570
+ 5
571
+ ],
572
+ "visualizationType": "dashboardFilters",
573
+ "applyFiltersButtonText": "View Results"
574
+ }
575
+ },
576
+ "table": {
577
+ "label": "Data Table",
578
+ "show": false,
579
+ "showDownloadUrl": false,
580
+ "showDownloadLinkBelow": true,
581
+ "showVertical": true,
582
+ "download": false
583
+ },
584
+ "datasets": {
585
+ "Explore by Location No Duplicates": {
586
+ "dataFileSize": 1401414,
587
+ "dataFileName": "https://nccd-cove-public-api.apps.ecpaas-dev.cdc.gov/od-public?$datakey=brfss_prevalence_cove_explore_by_location_nationwide_mmsa&$limit=2000&$where=subcategory_filter like \"All%\"",
588
+ "dataFileSourceType": "url",
589
+ "dataFileFormat": "JSON",
590
+ "preview": true,
591
+ "dataUrl": "https://nccd-cove-public-api.apps.ecpaas-dev.cdc.gov/od-public?$datakey=brfss_prevalence_cove_explore_by_location_nationwide_mmsa&$limit=2000&$where=subcategory_filter like \"All%\""
592
+ }
593
+ },
594
+ "isResponsiveTicks": false,
595
+ "type": "dashboard",
596
+ "barThickness": "0.37",
597
+ "xAxis": {
598
+ "type": "categorical",
599
+ "size": 75,
600
+ "maxTickRotation": 45,
601
+ "labelOffset": 65
602
+ },
603
+ "version": "4.24.10",
604
+ "uuid": 1730737824010,
605
+ "runtime": {}
606
+ }