@cdc/dashboard 4.26.3 → 4.26.5

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 (151) hide show
  1. package/CONFIG.md +219 -0
  2. package/README.md +60 -20
  3. package/dist/cdcdashboard-CY9IcPSi.es.js +6 -0
  4. package/dist/cdcdashboard-DlpiY3fQ.es.js +4 -0
  5. package/dist/cdcdashboard.js +61559 -58048
  6. package/examples/__data__/data-2.json +6 -0
  7. package/examples/__data__/data.json +6 -0
  8. package/examples/dashboard-conditions-filters-incomplete.json +221 -0
  9. package/examples/dashboard-missing-datasets-multi.json +174 -0
  10. package/examples/dashboard-missing-datasets-single.json +121 -0
  11. package/examples/dashboard-multi-dashboard-version-regression.json +146 -0
  12. package/examples/dashboard-shared-filter-row-delete-cleanup.json +186 -0
  13. package/examples/dashboard-stale-dataset-keys.json +181 -0
  14. package/examples/dashboard-tiered-filter-regression.json +190 -0
  15. package/examples/legend-issue.json +1 -1
  16. package/examples/minimal-example.json +34 -0
  17. package/examples/private/cfa-dashboard.json +651 -0
  18. package/examples/private/data-bite-wrap.json +6936 -0
  19. package/examples/private/dengue.json +4640 -0
  20. package/examples/private/link_to_file.json +16662 -0
  21. package/examples/private/multi-dash-fix.json +16963 -0
  22. package/examples/private/versions.json +41612 -0
  23. package/examples/sankey.json +3 -3
  24. package/examples/test-api-filter-reset.json +4 -4
  25. package/examples/tp5-test.json +86 -4
  26. package/examples/us-map-filter-example.json +1074 -0
  27. package/package.json +9 -9
  28. package/src/CdcDashboard.tsx +6 -2
  29. package/src/CdcDashboardComponent.tsx +179 -88
  30. package/src/DashboardCopyPasteContext.test.tsx +33 -0
  31. package/src/DashboardCopyPasteContext.tsx +48 -0
  32. package/src/_stories/Dashboard.EditorRegression.stories.tsx +72 -0
  33. package/src/_stories/Dashboard.Regression.stories.tsx +196 -0
  34. package/src/_stories/Dashboard.Zoom.stories.tsx +88 -0
  35. package/src/_stories/Dashboard.smoke.stories.tsx +33 -0
  36. package/src/_stories/Dashboard.stories.tsx +337 -2
  37. package/src/_stories/FilteredTextMigrationComparison.stories.tsx +87 -0
  38. package/src/_stories/_mock/dashboard-data-driven-colors.json +171 -0
  39. package/src/_stories/_mock/tp5-test.json +86 -5
  40. package/src/components/Column.test.tsx +176 -0
  41. package/src/components/Column.tsx +214 -13
  42. package/src/components/DashboardConditionModal.test.tsx +420 -0
  43. package/src/components/DashboardConditionModal.tsx +367 -0
  44. package/src/components/DashboardConditionSummary.tsx +59 -0
  45. package/src/components/DashboardEditors.tsx +23 -0
  46. package/src/components/DashboardFilters/DashboardFilters.test.tsx +267 -0
  47. package/src/components/DashboardFilters/DashboardFilters.tsx +193 -172
  48. package/src/components/DashboardFilters/DashboardFiltersEditor/DashboardFiltersEditor.test.tsx +164 -0
  49. package/src/components/DashboardFilters/DashboardFiltersEditor/DashboardFiltersEditor.tsx +46 -6
  50. package/src/components/DashboardFilters/DashboardFiltersEditor/components/APIModal.tsx +5 -3
  51. package/src/components/DashboardFilters/DashboardFiltersEditor/components/DeleteFilterModal.tsx +59 -58
  52. package/src/components/DashboardFilters/DashboardFiltersEditor/components/FilterEditor.test.tsx +304 -0
  53. package/src/components/DashboardFilters/DashboardFiltersEditor/components/FilterEditor.tsx +43 -36
  54. package/src/components/DashboardFilters/DashboardFiltersEditor/components/NestedDropDownDashboard.tsx +2 -2
  55. package/src/components/DashboardFilters/DashboardFiltersWrapper.test.tsx +142 -0
  56. package/src/components/DashboardFilters/DashboardFiltersWrapper.tsx +32 -27
  57. package/src/components/DashboardFilters/dashboardfilter.styles.css +42 -27
  58. package/src/components/DataDesignerModal.tsx +2 -1
  59. package/src/components/ExpandCollapseButtons.tsx +6 -4
  60. package/src/components/Grid.tsx +12 -7
  61. package/src/components/Header/Header.tsx +36 -17
  62. package/src/components/MultiConfigTabs/MultiConfigTabs.tsx +141 -140
  63. package/src/components/Row.test.tsx +228 -0
  64. package/src/components/Row.tsx +104 -28
  65. package/src/components/VisualizationRow.test.tsx +396 -0
  66. package/src/components/VisualizationRow.tsx +177 -51
  67. package/src/components/VisualizationsPanel/VisualizationsPanel.test.tsx +49 -0
  68. package/src/components/VisualizationsPanel/VisualizationsPanel.tsx +14 -13
  69. package/src/components/Widget/Widget.test.tsx +218 -0
  70. package/src/components/Widget/Widget.tsx +123 -20
  71. package/src/components/Widget/widget.styles.css +58 -14
  72. package/src/components/dashboard-condition-modal.css +76 -0
  73. package/src/components/dashboard-condition-summary.css +87 -0
  74. package/src/data/initial-state.js +1 -0
  75. package/src/helpers/addValuesToDashboardFilters.ts +3 -5
  76. package/src/helpers/addVisualization.ts +17 -4
  77. package/src/helpers/cloneDashboardWidget.ts +127 -0
  78. package/src/helpers/dashboardColumnWidgets.ts +99 -0
  79. package/src/helpers/dashboardConditionUi.ts +47 -0
  80. package/src/helpers/dashboardConditions.ts +200 -0
  81. package/src/helpers/dashboardFilterTargets.ts +156 -0
  82. package/src/helpers/filterData.ts +4 -9
  83. package/src/helpers/filterVisibility.ts +20 -0
  84. package/src/helpers/formatConfigBeforeSave.ts +2 -2
  85. package/src/helpers/getFilteredData.ts +18 -5
  86. package/src/helpers/getUpdateConfig.ts +43 -12
  87. package/src/helpers/getVizRowColumnLocator.ts +11 -1
  88. package/src/helpers/iconHash.tsx +9 -3
  89. package/src/helpers/mapDataToConfig.ts +31 -29
  90. package/src/helpers/reloadURLHelpers.ts +25 -5
  91. package/src/helpers/removeDashboardFilter.ts +33 -33
  92. package/src/helpers/tests/addVisualization.test.ts +53 -9
  93. package/src/helpers/tests/cloneDashboardWidget.test.ts +136 -0
  94. package/src/helpers/tests/dashboardColumnWidgets.test.ts +99 -0
  95. package/src/helpers/tests/dashboardConditionUi.test.ts +41 -0
  96. package/src/helpers/tests/dashboardConditions.test.ts +428 -0
  97. package/src/helpers/tests/formatConfigBeforeSave.test.ts +51 -0
  98. package/src/helpers/tests/getFilteredData.test.ts +265 -86
  99. package/src/helpers/tests/getUpdateConfig.test.ts +338 -0
  100. package/src/helpers/tests/reloadURLHelpers.test.ts +394 -238
  101. package/src/index.tsx +6 -3
  102. package/src/scss/grid.scss +281 -22
  103. package/src/scss/main.scss +215 -64
  104. package/src/store/dashboard.actions.ts +17 -4
  105. package/src/store/dashboard.reducer.test.ts +538 -0
  106. package/src/store/dashboard.reducer.ts +136 -22
  107. package/src/test/CdcDashboard.test.jsx +24 -0
  108. package/src/test/CdcDashboard.test.tsx +148 -0
  109. package/src/test/CdcDashboardComponent.test.tsx +935 -2
  110. package/src/types/ConfigRow.ts +15 -0
  111. package/src/types/DashboardFilters.ts +4 -0
  112. package/src/types/SharedFilter.ts +2 -0
  113. package/tests/fixtures/dashboard-config-with-metadata.json +1 -1
  114. package/dist/cdcdashboard-vr9HZwRt.es.js +0 -6
  115. package/examples/DEV-6574.json +0 -2224
  116. package/examples/api-dashboard-data.json +0 -272
  117. package/examples/api-dashboard-years.json +0 -11
  118. package/examples/api-geographies-data.json +0 -11
  119. package/examples/chart-data.json +0 -5409
  120. package/examples/custom/css/respiratory.css +0 -236
  121. package/examples/custom/js/respiratory.js +0 -242
  122. package/examples/default-data.json +0 -368
  123. package/examples/default-filter-control.json +0 -209
  124. package/examples/default-multi-dataset-shared-filter.json +0 -1729
  125. package/examples/default-multi-dataset.json +0 -506
  126. package/examples/ed-visits-county-file.json +0 -402
  127. package/examples/filters/Alabama.json +0 -72
  128. package/examples/filters/Alaska.json +0 -1737
  129. package/examples/filters/Arkansas.json +0 -4713
  130. package/examples/filters/California.json +0 -212
  131. package/examples/filters/Colorado.json +0 -1500
  132. package/examples/filters/Connecticut.json +0 -559
  133. package/examples/filters/Delaware.json +0 -63
  134. package/examples/filters/DistrictofColumbia.json +0 -63
  135. package/examples/filters/Florida.json +0 -4217
  136. package/examples/filters/States.json +0 -146
  137. package/examples/state-level.json +0 -90136
  138. package/examples/state-points.json +0 -10474
  139. package/examples/temp-example-data.json +0 -130
  140. package/examples/test-dashboard-simple.json +0 -503
  141. package/examples/test-example.json +0 -752
  142. package/examples/test-file.json +0 -147
  143. package/examples/test.json +0 -752
  144. package/examples/testing.json +0 -94456
  145. /package/examples/{data → __data__}/data-with-metadata.json +0 -0
  146. /package/examples/{legend-issue-data.json → __data__/legend-issue-data.json} +0 -0
  147. /package/examples/api-test/{categories.json → __data__/categories.json} +0 -0
  148. /package/examples/api-test/{chart-data.json → __data__/chart-data.json} +0 -0
  149. /package/examples/api-test/{topics.json → __data__/topics.json} +0 -0
  150. /package/examples/api-test/{years.json → __data__/years.json} +0 -0
  151. /package/src/_stories/{Dashboard.Pages.stories.tsx → Dashboard.Pages.smoke.stories.tsx} +0 -0
