@cdc/map 4.25.8 → 4.25.10

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 (84) hide show
  1. package/.claude/settings.local.json +30 -0
  2. package/dist/cdcmap.js +54263 -52600
  3. package/examples/private/c.json +290 -0
  4. package/examples/private/canvas-city-hover.json +787 -0
  5. package/examples/private/d.json +345 -0
  6. package/examples/private/g.json +1 -0
  7. package/examples/private/h.json +105911 -0
  8. package/examples/private/measles-data.json +378 -0
  9. package/examples/private/measles.json +211 -0
  10. package/examples/private/north-dakota.json +1132 -0
  11. package/examples/private/state-with-pattern.json +883 -0
  12. package/index.html +35 -34
  13. package/package.json +26 -5
  14. package/src/CdcMap.tsx +23 -8
  15. package/src/CdcMapComponent.tsx +215 -309
  16. package/src/_stories/CdcMap.Filters.stories.tsx +2 -2
  17. package/src/_stories/CdcMap.Legend.Gradient.stories.tsx +3 -3
  18. package/src/_stories/CdcMap.Legend.stories.tsx +7 -4
  19. package/src/_stories/CdcMap.Patterns.stories.tsx +2 -2
  20. package/src/_stories/CdcMap.Table.stories.tsx +2 -2
  21. package/src/_stories/CdcMap.stories.tsx +15 -5
  22. package/src/_stories/GoogleMap.stories.tsx +2 -2
  23. package/src/_stories/UsaMap.NoData.stories.tsx +2 -2
  24. package/src/_stories/_mock/equal-number.json +1109 -0
  25. package/src/_stories/_mock/us-bubble-cities.json +306 -0
  26. package/src/components/BubbleList.tsx +16 -12
  27. package/src/components/CityList.tsx +85 -107
  28. package/src/components/DataTable.tsx +37 -9
  29. package/src/components/EditorPanel/components/EditorPanel.tsx +177 -165
  30. package/src/components/EditorPanel/components/HexShapeSettings.tsx +3 -2
  31. package/src/components/EditorPanel/components/Panels/Panel.PatternSettings.tsx +7 -5
  32. package/src/components/Geo.tsx +2 -0
  33. package/src/components/Legend/components/Legend.tsx +109 -73
  34. package/src/components/Legend/components/LegendGroup/Legend.Group.tsx +10 -7
  35. package/src/components/MapContainer.tsx +52 -0
  36. package/src/components/MapControls.tsx +44 -0
  37. package/src/components/NavigationMenu.tsx +11 -2
  38. package/src/components/UsaMap/components/SingleState/SingleState.CountyOutput.tsx +24 -7
  39. package/src/components/UsaMap/components/UsaMap.County.tsx +111 -37
  40. package/src/components/UsaMap/components/UsaMap.Region.tsx +23 -5
  41. package/src/components/UsaMap/components/UsaMap.SingleState.tsx +6 -6
  42. package/src/components/UsaMap/components/UsaMap.State.tsx +28 -10
  43. package/src/components/UsaMap/helpers/map.ts +2 -2
  44. package/src/components/WorldMap/WorldMap.tsx +113 -25
  45. package/src/components/ZoomControls.tsx +6 -9
  46. package/src/context/LegendMemoContext.tsx +30 -0
  47. package/src/context.ts +1 -40
  48. package/src/data/initial-state.js +143 -130
  49. package/src/data/supported-geos.js +17 -2
  50. package/src/helpers/applyColorToLegend.ts +116 -20
  51. package/src/helpers/applyLegendToRow.ts +10 -6
  52. package/src/helpers/componentHelpers.ts +8 -0
  53. package/src/helpers/constants.ts +12 -0
  54. package/src/helpers/dataTableHelpers.ts +6 -0
  55. package/src/helpers/displayGeoName.ts +1 -1
  56. package/src/helpers/generateRuntimeLegend.ts +44 -8
  57. package/src/helpers/generateRuntimeLegendHash.ts +4 -2
  58. package/src/helpers/getColumnNames.ts +1 -1
  59. package/src/helpers/getPatternForRow.ts +36 -0
  60. package/src/helpers/getStatesPicked.ts +8 -5
  61. package/src/helpers/index.ts +11 -3
  62. package/src/helpers/isLegendItemDisabled.ts +16 -0
  63. package/src/helpers/mapObserverHelpers.ts +40 -0
  64. package/src/helpers/resetLegendToggles.ts +3 -2
  65. package/src/helpers/toggleLegendActive.ts +6 -11
  66. package/src/helpers/urlDataHelpers.ts +70 -0
  67. package/src/hooks/useGeoClickHandler.ts +35 -1
  68. package/src/hooks/useLegendMemo.ts +17 -0
  69. package/src/hooks/useMapLayers.tsx +5 -4
  70. package/src/hooks/useStateZoom.tsx +25 -6
  71. package/src/hooks/useTooltip.ts +1 -2
  72. package/src/index.jsx +0 -2
  73. package/src/store/map.reducer.ts +17 -6
  74. package/src/test/CdcMap.test.jsx +11 -0
  75. package/src/types/MapConfig.ts +23 -14
  76. package/src/types/MapContext.ts +0 -7
  77. package/src/types/runtimeLegend.ts +17 -1
  78. package/vite.config.js +2 -7
  79. package/vitest.config.ts +16 -0
  80. package/src/coreStyles_map.scss +0 -3
  81. package/src/helpers/colorDistributions.ts +0 -12
  82. package/src/helpers/generateColorsArray.ts +0 -14
  83. package/src/helpers/tests/generateColorsArray.test.ts +0 -18
  84. package/src/helpers/tests/generateRuntimeLegendHash.test.ts +0 -11