@@ -1,752 +0,0 @@
1
- {
2
- "dashboard": {
3
- "theme": "theme-blue",
4
- "sharedFilters": [
5
- {
6
- "key": "State",
7
- "type": "urlfilter",
8
- "columnName": "geography",
9
- "showDropdown": true,
10
- "usedBy": [
11
- "chart1701791122773",
12
- "filtered-text1701791173259",
13
- "filtered-text1701791674571",
14
- "filtered-text1701791683990"
15
- ],
16
- "values": [
17
- "United States",
18
- "Alabama",
19
- "Alaska",
20
- "Arizona",
21
- "Arkansas",
22
- "California",
23
- "Colorado",
24
- "Commonwealth of the Northern Mariana Islands",
25
- "Connecticut",
26
- "Delaware",
27
- "District of Columbia",
28
- "Florida",
29
- "Georgia",
30
- "Hawaii",
31
- "Idaho",
32
- "Illinois",
33
- "Indiana",
34
- "Iowa",
35
- "Kansas",
36
- "Kentucky",
37
- "Louisiana",
38
- "Maine",
39
- "Maryland",
40
- "Massachusetts",
41
- "Michigan",
42
- "Minnesota",
43
- "Mississippi",
44
- "Missouri",
45
- "Montana",
46
- "Nebraska",
47
- "Nevada",
48
- "New Hampshire",
49
- "New Jersey",
50
- "New Mexico",
51
- "New York",
52
- "New York City",
53
- "North Carolina",
54
- "North Dakota",
55
- "Ohio",
56
- "Oklahoma",
57
- "Oregon",
58
- "Pennsylvania",
59
- "Puerto Rico",
60
- "Rhode Island",
61
- "South Carolina",
62
- "South Dakota",
63
- "Tennessee",
64
- "Texas",
65
- "Utah",
66
- "Vermont",
67
- "Virgin Islands",
68
- "Virginia",
69
- "Washington",
70
- "West Virginia",
71
- "Wisconsin",
72
- "Wyoming"
73
- ],
74
- "active": "United States",
75
- "tier": 1,
76
- "datasetKey": "resp-data.json",
77
- "queryParameter": "geography",
78
- "apiFilter": {
79
- "apiEndpoint": "https://data.cdc.gov/resource/tajw-whir.json?$select=distinct%20geography&$order=geography%20ASC",
80
- "valueSelector": "geography",
81
- "textSelector": "geography",
82
- "defaultValue": "United States",
83
- "autoLoad": true
84
- }
85
- },
86
- {
87
- "key": "County",
88
- "type": "datafilter",
89
- "columnName": "county",
90
- "showDropdown": true,
91
- "usedBy": [
92
- "chart1701791122773",
93
- "filtered-text1701791173259",
94
- "filtered-text1701791674571",
95
- "filtered-text1701791683990",
96
- "filter-dropdowns1701792379133",
97
- "filtered-text1701888972205",
98
- "filtered-text1701888980655"
99
- ],
100
- "values": [
101
- "All",
102
- "Autauga County",
103
- "Baldwin County",
104
- "Barbour County",
105
- "Bibb County",
106
- "Blount County",
107
- "Bullock County",
108
- "Butler County",
109
- "Calhoun County",
110
- "Chambers County",
111
- "Cherokee County",
112
- "Chilton County",
113
- "Choctaw County",
114
- "Clarke County",
115
- "Clay County",
116
- "Cleburne County",
117
- "Coffee County",
118
- "Colbert County",
119
- "Conecuh County",
120
- "Coosa County",
121
- "Covington County",
122
- "Crenshaw County",
123
- "Cullman County",
124
- "Dale County",
125
- "Dallas County",
126
- "DeKalb County",
127
- "Elmore County",
128
- "Escambia County",
129
- "Etowah County",
130
- "Fayette County",
131
- "Franklin County",
132
- "Geneva County",
133
- "Greene County",
134
- "Hale County",
135
- "Henry County",
136
- "Houston County",
137
- "Jackson County",
138
- "Jefferson County",
139
- "Lamar County",
140
- "Lauderdale County",
141
- "Lawrence County",
142
- "Lee County",
143
- "Limestone County",
144
- "Lowndes County",
145
- "Macon County",
146
- "Madison County",
147
- "Marengo County",
148
- "Marion County",
149
- "Marshall County",
150
- "Mobile County",
151
- "Monroe County",
152
- "Montgomery County",
153
- "Morgan County",
154
- "Perry County",
155
- "Pickens County",
156
- "Pike County",
157
- "Randolph County",
158
- "Russell County",
159
- "Shelby County",
160
- "St. Clair County",
161
- "Sumter County",
162
- "Talladega County",
163
- "Tallapoosa County",
164
- "Tuscaloosa County",
165
- "Walker County",
166
- "Washington County",
167
- "Wilcox County",
168
- "Winston County"
169
- ],
170
- "active": "All",
171
- "tier": 1,
172
- "parents": [
173
- "Dashboard Filter 3"
174
- ]
175
- },
176
- {
177
- "key": "Dashboard Filter 3",
178
- "type": "datafilter",
179
- "columnName": "geography",
180
- "showDropdown": true,
181
- "usedBy": [
182
- "chart1701791122773",
183
- "filtered-text1701791173259",
184
- "filtered-text1701791674571",
185
- "filtered-text1701791683990",
186
- "filtered-text1701888972205",
187
- "filtered-text1701888980655"
188
- ],
189
- "values": [
190
- "Alabama",
191
- "Alaska",
192
- "Arizona",
193
- "Arkansas",
194
- "California",
195
- "Colorado",
196
- "Connecticut",
197
- "Delaware",
198
- "District of Columbia",
199
- "Florida",
200
- "Georgia",
201
- "Hawaii",
202
- "Idaho",
203
- "Illinois",
204
- "Indiana",
205
- "Iowa",
206
- "Kansas",
207
- "Kentucky",
208
- "Louisiana",
209
- "Maine",
210
- "Maryland",
211
- "Massachusetts",
212
- "Michigan",
213
- "Minnesota",
214
- "Mississippi",
215
- "Montana",
216
- "Nebraska",
217
- "Nevada",
218
- "New Jersey",
219
- "New Mexico",
220
- "New York",
221
- "North Carolina",
222
- "North Dakota",
223
- "Ohio",
224
- "Oklahoma",
225
- "Oregon",
226
- "Pennsylvania",
227
- "Rhode Island",
228
- "South Carolina",
229
- "Tennessee",
230
- "Texas",
231
- "United States",
232
- "Utah",
233
- "Vermont",
234
- "Virginia",
235
- "West Virginia",
236
- "Wisconsin",
237
- "Wyoming"
238
- ],
239
- "active": "United States",
240
- "tier": 1
241
- }
242
- ]
243
- },
244
- "rows": [
245
- [
246
- {
247
- "width": 12,
248
- "widget": "filter-dropdowns1701792379133"
249
- },
250
- {
251
- "equalHeight": false
252
- },
253
- {},
254
- {}
255
- ],
256
- [
257
- {
258
- "width": 6,
259
- "widget": "filtered-text1701888972205"
260
- },
261
- {
262
- "equalHeight": false,
263
- "width": 6,
264
- "widget": "filtered-text1701888980655"
265
- },
266
- {
267
- "width": null
268
- },
269
- {
270
- "width": null
271
- }
272
- ],
273
- [
274
- {
275
- "width": 12,
276
- "widget": "chart1701791122773"
277
- },
278
- {
279
- "equalHeight": false
280
- },
281
- {},
282
- {}
283
- ],
284
- [
285
- {
286
- "width": 4,
287
- "widget": "filtered-text1701791173259"
288
- },
289
- {
290
- "equalHeight": false,
291
- "width": 4,
292
- "widget": "filtered-text1701791674571"
293
- },
294
- {
295
- "width": 4,
296
- "widget": "filtered-text1701791683990"
297
- },
298
- {
299
- "width": null
300
- }
301
- ]
302
- ],
303
- "visualizations": {
304
- "chart1701791122773": {
305
- "type": "chart",
306
- "debugSvg": false,
307
- "chartMessage": {
308
- "noData": "No Data Available"
309
- },
310
- "title": "",
311
- "showTitle": false,
312
- "showDownloadMediaButton": false,
313
- "showChartBrush": false,
314
- "theme": "theme-blue",
315
- "animate": false,
316
- "fontSize": "small",
317
- "lineDatapointStyle": "hover",
318
- "barHasBorder": "false",
319
- "isLollipopChart": false,
320
- "lollipopShape": "circle",
321
- "lollipopColorStyle": "two-tone",
322
- "visualizationSubType": "regular",
323
- "barStyle": "",
324
- "roundingStyle": "standard",
325
- "tipRounding": "top",
326
- "isResponsiveTicks": true,
327
- "general": {
328
- "showDownloadButton": false
329
- },
330
- "padding": {
331
- "left": 5,
332
- "right": 5
333
- },
334
- "yAxis": {
335
- "hideAxis": false,
336
- "displayNumbersOnBar": false,
337
- "hideLabel": false,
338
- "hideTicks": false,
339
- "size": "75",
340
- "gridLines": true,
341
- "enablePadding": true,
342
- "min": "",
343
- "max": "",
344
- "labelColor": "#333",
345
- "tickLabelColor": "#333",
346
- "tickColor": "#333",
347
- "rightHideAxis": true,
348
- "rightAxisSize": 0,
349
- "rightLabel": "",
350
- "rightLabelOffsetSize": 0,
351
- "rightAxisLabelColor": "#333",
352
- "rightAxisTickLabelColor": "#333",
353
- "rightAxisTickColor": "#333",
354
- "numTicks": "10",
355
- "axisPadding": 0,
356
- "tickRotation": 0,
357
- "anchors": [],
358
- "label": "Percent of Emergency Department Visits"
359
- },
360
- "boxplot": {
361
- "plots": [],
362
- "borders": "true",
363
- "firstQuartilePercentage": 25,
364
- "thirdQuartilePercentage": 75,
365
- "boxWidthPercentage": 40,
366
- "plotOutlierValues": false,
367
- "plotNonOutlierValues": true,
368
- "legend": {
369
- "showHowToReadText": false,
370
- "howToReadText": ""
371
- },
372
- "labels": {
373
- "q1": "Lower Quartile",
374
- "q2": "q2",
375
- "q3": "Upper Quartile",
376
- "q4": "q4",
377
- "minimum": "Minimum",
378
- "maximum": "Maximum",
379
- "mean": "Mean",
380
- "median": "Median",
381
- "sd": "Standard Deviation",
382
- "iqr": "Interquartile Range",
383
- "total": "Total",
384
- "outliers": "Outliers",
385
- "values": "Values",
386
- "lowerBounds": "Lower Bounds",
387
- "upperBounds": "Upper Bounds"
388
- }
389
- },
390
- "topAxis": {
391
- "hasLine": false
392
- },
393
- "isLegendValue": false,
394
- "barThickness": 0.35,
395
- "barHeight": 25,
396
- "barSpace": 15,
397
- "heights": {
398
- "vertical": "400",
399
- "horizontal": 750
400
- },
401
- "xAxis": {
402
- "sortDates": false,
403
- "anchors": [],
404
- "type": "date",
405
- "showTargetLabel": true,
406
- "targetLabel": "Target",
407
- "hideAxis": false,
408
- "hideLabel": false,
409
- "hideTicks": false,
410
- "size": "95",
411
- "tickRotation": 0,
412
- "min": "",
413
- "max": "",
414
- "labelColor": "#333",
415
- "tickLabelColor": "#333",
416
- "tickColor": "#333",
417
- "numTicks": "15",
418
- "labelOffset": 65,
419
- "axisPadding": 0,
420
- "target": 0,
421
- "maxTickRotation": "45",
422
- "dataKey": "week_end_display",
423
- "dateParseFormat": "%Y/%_m/%_d",
424
- "dateDisplayFormat": "%m/%d/%Y",
425
- "label": "Week Ending"
426
- },
427
- "table": {
428
- "label": "Data Table",
429
- "expanded": false,
430
- "limitHeight": false,
431
- "height": "",
432
- "caption": "",
433
- "showDownloadUrl": false,
434
- "showDataTableLink": true,
435
- "indexLabel": "Week Ending",
436
- "download": false,
437
- "showVertical": true,
438
- "show": true
439
- },
440
- "orientation": "vertical",
441
- "color": "pinkpurple",
442
- "columns": {},
443
- "legend": {
444
- "behavior": "isolate",
445
- "singleRow": true,
446
- "colorCode": "",
447
- "reverseLabelOrder": false,
448
- "description": "",
449
- "dynamicLegend": false,
450
- "dynamicLegendDefaultText": "Show All",
451
- "dynamicLegendItemLimit": 5,
452
- "dynamicLegendItemLimitMessage": "Dynamic Legend Item Limit Hit.",
453
- "dynamicLegendChartMessage": "Select Options from the Legend",
454
- "lineMode": false,
455
- "verticalSorted": false,
456
- "hide": false,
457
- "position": "bottom"
458
- },
459
- "exclusions": {
460
- "active": false,
461
- "keys": []
462
- },
463
- "palette": "qualitative-bold",
464
- "isPaletteReversed": false,
465
- "twoColor": {
466
- "palette": "monochrome-1",
467
- "isPaletteReversed": false
468
- },
469
- "labels": false,
470
- "dataFormat": {
471
- "commas": false,
472
- "prefix": "",
473
- "suffix": "%",
474
- "abbreviated": false,
475
- "bottomSuffix": "",
476
- "bottomPrefix": "",
477
- "bottomAbbreviated": false,
478
- "roundTo": "1"
479
- },
480
- "confidenceKeys": {},
481
- "visual": {
482
- "border": true,
483
- "accent": true,
484
- "background": true,
485
- "verticalHoverLine": true,
486
- "horizontalHoverLine": false
487
- },
488
- "useLogScale": false,
489
- "filterBehavior": "Filter Change",
490
- "highlightedBarValues": [],
491
- "series": [
492
- {
493
- "dataKey": "percent_visits_combined",
494
- "name": "Combined",
495
- "type": "Line",
496
- "axis": "Left",
497
- "tooltip": true
498
- },
499
- {
500
- "dataKey": "percent_visits_covid",
501
- "name": "COVID",
502
- "type": "Line",
503
- "axis": "Left",
504
- "tooltip": true
505
- },
506
- {
507
- "dataKey": "percent_visits_influenza",
508
- "name": "Influenza",
509
- "type": "Line",
510
- "axis": "Left",
511
- "tooltip": true
512
- },
513
- {
514
- "dataKey": "percent_visits_rsv",
515
- "name": "RSV",
516
- "type": "Line",
517
- "axis": "Left",
518
- "tooltip": true
519
- }
520
- ],
521
- "tooltips": {
522
- "opacity": 90
523
- },
524
- "forestPlot": {
525
- "startAt": 0,
526
- "width": "auto",
527
- "colors": {
528
- "line": "",
529
- "shape": ""
530
- },
531
- "estimateField": "",
532
- "estimateRadius": "",
533
- "lowerCiField": "",
534
- "upperCiField": "",
535
- "shape": "",
536
- "rowHeight": 20,
537
- "showZeroLine": false,
538
- "description": {
539
- "show": true,
540
- "text": "description",
541
- "location": 0
542
- },
543
- "result": {
544
- "show": true,
545
- "text": "result",
546
- "location": 100
547
- },
548
- "radius": {
549
- "min": 1,
550
- "max": 8,
551
- "scalingColumn": ""
552
- },
553
- "regression": {
554
- "lower": 0,
555
- "upper": 0,
556
- "estimateField": 0
557
- },
558
- "leftWidthOffset": 0,
559
- "rightWidthOffset": 0
560
- },
561
- "brush": {
562
- "pattern_id": "brush_pattern",
563
- "accent_color": "#ddd"
564
- },
565
- "area": {
566
- "isStacked": false
567
- },
568
- "datasets": {},
569
- "visualizationType": "Line",
570
- "dataKey": "resp-data.json",
571
- "customColors": [
572
- "#000000",
573
- "#f06f19",
574
- "#0a58d6",
575
- "#890664",
576
- "#89bf13",
577
- "#94036f",
578
- "#87b6f9",
579
- "#867a77",
580
- "#000000"
581
- ],
582
- "dataFileName": "/wcms/vizdata/Respitory_Viruses/EmergencyDepartmentVisitCombined.json",
583
- "dataFileSourceType": "url",
584
- "validated": 4.23,
585
- "dynamicMarginTop": 109,
586
- "description": "<div class=\"text-left\">Data presented through: <span class=\"date_max_1\"></span>; Data as of: <span class=\"date_min_1\"></span></div><a href=\"https://data.cdc.gov/Public-Health-Surveillance/2023-Respiratory-Virus-Response-NSSP-Emergency-Dep/rdmq-nq56\">Dataset on data.cdc.gov</a> | <a href=\"https://data.cdc.gov/resource/tajw-whir.json\">Link to Dataset</a>",
587
- "uid": "chart1701791122773"
588
- },
589
- "filtered-text1701791173259": {
590
- "title": "COVID-19",
591
- "type": "filtered-text",
592
- "theme": "theme-blue",
593
- "fontSize": "small",
594
- "shadow": false,
595
- "filters": [],
596
- "visual": {
597
- "hideBackgroundColor": false,
598
- "background": false,
599
- "roundedBorders": false,
600
- "accent": false,
601
- "border": false,
602
- "borderColorTheme": false
603
- },
604
- "openModal": false,
605
- "uid": "filtered-text1701791173259",
606
- "visualizationType": "filtered-text",
607
- "dataDescription": {
608
- "horizontal": false,
609
- "series": false
610
- },
611
- "dataKey": "resp-data.json",
612
- "editing": false,
613
- "validated": 4.23,
614
- "textColumn": "ed_trends_covid"
615
- },
616
- "filtered-text1701791674571": {
617
- "title": "Influenza Change",
618
- "type": "filtered-text",
619
- "theme": "theme-blue",
620
- "fontSize": "small",
621
- "shadow": false,
622
- "filters": [],
623
- "visual": {
624
- "hideBackgroundColor": false,
625
- "background": false,
626
- "roundedBorders": false,
627
- "accent": false,
628
- "border": false,
629
- "borderColorTheme": false
630
- },
631
- "openModal": false,
632
- "uid": "filtered-text1701791674571",
633
- "visualizationType": "filtered-text",
634
- "dataKey": "resp-data.json",
635
- "dataDescription": {
636
- "horizontal": false,
637
- "series": false
638
- },
639
- "editing": false,
640
- "validated": 4.23,
641
- "textColumn": "ed_trends_influenza"
642
- },
643
- "filtered-text1701791683990": {
644
- "title": "RSV Change",
645
- "type": "filtered-text",
646
- "theme": "theme-blue",
647
- "fontSize": "small",
648
- "shadow": false,
649
- "filters": [],
650
- "visual": {
651
- "hideBackgroundColor": false,
652
- "background": false,
653
- "roundedBorders": false,
654
- "accent": false,
655
- "border": false,
656
- "borderColorTheme": false
657
- },
658
- "openModal": false,
659
- "uid": "filtered-text1701791683990",
660
- "visualizationType": "filtered-text",
661
- "dataKey": "resp-data.json",
662
- "dataDescription": {
663
- "horizontal": false,
664
- "series": false
665
- },
666
- "editing": false,
667
- "validated": 4.23,
668
- "textColumn": "ed_trends_rsv"
669
- },
670
- "filter-dropdowns1701792379133": {
671
- "newViz": true,
672
- "openModal": false,
673
- "uid": "filter-dropdowns1701792379133",
674
- "type": "filter-dropdowns",
675
- "visualizationType": "filter-dropdowns"
676
- },
677
- "filtered-text1701888972205": {
678
- "title": "Health Service Area",
679
- "type": "filtered-text",
680
- "theme": "theme-blue",
681
- "fontSize": "small",
682
- "shadow": false,
683
- "filters": [],
684
- "visual": {
685
- "hideBackgroundColor": false,
686
- "background": false,
687
- "roundedBorders": false,
688
- "accent": false,
689
- "border": false,
690
- "borderColorTheme": false
691
- },
692
- "openModal": false,
693
- "uid": "filtered-text1701888972205",
694
- "visualizationType": "filtered-text",
695
- "dataKey": "resp-data.json",
696
- "dataDescription": {
697
- "horizontal": false,
698
- "series": false
699
- },
700
- "editing": false,
701
- "validated": 4.23,
702
- "textColumn": "hsa"
703
- },
704
- "filtered-text1701888980655": {
705
- "title": "Counties Represented",
706
- "type": "filtered-text",
707
- "theme": "theme-blue",
708
- "fontSize": "small",
709
- "shadow": false,
710
- "filters": [],
711
- "visual": {
712
- "hideBackgroundColor": false,
713
- "background": false,
714
- "roundedBorders": false,
715
- "accent": false,
716
- "border": false,
717
- "borderColorTheme": false
718
- },
719
- "openModal": false,
720
- "uid": "filtered-text1701888980655",
721
- "visualizationType": "filtered-text",
722
- "dataKey": "resp-data.json",
723
- "dataDescription": {
724
- "horizontal": false,
725
- "series": false
726
- },
727
- "editing": false,
728
- "validated": 4.23,
729
- "textColumn": "hsa_counties"
730
- }
731
- },
732
- "table": {
733
- "label": "Data Table",
734
- "show": false,
735
- "showDownloadUrl": false,
736
- "showVertical": true
737
- },
738
- "datasets": {
739
- "resp-data.json": {
740
- "dataFileSize": 1159724,
741
- "dataFileName": "resp-data.json",
742
- "dataFileSourceType": "file",
743
- "dataFileFormat": "JSON",
744
- "preview": true,
745
- "dataUrl": "https://data.cdc.gov/resource/tajw-whir.json?geography=United%20States&$select=date_extract_y(week_end)||%22/%22||date_extract_m(week_end)||%22/%22||date_extract_d(week_end)%20as%20week_end_display,geography,county,percent_visits_combined,percent_visits_covid,percent_visits_influenza,percent_visits_rsv,hsa,hsa_counties&$order=county,week_end%20ASC&$limit=50000",
746
- "runtimeDataUrl": "https://data.cdc.gov/resource/tajw-whir.json?geography=United%20States&$select=date_extract_y(week_end)||%22/%22||date_extract_m(week_end)||%22/%22||date_extract_d(week_end)%20as%20week_end_display,geography,county,percent_visits_combined,percent_visits_covid,percent_visits_influenza,percent_visits_rsv,hsa,hsa_counties&$order=county,week_end%20ASC&$limit=50000"
747
- }
748
- },
749
- "type": "dashboard",
750
- "uuid": 1701888964970,
751
- "runtime": {}
752
- }