@@ -0,0 +1,1132 @@
1
+ {
2
+ "dashboard": {
3
+ "theme": "theme-blue",
4
+ "sharedFilters": [
5
+ {
6
+ "key": "State/Territory",
7
+ "showDropdown": true,
8
+ "values": [
9
+ "Alabama",
10
+ "Alaska",
11
+ "Arizona",
12
+ "Arkansas",
13
+ "California",
14
+ "Colorado",
15
+ "Connecticut",
16
+ "Delaware",
17
+ "District of Columbia",
18
+ "Florida",
19
+ "Georgia",
20
+ "Guam",
21
+ "Hawaii",
22
+ "Idaho",
23
+ "Illinois",
24
+ "Indiana",
25
+ "Iowa",
26
+ "Kansas",
27
+ "Kentucky",
28
+ "Louisiana",
29
+ "Maine",
30
+ "Maryland",
31
+ "Massachusetts",
32
+ "Michigan",
33
+ "Minnesota",
34
+ "Mississippi",
35
+ "Missouri",
36
+ "Montana",
37
+ "Nebraska",
38
+ "Nevada",
39
+ "New Hampshire",
40
+ "New Jersey",
41
+ "New Mexico",
42
+ "New York",
43
+ "North Carolina",
44
+ "North Dakota",
45
+ "Ohio",
46
+ "Oklahoma",
47
+ "Oregon",
48
+ "Pennsylvania",
49
+ "Rhode Island",
50
+ "South Carolina",
51
+ "South Dakota",
52
+ "Tennessee",
53
+ "Texas",
54
+ "Utah",
55
+ "Vermont",
56
+ "Virginia",
57
+ "Washington",
58
+ "West Virginia",
59
+ "Wisconsin",
60
+ "Wyoming"
61
+ ],
62
+ "type": "datafilter",
63
+ "columnName": "State/Territory",
64
+ "usedBy": [
65
+ "filtered-text1725461136347",
66
+ "map1725461946328",
67
+ "chart1725462823392",
68
+ "markup-include1725461699694",
69
+ "markup-include1727869322714"
70
+ ],
71
+ "tier": 1,
72
+ "setByQueryParameter": "stateval",
73
+ "orderedValues": [
74
+ "Alabama",
75
+ "Alaska",
76
+ "Arizona",
77
+ "Arkansas",
78
+ "California",
79
+ "Colorado",
80
+ "Connecticut",
81
+ "Delaware",
82
+ "District of Columbia",
83
+ "Florida",
84
+ "Georgia",
85
+ "Guam",
86
+ "Hawaii",
87
+ "Idaho",
88
+ "Illinois",
89
+ "Indiana",
90
+ "Iowa",
91
+ "Kansas",
92
+ "Kentucky",
93
+ "Louisiana",
94
+ "Maine",
95
+ "Maryland",
96
+ "Massachusetts",
97
+ "Michigan",
98
+ "Minnesota",
99
+ "Mississippi",
100
+ "Missouri",
101
+ "Montana",
102
+ "Nebraska",
103
+ "Nevada",
104
+ "New Hampshire",
105
+ "New Jersey",
106
+ "New Mexico",
107
+ "New York",
108
+ "North Carolina",
109
+ "North Dakota",
110
+ "Ohio",
111
+ "Oklahoma",
112
+ "Oregon",
113
+ "Pennsylvania",
114
+ "Rhode Island",
115
+ "South Carolina",
116
+ "South Dakota",
117
+ "Tennessee",
118
+ "Texas",
119
+ "Utah",
120
+ "Vermont",
121
+ "Virginia",
122
+ "Washington",
123
+ "West Virginia",
124
+ "Wisconsin",
125
+ "Wyoming"
126
+ ]
127
+ }
128
+ ]
129
+ },
130
+ "rows": [
131
+ {
132
+ "columns": [
133
+ {
134
+ "width": 12,
135
+ "widget": "dashboardFilters1725458901075"
136
+ },
137
+ {},
138
+ {}
139
+ ]
140
+ },
141
+ {
142
+ "columns": [
143
+ {
144
+ "width": 12,
145
+ "widget": "filtered-text1725461136347"
146
+ }
147
+ ],
148
+ "uuid": 1728577296021
149
+ },
150
+ {
151
+ "columns": [
152
+ {
153
+ "width": 12,
154
+ "widget": "markup-include1725461518805"
155
+ }
156
+ ],
157
+ "uuid": 1728577296021
158
+ },
159
+ {
160
+ "columns": [
161
+ {
162
+ "width": 12,
163
+ "widget": "markup-include1725461699694"
164
+ }
165
+ ],
166
+ "uuid": 1727876521552
167
+ },
168
+ {
169
+ "columns": [
170
+ {
171
+ "width": 4,
172
+ "widget": "markup-include1727869322714"
173
+ },
174
+ {
175
+ "width": 8,
176
+ "widget": "map1725461946328"
177
+ }
178
+ ],
179
+ "uuid": 1727961679952
180
+ },
181
+ {
182
+ "columns": [
183
+ {
184
+ "width": 12,
185
+ "widget": "markup-include1725461520415"
186
+ }
187
+ ],
188
+ "uuid": 1727961677157
189
+ },
190
+ {
191
+ "columns": [
192
+ {
193
+ "width": 12,
194
+ "widget": "chart1725462823392"
195
+ }
196
+ ],
197
+ "uuid": 1727961674498
198
+ }
199
+ ],
200
+ "visualizations": {
201
+ "dashboardFilters1725458901075": {
202
+ "filters": [],
203
+ "filterBehavior": "Filter Change",
204
+ "newViz": true,
205
+ "openModal": true,
206
+ "uid": "dashboardFilters1725458901075",
207
+ "type": "dashboardFilters",
208
+ "sharedFilterIndexes": [
209
+ 0
210
+ ],
211
+ "visualizationType": "dashboardFilters"
212
+ },
213
+ "filtered-text1725461136347": {
214
+ "title": "",
215
+ "type": "filtered-text",
216
+ "theme": "theme-blue",
217
+ "fontSize": "small",
218
+ "shadow": false,
219
+ "filters": [],
220
+ "visual": {
221
+ "hideBackgroundColor": false,
222
+ "background": false,
223
+ "roundedBorders": false,
224
+ "accent": false,
225
+ "border": false,
226
+ "borderColorTheme": false
227
+ },
228
+ "filterBehavior": "Filter Change",
229
+ "openModal": true,
230
+ "uid": "filtered-text1725461136347",
231
+ "visualizationType": "filtered-text",
232
+ "dataDescription": {
233
+ "horizontal": false,
234
+ "series": false
235
+ },
236
+ "dataKey": "All State/Territory Wastewater Viral Activity Levels",
237
+ "version": "4.24.9",
238
+ "textColumn": "Notes"
239
+ },
240
+ "markup-include1725461518805": {
241
+ "filters": [],
242
+ "filterBehavior": "Filter Change",
243
+ "openModal": false,
244
+ "uid": "markup-include1725461518805",
245
+ "type": "markup-include",
246
+ "contentEditor": {
247
+ "inlineHTML": "<h3>Current Site Levels</h3>This map shows current wastewater viral activity levels of SARS-COV-2 at individual wastewater treatment plants or sampling locations reporting in the last week. A site may serve multiple counties, including those in another state.",
248
+ "markupVariables": [],
249
+ "showHeader": true,
250
+ "srcUrl": "#example",
251
+ "title": "",
252
+ "useInlineHTML": true
253
+ },
254
+ "theme": "theme-blue",
255
+ "visual": {
256
+ "border": false,
257
+ "accent": false,
258
+ "background": false,
259
+ "hideBackgroundColor": false,
260
+ "borderColorTheme": false
261
+ },
262
+ "showEditorPanel": true,
263
+ "visualizationType": "markup-include",
264
+ "dataDescription": {
265
+ "horizontal": false,
266
+ "series": false
267
+ },
268
+ "dataKey": "All State/Territory Wastewater Viral Activity Levels",
269
+ "version": "4.24.10"
270
+ },
271
+ "markup-include1725461520415": {
272
+ "filters": [],
273
+ "filterBehavior": "Filter Change",
274
+ "openModal": false,
275
+ "uid": "markup-include1725461520415",
276
+ "type": "markup-include",
277
+ "contentEditor": {
278
+ "inlineHTML": "<h3>Trends over Time</h3>This chart shows trends of SARS-COV-2 viral activity levels in wastewater. For comparison, you can also see national and regional trends.",
279
+ "markupVariables": [],
280
+ "showHeader": true,
281
+ "srcUrl": "#example",
282
+ "title": "",
283
+ "useInlineHTML": true
284
+ },
285
+ "theme": "theme-blue",
286
+ "visual": {
287
+ "border": false,
288
+ "accent": false,
289
+ "background": false,
290
+ "hideBackgroundColor": false,
291
+ "borderColorTheme": false
292
+ },
293
+ "showEditorPanel": true,
294
+ "visualizationType": "markup-include",
295
+ "dataDescription": {
296
+ "horizontal": false,
297
+ "series": false
298
+ },
299
+ "dataKey": "All State/Territory Wastewater Viral Activity Levels",
300
+ "version": "4.25.7",
301
+ "migrations": {
302
+ "addColorMigration": true
303
+ }
304
+ },
305
+ "markup-include1725461699694": {
306
+ "filters": [],
307
+ "filterBehavior": "Filter Change",
308
+ "openModal": false,
309
+ "uid": "markup-include1725461699694",
310
+ "type": "markup-include",
311
+ "contentEditor": {
312
+ "inlineHTML": "<h5 class=\"fs1\">Time Period: {{time}}</h5>",
313
+ "markupVariables": [
314
+ {
315
+ "columnName": "Reporting_Week",
316
+ "conditions": [],
317
+ "name": "time",
318
+ "tag": "{{time}}"
319
+ }
320
+ ],
321
+ "showHeader": true,
322
+ "srcUrl": "#example",
323
+ "title": "",
324
+ "useInlineHTML": true
325
+ },
326
+ "theme": "theme-amber",
327
+ "visual": {
328
+ "border": false,
329
+ "accent": false,
330
+ "background": false,
331
+ "hideBackgroundColor": false,
332
+ "borderColorTheme": false
333
+ },
334
+ "showEditorPanel": true,
335
+ "visualizationType": "markup-include",
336
+ "dataDescription": {
337
+ "horizontal": false,
338
+ "series": false
339
+ },
340
+ "version": "4.24.10",
341
+ "dataKey": "Current Site Levels"
342
+ },
343
+ "map1725461946328": {
344
+ "annotations": [],
345
+ "general": {
346
+ "geoType": "single-state",
347
+ "annotationDropdownText": "Annotations",
348
+ "geoBorderColor": "darkGray",
349
+ "headerColor": "theme-blue",
350
+ "title": "",
351
+ "showTitle": true,
352
+ "showSidebar": true,
353
+ "showDownloadMediaButton": false,
354
+ "displayAsHex": false,
355
+ "displayStateLabels": false,
356
+ "territoriesAlwaysShow": false,
357
+ "language": "en",
358
+ "geoLabelOverride": "Sewershed",
359
+ "hasRegions": false,
360
+ "fullBorder": false,
361
+ "type": "data",
362
+ "convertFipsCodes": true,
363
+ "palette": {
364
+ "isReversed": false
365
+ },
366
+ "allowMapZoom": true,
367
+ "hideGeoColumnInTooltip": true,
368
+ "hidePrimaryColumnInTooltip": false,
369
+ "statePicked": {
370
+ "fipsCode": "01",
371
+ "stateName": "Alabama"
372
+ },
373
+ "expandDataTable": false,
374
+ "filterControlsStatePicked": "State/Territory",
375
+ "noStateFoundMessage": "Map Unavailable",
376
+ "introText": "",
377
+ "subtext": "<div class=\"text-left ml-3 pb-3\"> </div>",
378
+ "navigationTarget": "_self"
379
+ },
380
+ "type": "map",
381
+ "color": "bluegreen",
382
+ "columns": {
383
+ "geo": {
384
+ "name": "Sewershed_ID",
385
+ "label": "Location",
386
+ "tooltip": false,
387
+ "dataTable": true
388
+ },
389
+ "primary": {
390
+ "dataTable": true,
391
+ "tooltip": true,
392
+ "prefix": "",
393
+ "suffix": "",
394
+ "name": "WVAL_Category",
395
+ "label": "Viral Activity Level",
396
+ "roundToPlace": 0
397
+ },
398
+ "navigate": {
399
+ "name": ""
400
+ },
401
+ "latitude": {
402
+ "name": "latitude"
403
+ },
404
+ "longitude": {
405
+ "name": "longitude"
406
+ },
407
+ "additionalColumn1": {
408
+ "label": "Counties Served",
409
+ "dataTable": true,
410
+ "tooltips": false,
411
+ "prefix": "",
412
+ "suffix": "",
413
+ "name": "Counties_Served",
414
+ "tooltip": true,
415
+ "useCommas": false
416
+ },
417
+ "additionalColumn2": {
418
+ "label": "Population Served",
419
+ "dataTable": true,
420
+ "tooltips": false,
421
+ "prefix": "",
422
+ "suffix": "",
423
+ "name": "Population_Served",
424
+ "tooltip": true,
425
+ "useCommas": true
426
+ },
427
+ "additionalColumn3": {
428
+ "label": "First Sample Collected",
429
+ "dataTable": true,
430
+ "tooltips": false,
431
+ "prefix": "",
432
+ "suffix": "",
433
+ "name": "date_included_in_wval_calcs",
434
+ "tooltip": true
435
+ }
436
+ },
437
+ "legend": {
438
+ "descriptions": {},
439
+ "specialClasses": [],
440
+ "unified": false,
441
+ "singleColumn": false,
442
+ "singleRow": true,
443
+ "verticalSorted": false,
444
+ "showSpecialClassesLast": false,
445
+ "dynamicDescription": false,
446
+ "type": "category",
447
+ "numberOfItems": 3,
448
+ "position": "bottom",
449
+ "title": "Current Site Levels",
450
+ "categoryValuesOrder": [
451
+ "Very High",
452
+ "High",
453
+ "Moderate",
454
+ "Low",
455
+ "Very Low",
456
+ "No Data",
457
+ "Minimal",
458
+ null
459
+ ],
460
+ "additionalCategories": [
461
+ "Very High",
462
+ "High",
463
+ "Moderate",
464
+ "Low",
465
+ "Very Low",
466
+ "No Data"
467
+ ],
468
+ "style": "circles",
469
+ "subStyle": "linear blocks",
470
+ "tickRotation": "",
471
+ "singleColumnLegend": false,
472
+ "hideBorder": false,
473
+ "description": "Select a level to add or remove from map."
474
+ },
475
+ "filters": [],
476
+ "table": {
477
+ "wrapColumns": false,
478
+ "label": "Data Table",
479
+ "expanded": false,
480
+ "limitHeight": false,
481
+ "height": "",
482
+ "caption": "",
483
+ "showDownloadUrl": false,
484
+ "showDataTableLink": false,
485
+ "showFullGeoNameInCSV": false,
486
+ "forceDisplay": false,
487
+ "download": true,
488
+ "indexLabel": "",
489
+ "showDownloadLinkBelow": true
490
+ },
491
+ "tooltips": {
492
+ "appearanceType": "hover",
493
+ "linkLabel": "Learn More",
494
+ "capitalizeLabels": true,
495
+ "opacity": 90
496
+ },
497
+ "visual": {
498
+ "minBubbleSize": 1,
499
+ "maxBubbleSize": 20,
500
+ "extraBubbleBorder": false,
501
+ "cityStyle": "circle",
502
+ "cityStyleLabel": "",
503
+ "showBubbleZeros": false,
504
+ "additionalCityStyles": [],
505
+ "geoCodeCircleSize": "2"
506
+ },
507
+ "mapPosition": {
508
+ "coordinates": [
509
+ 0,
510
+ 0
511
+ ],
512
+ "zoom": 1
513
+ },
514
+ "map": {
515
+ "layers": [],
516
+ "patterns": []
517
+ },
518
+ "hexMap": {
519
+ "type": "",
520
+ "shapeGroups": [
521
+ {
522
+ "legendTitle": "",
523
+ "legendDescription": "",
524
+ "items": [
525
+ {
526
+ "key": "",
527
+ "shape": "Arrow Up",
528
+ "column": "",
529
+ "operator": "=",
530
+ "value": ""
531
+ }
532
+ ]
533
+ }
534
+ ]
535
+ },
536
+ "filterBehavior": "Filter Change",
537
+ "filterIntro": "",
538
+ "openModal": true,
539
+ "uid": "map1725461946328",
540
+ "dataDescription": {
541
+ "horizontal": false,
542
+ "series": false
543
+ },
544
+ "dataKey": "Current Site Levels",
545
+ "version": "4.25.1",
546
+ "customColors": [
547
+ "#34547B",
548
+ "#34547B",
549
+ "#4B7F9B",
550
+ "#6bb0bd",
551
+ "#9fdad0",
552
+ "#c8efda",
553
+ "#B4B4B4",
554
+ "#B4B4B4",
555
+ "#B4B4B4",
556
+ "#c8efda",
557
+ "#c8efda",
558
+ "#C8EFDA",
559
+ "#C8EFDA"
560
+ ],
561
+ "migrations": {
562
+ "addColorMigration": true
563
+ }
564
+ },
565
+ "chart1725462823392": {
566
+ "annotations": [],
567
+ "type": "chart",
568
+ "debugSvg": false,
569
+ "chartMessage": {
570
+ "noData": "No Data Available"
571
+ },
572
+ "title": "",
573
+ "showTitle": false,
574
+ "showDownloadMediaButton": false,
575
+ "theme": "theme-blue",
576
+ "animate": false,
577
+ "fontSize": "medium",
578
+ "lineDatapointStyle": "hover",
579
+ "lineDatapointColor": "Same as Line",
580
+ "barHasBorder": "false",
581
+ "isLollipopChart": false,
582
+ "lollipopShape": "circle",
583
+ "lollipopColorStyle": "two-tone",
584
+ "visualizationSubType": "regular",
585
+ "barStyle": "flat",
586
+ "roundingStyle": "standard",
587
+ "tipRounding": "top",
588
+ "isResponsiveTicks": false,
589
+ "general": {
590
+ "annotationDropdownText": "Annotations",
591
+ "showMissingDataLabel": true,
592
+ "showSuppressedSymbol": true,
593
+ "showZeroValueData": true,
594
+ "hideNullValue": true,
595
+ "showZeroValueDataLabel": true
596
+ },
597
+ "padding": {
598
+ "left": 5,
599
+ "right": 5
600
+ },
601
+ "preliminaryData": [
602
+ {
603
+ "type": "effect",
604
+ "label": "<5% Population",
605
+ "column": "hatch",
606
+ "value": "Limited Coverage",
607
+ "style": "Open Circles",
608
+ "displayTooltip": true,
609
+ "displayLegend": true,
610
+ "displayTable": true,
611
+ "symbol": "",
612
+ "iconCode": "",
613
+ "lineCode": "◯",
614
+ "hideBarSymbol": false,
615
+ "hideLineStyle": false,
616
+ "circleSize": "4",
617
+ "displayGray": true,
618
+ "seriesKeys": [
619
+ "state_med_conc"
620
+ ]
621
+ }
622
+ ],
623
+ "yAxis": {
624
+ "hideAxis": false,
625
+ "displayNumbersOnBar": false,
626
+ "hideLabel": false,
627
+ "hideTicks": false,
628
+ "size": "100",
629
+ "gridLines": true,
630
+ "enablePadding": false,
631
+ "min": "0",
632
+ "max": "",
633
+ "labelColor": "#333",
634
+ "tickLabelColor": "#333",
635
+ "tickColor": "#333",
636
+ "rightHideAxis": true,
637
+ "rightAxisSize": 0,
638
+ "rightLabel": "",
639
+ "rightLabelOffsetSize": 0,
640
+ "rightAxisLabelColor": "#333",
641
+ "rightAxisTickLabelColor": "#333",
642
+ "rightAxisTickColor": "#333",
643
+ "numTicks": "",
644
+ "axisPadding": 0,
645
+ "scalePadding": 10,
646
+ "tickRotation": 0,
647
+ "anchors": [],
648
+ "shoMissingDataLabel": true,
649
+ "showMissingDataLine": true,
650
+ "categories": [
651
+ {
652
+ "label": "Very Low",
653
+ "height": "2",
654
+ "color": "#C8EFDA"
655
+ },
656
+ {
657
+ "label": "Low",
658
+ "height": "1.4",
659
+ "color": "#9FDAD0"
660
+ },
661
+ {
662
+ "label": "Moderate",
663
+ "height": "1.9",
664
+ "color": "#6BB0BD"
665
+ },
666
+ {
667
+ "label": "High",
668
+ "height": "2.5",
669
+ "color": "#4B7F9B"
670
+ },
671
+ {
672
+ "label": "Very High",
673
+ "height": "",
674
+ "color": "#34547B"
675
+ }
676
+ ],
677
+ "type": "categorical",
678
+ "maxValue": 38.26543174503503
679
+ },
680
+ "boxplot": {
681
+ "plots": [],
682
+ "borders": "true",
683
+ "plotOutlierValues": false,
684
+ "plotNonOutlierValues": true,
685
+ "labels": {
686
+ "q1": "Lower Quartile",
687
+ "q2": "q2",
688
+ "q3": "Upper Quartile",
689
+ "q4": "q4",
690
+ "minimum": "Minimum",
691
+ "maximum": "Maximum",
692
+ "mean": "Mean",
693
+ "median": "Median",
694
+ "sd": "Standard Deviation",
695
+ "iqr": "Interquartile Range",
696
+ "total": "Total",
697
+ "outliers": "Outliers",
698
+ "values": "Values",
699
+ "lowerBounds": "Lower Bounds",
700
+ "upperBounds": "Upper Bounds",
701
+ "count": "Count"
702
+ },
703
+ "firstQuartilePercentage": 25,
704
+ "thirdQuartilePercentage": 75,
705
+ "boxWidthPercentage": 40,
706
+ "legend": {
707
+ "showHowToReadText": false,
708
+ "howToReadText": ""
709
+ }
710
+ },
711
+ "topAxis": {
712
+ "hasLine": false
713
+ },
714
+ "isLegendValue": false,
715
+ "barThickness": 0.35,
716
+ "barHeight": 25,
717
+ "barSpace": 15,
718
+ "heights": {
719
+ "vertical": "275",
720
+ "horizontal": 750
721
+ },
722
+ "xAxis": {
723
+ "sortDates": false,
724
+ "anchors": [],
725
+ "type": "date",
726
+ "showTargetLabel": true,
727
+ "targetLabel": "Target",
728
+ "hideAxis": false,
729
+ "hideLabel": false,
730
+ "hideTicks": false,
731
+ "size": "50",
732
+ "tickRotation": "45",
733
+ "min": "",
734
+ "max": "",
735
+ "labelColor": "#333",
736
+ "tickLabelColor": "#333",
737
+ "tickColor": "#333",
738
+ "numTicks": "",
739
+ "labelOffset": 0,
740
+ "axisPadding": 200,
741
+ "target": 0,
742
+ "maxTickRotation": 0,
743
+ "padding": 6,
744
+ "showYearsOnce": false,
745
+ "sortByRecentDate": false,
746
+ "brushActive": false,
747
+ "dataKey": "Week_Ending_Date",
748
+ "dateParseFormat": "%Y-%m-%d",
749
+ "dateDisplayFormat": "%m/%d/%y",
750
+ "tickWidthMax": 67,
751
+ "axisBBox": 103.25208282470703,
752
+ "label": "Week Ending"
753
+ },
754
+ "table": {
755
+ "label": "Data Table",
756
+ "expanded": false,
757
+ "limitHeight": false,
758
+ "height": "",
759
+ "caption": "",
760
+ "showDownloadUrl": true,
761
+ "showDataTableLink": false,
762
+ "showDownloadLinkBelow": true,
763
+ "indexLabel": "",
764
+ "download": true,
765
+ "showVertical": true,
766
+ "dateDisplayFormat": "",
767
+ "showMissingDataLabel": true,
768
+ "showSuppressedSymbol": true,
769
+ "show": false,
770
+ "sharedFilterColumns": [
771
+ "State/Territory"
772
+ ]
773
+ },
774
+ "orientation": "vertical",
775
+ "color": "pinkpurple",
776
+ "columns": {
777
+ "WVAL_Category": {
778
+ "label": "State WVAL Category",
779
+ "dataTable": true,
780
+ "tooltips": true,
781
+ "prefix": "",
782
+ "suffix": "",
783
+ "forestPlot": false,
784
+ "startingPoint": "0",
785
+ "forestPlotAlignRight": false,
786
+ "roundToPlace": 0,
787
+ "commas": false,
788
+ "showInViz": false,
789
+ "forestPlotStartingPoint": 0,
790
+ "name": "WVAL_Category",
791
+ "series": "state_med_conc"
792
+ }
793
+ },
794
+ "legend": {
795
+ "hide": false,
796
+ "behavior": "isolate",
797
+ "axisAlign": true,
798
+ "singleRow": true,
799
+ "colorCode": "",
800
+ "reverseLabelOrder": false,
801
+ "description": "",
802
+ "dynamicLegend": false,
803
+ "dynamicLegendDefaultText": "Show All",
804
+ "dynamicLegendItemLimit": 5,
805
+ "dynamicLegendItemLimitMessage": "Dynamic Legend Item Limit Hit.",
806
+ "dynamicLegendChartMessage": "Select Options from the Legend",
807
+ "label": "",
808
+ "lineMode": false,
809
+ "verticalSorted": false,
810
+ "highlightOnHover": false,
811
+ "hideSuppressedLabels": false,
812
+ "hideSuppressionLink": false,
813
+ "seriesHighlight": [],
814
+ "style": "lines",
815
+ "subStyle": "linear blocks",
816
+ "groupBy": "",
817
+ "shape": "circle",
818
+ "tickRotation": "",
819
+ "order": "dataColumn",
820
+ "hideBorder": {
821
+ "side": false,
822
+ "topBottom": true
823
+ },
824
+ "position": "bottom",
825
+ "orderedValues": [],
826
+ "unified": true
827
+ },
828
+ "brush": {
829
+ "height": 25,
830
+ "active": false
831
+ },
832
+ "exclusions": {
833
+ "active": false,
834
+ "keys": []
835
+ },
836
+ "palette": "qualitative-bold",
837
+ "isPaletteReversed": false,
838
+ "twoColor": {
839
+ "palette": "monochrome-1",
840
+ "isPaletteReversed": false
841
+ },
842
+ "labels": false,
843
+ "dataFormat": {
844
+ "commas": false,
845
+ "prefix": "",
846
+ "suffix": "",
847
+ "abbreviated": false,
848
+ "bottomSuffix": "",
849
+ "bottomPrefix": "",
850
+ "bottomAbbreviated": false,
851
+ "roundTo": "2"
852
+ },
853
+ "confidenceKeys": {},
854
+ "visual": {
855
+ "border": true,
856
+ "accent": true,
857
+ "background": true,
858
+ "verticalHoverLine": false,
859
+ "horizontalHoverLine": false,
860
+ "lineDatapointSymbol": "none",
861
+ "maximumShapeAmount": 7
862
+ },
863
+ "useLogScale": false,
864
+ "filterBehavior": "Filter Change",
865
+ "highlightedBarValues": [],
866
+ "series": [
867
+ {
868
+ "dataKey": "State/Territory_WVAL",
869
+ "type": "Line",
870
+ "axis": "Left",
871
+ "tooltip": true,
872
+ "lineType": "curveMonotoneX",
873
+ "weight": "",
874
+ "name": "State/Territory"
875
+ },
876
+ {
877
+ "dataKey": "National_WVAL",
878
+ "type": "Line",
879
+ "axis": "Left",
880
+ "tooltip": true,
881
+ "lineType": "curveMonotoneX",
882
+ "name": "National"
883
+ },
884
+ {
885
+ "dataKey": "Regional_WVAL",
886
+ "type": "Line",
887
+ "axis": "Left",
888
+ "tooltip": true,
889
+ "lineType": "curveMonotoneX",
890
+ "name": "Regional"
891
+ }
892
+ ],
893
+ "tooltips": {
894
+ "opacity": 90,
895
+ "singleSeries": false,
896
+ "dateDisplayFormat": ""
897
+ },
898
+ "forestPlot": {
899
+ "startAt": 0,
900
+ "colors": {
901
+ "line": "",
902
+ "shape": ""
903
+ },
904
+ "lineOfNoEffect": {
905
+ "show": true
906
+ },
907
+ "type": "",
908
+ "pooledResult": {
909
+ "diamondHeight": 5,
910
+ "column": ""
911
+ },
912
+ "estimateField": "",
913
+ "estimateRadius": "",
914
+ "shape": "square",
915
+ "rowHeight": 20,
916
+ "description": {
917
+ "show": true,
918
+ "text": "description",
919
+ "location": 0
920
+ },
921
+ "result": {
922
+ "show": true,
923
+ "text": "result",
924
+ "location": 100
925
+ },
926
+ "radius": {
927
+ "min": 2,
928
+ "max": 10,
929
+ "scalingColumn": ""
930
+ },
931
+ "regression": {
932
+ "lower": 0,
933
+ "upper": 0,
934
+ "estimateField": 0
935
+ },
936
+ "leftWidthOffset": 0,
937
+ "rightWidthOffset": 0,
938
+ "showZeroLine": false,
939
+ "leftLabel": "",
940
+ "rightLabel": ""
941
+ },
942
+ "area": {
943
+ "isStacked": false
944
+ },
945
+ "sankey": {
946
+ "title": {
947
+ "defaultColor": "black"
948
+ },
949
+ "iterations": 1,
950
+ "rxValue": 0.9,
951
+ "overallSize": {
952
+ "width": 900,
953
+ "height": 700
954
+ },
955
+ "margin": {
956
+ "margin_y": 25,
957
+ "margin_x": 0
958
+ },
959
+ "nodeSize": {
960
+ "nodeWidth": 26,
961
+ "nodeHeight": 40
962
+ },
963
+ "nodePadding": 55,
964
+ "nodeFontColor": "black",
965
+ "nodeColor": {
966
+ "default": "#ff8500",
967
+ "inactive": "#808080"
968
+ },
969
+ "linkColor": {
970
+ "default": "#ffc900",
971
+ "inactive": "#D3D3D3"
972
+ },
973
+ "opacity": {
974
+ "nodeOpacityDefault": 1,
975
+ "nodeOpacityInactive": 0.1,
976
+ "LinkOpacityDefault": 1,
977
+ "LinkOpacityInactive": 0.1
978
+ },
979
+ "storyNodeFontColor": "#006778",
980
+ "storyNodeText": [],
981
+ "nodeValueStyle": {
982
+ "textBefore": "(",
983
+ "textAfter": ")"
984
+ },
985
+ "data": []
986
+ },
987
+ "filters": [
988
+ {
989
+ "filterStyle": "dropdown",
990
+ "columnName": "Data_Collection_Period",
991
+ "order": "asc",
992
+ "label": "Date Period",
993
+ "setByQueryParameter": ""
994
+ }
995
+ ],
996
+ "openModal": true,
997
+ "uid": "chart1725462823392",
998
+ "visualizationType": "Line",
999
+ "dataDescription": {
1000
+ "horizontal": false,
1001
+ "series": false
1002
+ },
1003
+ "dataKey": "Trend Over Time",
1004
+ "version": "4.25.1",
1005
+ "dynamicMarginTop": 0,
1006
+ "customColors": [
1007
+ "#F7A866",
1008
+ "#000000",
1009
+ "#844774",
1010
+ "#7EB0C4",
1011
+ "#0A6C75",
1012
+ "#C0F2FD",
1013
+ "#C0F2FD",
1014
+ "#C0F2FD",
1015
+ "#C0F2FD"
1016
+ ],
1017
+ "regions": [
1018
+ {
1019
+ "fromType": "Previous Days",
1020
+ "background": "#777777",
1021
+ "from": "14",
1022
+ "toType": "Last Date"
1023
+ }
1024
+ ],
1025
+ "description": "<div class=\"text-left ml-3 pb-3\">Data from the most recent two weeks may be incomplete due to delays in data reporting. These data sets are subject to change and are indicated by the gray shading. <br/><br/> Data last updated <span class=\"date\">FromDB</span></div>",
1026
+ "migrations": {
1027
+ "addColorMigration": true
1028
+ }
1029
+ },
1030
+ "markup-include1727869322714": {
1031
+ "filters": [],
1032
+ "filterBehavior": "Filter Change",
1033
+ "openModal": false,
1034
+ "uid": "markup-include1727869322714",
1035
+ "type": "markup-include",
1036
+ "contentEditor": {
1037
+ "inlineHTML": "<div class=\"divboxbite\">\n\n<p class=\"bite-text\">In <span class=\"level\">{{state}}</span>, the wastewater viral activity level for COVID-19 is currently <strong>\n<span class=\"level\">{{level}}</span>.\n</strong></p>\n<br/>\n<p class=\"bite-text\">\nSites reporting in the last week: {{week}}</br>\nSites reporting in the last 30 days: {{month}}</p>\n<br/>\n\n\n<div class=\"databite-graphic\">\n{{graphic}}\n</div>\n</div>",
1038
+ "markupVariables": [
1039
+ {
1040
+ "columnName": "graphic_url",
1041
+ "conditions": [],
1042
+ "name": "graphic",
1043
+ "tag": "{{graphic}}"
1044
+ },
1045
+ {
1046
+ "columnName": "State/Territory",
1047
+ "conditions": [],
1048
+ "name": "state",
1049
+ "tag": "{{state}}"
1050
+ },
1051
+ {
1052
+ "columnName": "WVAL_Category",
1053
+ "conditions": [],
1054
+ "name": "level",
1055
+ "tag": "{{level}}"
1056
+ },
1057
+ {
1058
+ "columnName": "Sites_Last_Week",
1059
+ "conditions": [],
1060
+ "name": "week",
1061
+ "tag": "{{week}}"
1062
+ },
1063
+ {
1064
+ "columnName": "Sites_Last_Month",
1065
+ "conditions": [],
1066
+ "name": "month",
1067
+ "tag": "{{month}}"
1068
+ }
1069
+ ],
1070
+ "showHeader": true,
1071
+ "srcUrl": "#example",
1072
+ "title": "",
1073
+ "useInlineHTML": true
1074
+ },
1075
+ "theme": "theme-blue",
1076
+ "visual": {
1077
+ "border": false,
1078
+ "accent": false,
1079
+ "background": false,
1080
+ "hideBackgroundColor": false,
1081
+ "borderColorTheme": false
1082
+ },
1083
+ "showEditorPanel": true,
1084
+ "visualizationType": "markup-include",
1085
+ "dataDescription": {
1086
+ "horizontal": false,
1087
+ "series": false
1088
+ },
1089
+ "dataKey": "All State/Territory Wastewater Viral Activity Levels",
1090
+ "version": "4.24.10"
1091
+ }
1092
+ },
1093
+ "table": {
1094
+ "label": "Data Table",
1095
+ "show": true,
1096
+ "showDownloadUrl": false,
1097
+ "showVertical": true,
1098
+ "download": false
1099
+ },
1100
+ "datasets": {
1101
+ "Current Site Levels": {
1102
+ "dataFileSize": 218548,
1103
+ "dataFileName": "/wcms/vizdata/NCEZID_DIDRI/sc2/nwsssc2sitemap.json",
1104
+ "dataFileSourceType": "url",
1105
+ "dataFileFormat": "JSON",
1106
+ "preview": false,
1107
+ "dataUrl": "/wcms/vizdata/NCEZID_DIDRI/sc2/nwsssc2sitemap.json"
1108
+ },
1109
+ "Trend Over Time": {
1110
+ "dataFileSize": 5070176,
1111
+ "dataFileName": "/wcms/vizdata/NCEZID_DIDRI/sc2/nwsssc2stateactivitylevel.json",
1112
+ "dataFileSourceType": "url",
1113
+ "dataFileFormat": "JSON",
1114
+ "preview": false,
1115
+ "dataUrl": "/wcms/vizdata/NCEZID_DIDRI/sc2/nwsssc2stateactivitylevel.json"
1116
+ },
1117
+ "All State/Territory Wastewater Viral Activity Levels": {
1118
+ "dataFileSize": 26358,
1119
+ "dataFileName": "/wcms/vizdata/NCEZID_DIDRI/sc2/nwsssc2statedatabites.json",
1120
+ "dataFileSourceType": "url",
1121
+ "dataFileFormat": "JSON",
1122
+ "preview": true,
1123
+ "dataUrl": "/wcms/vizdata/NCEZID_DIDRI/sc2/nwsssc2statedatabites.json"
1124
+ }
1125
+ },
1126
+ "type": "dashboard",
1127
+ "version": "4.25.7",
1128
+ "uuid": 1727961668059,
1129
+ "migrations": {
1130
+ "addColorMigration": true
1131
+ }
1132
+ }