@cdc/chart 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.
- package/CONFIG.md +489 -0
- package/README.md +42 -17
- package/dist/cdcchart.js +39024 -36587
- package/examples/feature/bar/additional-column-tooltip.json +3 -3
- package/examples/feature/deviation/planet-deviation-config.json +2 -2
- package/examples/feature/heatmap/average-age-categorical.json +313 -0
- package/examples/feature/heatmap/calendar-heatmap.json +134 -0
- package/examples/feature/heatmap/cell-values-bottom-axis.json +181 -0
- package/examples/feature/heatmap/sparse-aggregation.json +158 -0
- package/examples/feature/paired-bar/paired-bar-example.json +2 -2
- package/examples/feature/tests-case-rate/case-rate-example-config.json +2 -2
- package/examples/feature/tests-covid/covid-confidence-example-config.json +2 -2
- package/examples/feature/tests-covid/covid-example-config.json +2 -2
- package/examples/feature/tests-cutoff/cutoff-example-config.json +2 -2
- package/examples/feature/tests-non-numerics/planet-pie-example-config-nonnumeric.json +2 -2
- package/examples/metadata-variables.json +1 -1
- package/examples/minimal-example.json +24 -0
- package/examples/private/bump-chart.json +1116 -0
- package/examples/private/test-123.json +624 -0
- package/examples/private/test2.json +35012 -0
- package/package.json +5 -4
- package/src/CdcChartComponent.tsx +144 -60
- package/src/_stories/Chart.AltText.stories.tsx +136 -0
- package/src/_stories/{Chart.HTMLInDataTable.stories.tsx → Chart.HTMLInDataTable.smoke.stories.tsx} +10 -0
- package/src/_stories/Chart.HeatMap.stories.tsx +187 -0
- package/src/_stories/Chart.Minimal.smoke.stories.tsx +25 -0
- package/src/_stories/Chart.Sankey.smoke.stories.tsx +62 -0
- package/src/_stories/Chart.SmallMultiples.smoke.stories.tsx +108 -0
- package/src/_stories/{Chart.stories.tsx → Chart.smoke.stories.tsx} +12 -0
- package/src/_stories/{Chart.tooltip.stories.tsx → Chart.tooltip.smoke.stories.tsx} +68 -0
- package/src/_stories/{ChartAxisTitles.stories.tsx → ChartAxisTitles.smoke.stories.tsx} +13 -0
- package/src/_stories/ChartBar.Editor.stories.tsx +151 -85
- package/src/_stories/ChartBrush.Interaction.stories.tsx +112 -0
- package/src/_stories/{ChartBrush.stories.tsx → ChartBrush.smoke.stories.tsx} +13 -4
- package/src/_stories/ChartEditor.Editor.stories.tsx +23 -0
- package/src/_stories/ChartLine.DashedDates.smoke.stories.tsx +23 -0
- package/src/_stories/_mock/alt_text_metadata.json +38 -0
- package/src/_stories/_mock/heatmap-average-age-categorical.json +315 -0
- package/src/_stories/_mock/heatmap.json +156 -0
- package/src/_stories/_mock/line_chart_dashed_dates.json +276 -0
- package/src/_stories/_mock/paired-bar-abbr.json +1 -1
- package/src/_stories/_mock/paired-bar.json +1 -1
- package/src/_stories/_mock/reported_pertussis_cases.json +1643 -0
- package/src/_stories/_mock/sankey_mock.json +78 -0
- package/src/_stories/_mock/small_multiples/small_multiples_lines.json +1 -1
- package/src/components/Annotations/components/AnnotationDraggable.tsx +2 -2
- package/src/components/Annotations/components/AnnotationDropdown.tsx +5 -2
- package/src/components/AreaChart/components/AreaChart.Stacked.jsx +10 -2
- package/src/components/Axis/BottomAxis.tsx +1 -1
- package/src/components/Axis/LeftAxis.tsx +15 -14
- package/src/components/Axis/LeftAxisGridlines.tsx +14 -13
- package/src/components/BarChart/components/BarChart.Horizontal.tsx +9 -5
- package/src/components/BarChart/components/BarChart.StackedHorizontal.tsx +9 -5
- package/src/components/BarChart/components/BarChart.StackedVertical.tsx +9 -5
- package/src/components/BarChart/components/BarChart.Vertical.tsx +9 -6
- package/src/components/BarChart/components/BarChart.tsx +2 -6
- package/src/components/BarChart/helpers/useBarChart.ts +1 -1
- package/src/components/BoxPlot/BoxPlot.Vertical.tsx +3 -3
- package/src/components/Brush/BrushSelector.tsx +88 -187
- package/src/components/Brush/brushInteraction.ts +22 -0
- package/src/components/Brush/tests/brushInteraction.test.ts +38 -0
- package/src/components/EditorPanel/EditorPanel.tsx +946 -960
- package/src/components/EditorPanel/EditorPanelContext.ts +1 -1
- package/src/components/EditorPanel/components/Panels/Panel.Annotate.tsx +229 -165
- package/src/components/EditorPanel/components/Panels/Panel.General.tsx +105 -13
- package/src/components/EditorPanel/components/Panels/Panel.PatternSettings.tsx +169 -116
- package/src/components/EditorPanel/components/Panels/Panel.Regions.tsx +159 -109
- package/src/components/EditorPanel/components/Panels/Panel.Sankey.tsx +3 -3
- package/src/components/EditorPanel/components/Panels/Panel.Series.tsx +14 -28
- package/src/components/EditorPanel/components/Panels/Panel.Visual.tsx +1 -1
- package/src/components/EditorPanel/helpers/getVisualizationTypeConfigUpdate.ts +57 -0
- package/src/components/EditorPanel/helpers/tests/getVisualizationTypeConfigUpdate.test.ts +56 -0
- package/src/components/EditorPanel/useEditorPermissions.test.tsx +70 -0
- package/src/components/EditorPanel/useEditorPermissions.ts +32 -21
- package/src/components/Forecasting/Forecasting.tsx +2 -2
- package/src/components/HeatMap/components/HeatMap.tsx +762 -0
- package/src/components/HeatMap/components/HeatMapGradientLegend.tsx +114 -0
- package/src/components/HeatMap/heatmap.constants.ts +13 -0
- package/src/components/HeatMap/heatmap.css +71 -0
- package/src/components/HeatMap/helpers/index.ts +261 -0
- package/src/components/HeatMap/index.tsx +5 -0
- package/src/components/HeatMap/tests/HeatMap.test.tsx +1040 -0
- package/src/components/HeatMap/tests/helpers.test.ts +167 -0
- package/src/components/HorizonChart/HorizonChart.tsx +10 -2
- package/src/components/HoverLine/HoverLine.tsx +6 -8
- package/src/components/Legend/Legend.Component.tsx +4 -4
- package/src/components/Legend/LegendGroup/LegendGroup.styles.css +5 -0
- package/src/components/Legend/LegendGroup/LegendGroup.tsx +3 -1
- package/src/components/Legend/helpers/index.ts +0 -2
- package/src/components/LineChart/LineChartProps.ts +1 -0
- package/src/components/LineChart/components/LineChart.BumpCircle.tsx +22 -24
- package/src/components/LineChart/helpers.test.ts +345 -0
- package/src/components/LineChart/helpers.ts +15 -5
- package/src/components/LineChart/index.tsx +18 -5
- package/src/components/LinearChart/VisualizationRenderer.tsx +11 -1
- package/src/components/LinearChart/tests/LinearChart.test.tsx +228 -7
- package/src/components/LinearChart/tests/mockConfigContext.ts +1 -0
- package/src/components/LinearChart.tsx +155 -77
- package/src/components/PairedBarChart.jsx +2 -2
- package/src/components/PieChart/PieChart.tsx +15 -10
- package/src/components/RadarChart/RadarChart.tsx +3 -1
- package/src/components/Regions/components/Regions.tsx +199 -35
- package/src/components/Sankey/components/Sankey.tsx +7 -3
- package/src/components/Sankey/helpers/getSankeyTooltip.tsx +7 -6
- package/src/components/ScatterPlot/ScatterPlot.jsx +19 -17
- package/src/components/SmallMultiples/SmallMultipleTile.tsx +31 -3
- package/src/components/SmallMultiples/SmallMultiples.css +12 -0
- package/src/components/SmallMultiples/SmallMultiples.tsx +15 -9
- package/src/components/SmallMultiples/tests/SmallMultipleTile.test.tsx +152 -0
- package/src/components/Sparkline/components/SparkLine.tsx +5 -10
- package/src/components/WarmingStripes/WarmingStripes.tsx +5 -3
- package/src/components/WarmingStripes/WarmingStripesGradientLegend.css +1 -1
- package/src/components/WarmingStripes/WarmingStripesGradientLegend.tsx +2 -2
- package/src/data/initial-state.js +12 -0
- package/src/helpers/axisLabelFontSize.ts +8 -0
- package/src/helpers/bumpChartTooltip.ts +54 -0
- package/src/helpers/calculateLeftYAxisWidth.ts +197 -0
- package/src/helpers/ensureSpecialChartAxisTypes.ts +11 -0
- package/src/helpers/getMinMax.ts +2 -3
- package/src/helpers/getYAxisAutoPadding.ts +8 -6
- package/src/helpers/getYAxisAutoPaddingMode.ts +17 -0
- package/src/helpers/handleChartAriaLabels.ts +23 -10
- package/src/helpers/seriesHighlight.ts +26 -0
- package/src/helpers/tests/axisLabelFontSize.test.ts +15 -0
- package/src/helpers/tests/bumpChartTooltip.test.ts +75 -0
- package/src/helpers/tests/ensureSpecialChartAxisTypes.test.ts +30 -0
- package/src/helpers/tests/getYAxisAutoPadding.test.ts +37 -0
- package/src/helpers/tests/getYAxisAutoPaddingMode.test.ts +90 -0
- package/src/helpers/tests/handleChartAriaLabels.test.ts +71 -0
- package/src/helpers/tests/seriesHighlight.test.ts +61 -0
- package/src/helpers/tests/tooltipHelpers.test.ts +151 -0
- package/src/helpers/tooltipHelpers.ts +176 -0
- package/src/hooks/tests/useScales.test.tsx +105 -0
- package/src/hooks/useHighlightedBars.ts +9 -16
- package/src/hooks/useProgrammaticTooltip.ts +16 -2
- package/src/hooks/useScales.ts +19 -9
- package/src/hooks/useSmallMultipleSynchronization.ts +3 -4
- package/src/hooks/useTooltip.tsx +167 -38
- package/src/index.jsx +5 -2
- package/src/scss/main.scss +32 -49
- package/src/test/CdcChart.test.jsx +24 -0
- package/src/types/ChartConfig.ts +19 -0
- package/src/types/ChartContext.ts +2 -0
- package/examples/chart-regression-2.json +0 -2360
- package/examples/feature/__data__/age-adjusted-rates.json +0 -1486
- package/examples/feature/__data__/city-temperature.json +0 -2198
- package/examples/feature/bar/Barchart_with_negative.json +0 -34
- package/examples/feature/boxplot/box-plot-data.json +0 -71
- package/examples/feature/boxplot/boxplot-data.json +0 -156
- package/examples/feature/combo/combochart-categories_are_numbers .json +0 -18
- package/examples/feature/forest-plot/log.json +0 -26
- package/examples/feature/tests-date-exclusions/date-exclusions-data.json +0 -162
- package/examples/region-issue.json +0 -2065
- package/examples/xaxis.json +0 -493
- package/src/_stories/Chart.SmallMultiples.stories.tsx +0 -63
- /package/examples/{data → __data__}/data-with-metadata.json +0 -0
- /package/examples/feature/bar/{tall-data.json → __data__/tall-data.json} +0 -0
- /package/examples/feature/deviation/{planet-deviation-data.json → __data__/planet-deviation-data.json} +0 -0
- /package/examples/feature/paired-bar/{paired-bar-data.json → __data__/paired-bar-data.json} +0 -0
- /package/examples/feature/paired-bar/{paired-bar-formatted.json → __data__/paired-bar-formatted.json} +0 -0
- /package/examples/feature/tests-case-rate/{case-rate-example-data.json → __data__/case-rate-example-data.json} +0 -0
- /package/examples/feature/tests-covid/{covid-example-data-confidence.json → __data__/covid-example-data-confidence.json} +0 -0
- /package/examples/feature/tests-covid/{covid-example-data.json → __data__/covid-example-data.json} +0 -0
- /package/examples/feature/tests-cutoff/{cutoff-example-data.json → __data__/cutoff-example-data.json} +0 -0
- /package/examples/feature/tests-non-numerics/{planet-example-data-nonnumeric.json → __data__/planet-example-data-nonnumeric.json} +0 -0
- /package/src/_stories/{Chart.Anchors.stories.tsx → Chart.Anchors.smoke.stories.tsx} +0 -0
- /package/src/_stories/{Chart.BoxPlot.stories.tsx → Chart.BoxPlot.smoke.stories.tsx} +0 -0
- /package/src/_stories/{Chart.CI.stories.tsx → Chart.CI.smoke.stories.tsx} +0 -0
- /package/src/_stories/{Chart.Combo.stories.tsx → Chart.Combo.smoke.stories.tsx} +0 -0
- /package/src/_stories/{Chart.CustomColors.stories.tsx → Chart.CustomColors.smoke.stories.tsx} +0 -0
- /package/src/_stories/{Chart.Defaults.stories.tsx → Chart.Defaults.smoke.stories.tsx} +0 -0
- /package/src/_stories/{Chart.DynamicSeries.stories.tsx → Chart.DynamicSeries.smoke.stories.tsx} +0 -0
- /package/src/_stories/{Chart.Filters.stories.tsx → Chart.Filters.smoke.stories.tsx} +0 -0
- /package/src/_stories/{Chart.Forecast.stories.tsx → Chart.Forecast.smoke.stories.tsx} +0 -0
- /package/src/_stories/{Chart.Legend.Gradient.stories.tsx → Chart.Legend.Gradient.smoke.stories.tsx} +0 -0
- /package/src/_stories/{Chart.Patterns.stories.tsx → Chart.Patterns.smoke.stories.tsx} +0 -0
- /package/src/_stories/{Chart.PreserveDecimals.stories.tsx → Chart.PreserveDecimals.smoke.stories.tsx} +0 -0
- /package/src/_stories/{Chart.Regions.Categorical.stories.tsx → Chart.Regions.Categorical.smoke.stories.tsx} +0 -0
- /package/src/_stories/{Chart.Regions.DateScale.stories.tsx → Chart.Regions.DateScale.smoke.stories.tsx} +0 -0
- /package/src/_stories/{Chart.Regions.DateTimeScale.stories.tsx → Chart.Regions.DateTimeScale.smoke.stories.tsx} +0 -0
- /package/src/_stories/{Chart.ScatterPlot.stories.tsx → Chart.ScatterPlot.smoke.stories.tsx} +0 -0
- /package/src/_stories/{Chart.SmallestLeftAxisMax.stories.tsx → Chart.SmallestLeftAxisMax.smoke.stories.tsx} +0 -0
- /package/src/_stories/{ChartAnnotation.stories.tsx → ChartAnnotation.smoke.stories.tsx} +0 -0
- /package/src/_stories/{ChartAxisLabels.stories.tsx → ChartAxisLabels.smoke.stories.tsx} +0 -0
- /package/src/_stories/{ChartBrush.Matrix.Continuous.stories.tsx → ChartBrush.Matrix.Continuous.smoke.stories.tsx} +0 -0
- /package/src/_stories/{ChartBrush.Matrix.Date.stories.tsx → ChartBrush.Matrix.Date.smoke.stories.tsx} +0 -0
- /package/src/_stories/{ChartBrush.Matrix.DateTime.stories.tsx → ChartBrush.Matrix.DateTime.smoke.stories.tsx} +0 -0
- /package/src/_stories/{ChartLine.QuadrantAngles.stories.tsx → ChartLine.QuadrantAngles.smoke.stories.tsx} +0 -0
- /package/src/_stories/{ChartLine.Suppression.stories.tsx → ChartLine.Suppression.smoke.stories.tsx} +0 -0
- /package/src/_stories/{ChartLine.Symbols.stories.tsx → ChartLine.Symbols.smoke.stories.tsx} +0 -0
- /package/src/_stories/{ChartPrefixSuffix.stories.tsx → ChartPrefixSuffix.smoke.stories.tsx} +0 -0
- /package/src/_stories/{TechAdoptionWithLinks.stories.tsx → TechAdoptionWithLinks.smoke.stories.tsx} +0 -0
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "4.26.4",
|
|
3
|
+
"type": "chart",
|
|
4
|
+
"visualizationType": "Line",
|
|
5
|
+
"title": "COVID-19 Test Positivity",
|
|
6
|
+
"showTitle": true,
|
|
7
|
+
"animate": false,
|
|
8
|
+
"orientation": "vertical",
|
|
9
|
+
"dataMetadata": {
|
|
10
|
+
"altDescription": "Line chart showing COVID-19 test positivity rising from 4% to 12% over the last eight weeks, which may indicate growing community spread.",
|
|
11
|
+
"lastUpdated": "2024-09-21",
|
|
12
|
+
"source": "CDC NREVSS"
|
|
13
|
+
},
|
|
14
|
+
"data": [
|
|
15
|
+
{ "week": "Aug 3", "positivity": 4.2 },
|
|
16
|
+
{ "week": "Aug 10", "positivity": 4.8 },
|
|
17
|
+
{ "week": "Aug 17", "positivity": 5.5 },
|
|
18
|
+
{ "week": "Aug 24", "positivity": 6.3 },
|
|
19
|
+
{ "week": "Aug 31", "positivity": 7.4 },
|
|
20
|
+
{ "week": "Sep 7", "positivity": 8.9 },
|
|
21
|
+
{ "week": "Sep 14", "positivity": 10.6 },
|
|
22
|
+
{ "week": "Sep 21", "positivity": 12.0 }
|
|
23
|
+
],
|
|
24
|
+
"xAxis": {
|
|
25
|
+
"dataKey": "week",
|
|
26
|
+
"type": "categorical",
|
|
27
|
+
"label": "Week Ending"
|
|
28
|
+
},
|
|
29
|
+
"yAxis": {
|
|
30
|
+
"label": "% Positive",
|
|
31
|
+
"numTicks": "5"
|
|
32
|
+
},
|
|
33
|
+
"series": [
|
|
34
|
+
{ "dataKey": "positivity", "type": "Line", "axis": "Left", "tooltip": true }
|
|
35
|
+
],
|
|
36
|
+
"legend": { "hide": true },
|
|
37
|
+
"table": { "show": true, "label": "Data Table" }
|
|
38
|
+
}
|
|
@@ -0,0 +1,315 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "4.26.6",
|
|
3
|
+
"type": "chart",
|
|
4
|
+
"visualizationType": "HeatMap",
|
|
5
|
+
"visualizationSubType": "regular",
|
|
6
|
+
"title": "Average Age by City and Community Type",
|
|
7
|
+
"showTitle": true,
|
|
8
|
+
"theme": "theme-blue",
|
|
9
|
+
"animate": false,
|
|
10
|
+
"data": [
|
|
11
|
+
{
|
|
12
|
+
"communityType": "Urban Core",
|
|
13
|
+
"Atlanta": 34,
|
|
14
|
+
"Boston": 35,
|
|
15
|
+
"Charlotte": 34,
|
|
16
|
+
"Chicago": 36,
|
|
17
|
+
"Dallas": 33,
|
|
18
|
+
"Denver": 37,
|
|
19
|
+
"Detroit": 39,
|
|
20
|
+
"Miami": 41,
|
|
21
|
+
"Nashville": 36,
|
|
22
|
+
"Phoenix": 38,
|
|
23
|
+
"Portland": 40,
|
|
24
|
+
"Seattle": 35,
|
|
25
|
+
"notes": "Dense city center"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"communityType": "Inner Suburb",
|
|
29
|
+
"Atlanta": 38,
|
|
30
|
+
"Boston": 39,
|
|
31
|
+
"Charlotte": 38,
|
|
32
|
+
"Chicago": 38,
|
|
33
|
+
"Dallas": 37,
|
|
34
|
+
"Denver": 40,
|
|
35
|
+
"Detroit": 42,
|
|
36
|
+
"Miami": 43,
|
|
37
|
+
"Nashville": 40,
|
|
38
|
+
"Phoenix": 41,
|
|
39
|
+
"Portland": 42,
|
|
40
|
+
"Seattle": 39,
|
|
41
|
+
"notes": "Near-city suburbs"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"communityType": "Outer Suburb",
|
|
45
|
+
"Atlanta": 41,
|
|
46
|
+
"Boston": 42,
|
|
47
|
+
"Charlotte": 42,
|
|
48
|
+
"Chicago": 39,
|
|
49
|
+
"Dallas": 40,
|
|
50
|
+
"Denver": 43,
|
|
51
|
+
"Detroit": 45,
|
|
52
|
+
"Miami": 44,
|
|
53
|
+
"Nashville": 43,
|
|
54
|
+
"Phoenix": 42,
|
|
55
|
+
"Portland": 44,
|
|
56
|
+
"Seattle": 41,
|
|
57
|
+
"notes": "Commuter belt"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"communityType": "Small Town",
|
|
61
|
+
"Atlanta": 44,
|
|
62
|
+
"Boston": 45,
|
|
63
|
+
"Charlotte": 46,
|
|
64
|
+
"Chicago": 43,
|
|
65
|
+
"Dallas": 42,
|
|
66
|
+
"Denver": 46,
|
|
67
|
+
"Detroit": 48,
|
|
68
|
+
"Miami": 47,
|
|
69
|
+
"Nashville": 45,
|
|
70
|
+
"Phoenix": 46,
|
|
71
|
+
"Portland": 45,
|
|
72
|
+
"Seattle": 44,
|
|
73
|
+
"notes": "Regional towns"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"communityType": "Rural",
|
|
77
|
+
"Atlanta": 46,
|
|
78
|
+
"Boston": 47,
|
|
79
|
+
"Charlotte": 48,
|
|
80
|
+
"Chicago": 44,
|
|
81
|
+
"Dallas": 45,
|
|
82
|
+
"Denver": 48,
|
|
83
|
+
"Detroit": 50,
|
|
84
|
+
"Miami": 49,
|
|
85
|
+
"Nashville": 47,
|
|
86
|
+
"Phoenix": 49,
|
|
87
|
+
"Portland": 46,
|
|
88
|
+
"Seattle": 45,
|
|
89
|
+
"notes": "Outer counties"
|
|
90
|
+
}
|
|
91
|
+
],
|
|
92
|
+
"xAxis": {
|
|
93
|
+
"type": "categorical",
|
|
94
|
+
"dataKey": "communityType",
|
|
95
|
+
"label": "Community Type",
|
|
96
|
+
"tickRotation": 45,
|
|
97
|
+
"maxTickRotation": 45,
|
|
98
|
+
"hideAxis": false,
|
|
99
|
+
"hideLabel": false,
|
|
100
|
+
"hideTicks": false
|
|
101
|
+
},
|
|
102
|
+
"yAxis": {
|
|
103
|
+
"type": "categorical",
|
|
104
|
+
"label": "City",
|
|
105
|
+
"hideAxis": false,
|
|
106
|
+
"hideLabel": false,
|
|
107
|
+
"hideTicks": false,
|
|
108
|
+
"size": 105
|
|
109
|
+
},
|
|
110
|
+
"series": [
|
|
111
|
+
{
|
|
112
|
+
"dataKey": "Atlanta",
|
|
113
|
+
"name": "Atlanta",
|
|
114
|
+
"type": "HeatMap",
|
|
115
|
+
"axis": "Left",
|
|
116
|
+
"tooltip": true
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"dataKey": "Boston",
|
|
120
|
+
"name": "Boston",
|
|
121
|
+
"type": "HeatMap",
|
|
122
|
+
"axis": "Left",
|
|
123
|
+
"tooltip": true
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"dataKey": "Charlotte",
|
|
127
|
+
"name": "Charlotte",
|
|
128
|
+
"type": "HeatMap",
|
|
129
|
+
"axis": "Left",
|
|
130
|
+
"tooltip": true
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
"dataKey": "Chicago",
|
|
134
|
+
"name": "Chicago",
|
|
135
|
+
"type": "HeatMap",
|
|
136
|
+
"axis": "Left",
|
|
137
|
+
"tooltip": true
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
"dataKey": "Dallas",
|
|
141
|
+
"name": "Dallas",
|
|
142
|
+
"type": "HeatMap",
|
|
143
|
+
"axis": "Left",
|
|
144
|
+
"tooltip": true
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
"dataKey": "Denver",
|
|
148
|
+
"name": "Denver",
|
|
149
|
+
"type": "HeatMap",
|
|
150
|
+
"axis": "Left",
|
|
151
|
+
"tooltip": true
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
"dataKey": "Detroit",
|
|
155
|
+
"name": "Detroit",
|
|
156
|
+
"type": "HeatMap",
|
|
157
|
+
"axis": "Left",
|
|
158
|
+
"tooltip": true
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
"dataKey": "Miami",
|
|
162
|
+
"name": "Miami",
|
|
163
|
+
"type": "HeatMap",
|
|
164
|
+
"axis": "Left",
|
|
165
|
+
"tooltip": true
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
"dataKey": "Nashville",
|
|
169
|
+
"name": "Nashville",
|
|
170
|
+
"type": "HeatMap",
|
|
171
|
+
"axis": "Left",
|
|
172
|
+
"tooltip": true
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
"dataKey": "Phoenix",
|
|
176
|
+
"name": "Phoenix",
|
|
177
|
+
"type": "HeatMap",
|
|
178
|
+
"axis": "Left",
|
|
179
|
+
"tooltip": true
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
"dataKey": "Portland",
|
|
183
|
+
"name": "Portland",
|
|
184
|
+
"type": "HeatMap",
|
|
185
|
+
"axis": "Left",
|
|
186
|
+
"tooltip": true
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
"dataKey": "Seattle",
|
|
190
|
+
"name": "Seattle",
|
|
191
|
+
"type": "HeatMap",
|
|
192
|
+
"axis": "Left",
|
|
193
|
+
"tooltip": true
|
|
194
|
+
}
|
|
195
|
+
],
|
|
196
|
+
"columns": {
|
|
197
|
+
"communityType": {
|
|
198
|
+
"name": "communityType",
|
|
199
|
+
"label": "Community Type",
|
|
200
|
+
"dataTable": true
|
|
201
|
+
},
|
|
202
|
+
"Atlanta": {
|
|
203
|
+
"name": "Atlanta",
|
|
204
|
+
"label": "Atlanta",
|
|
205
|
+
"dataTable": true
|
|
206
|
+
},
|
|
207
|
+
"Boston": {
|
|
208
|
+
"name": "Boston",
|
|
209
|
+
"label": "Boston",
|
|
210
|
+
"dataTable": true
|
|
211
|
+
},
|
|
212
|
+
"Charlotte": {
|
|
213
|
+
"name": "Charlotte",
|
|
214
|
+
"label": "Charlotte",
|
|
215
|
+
"dataTable": true
|
|
216
|
+
},
|
|
217
|
+
"Chicago": {
|
|
218
|
+
"name": "Chicago",
|
|
219
|
+
"label": "Chicago",
|
|
220
|
+
"dataTable": true
|
|
221
|
+
},
|
|
222
|
+
"Dallas": {
|
|
223
|
+
"name": "Dallas",
|
|
224
|
+
"label": "Dallas",
|
|
225
|
+
"dataTable": true
|
|
226
|
+
},
|
|
227
|
+
"Denver": {
|
|
228
|
+
"name": "Denver",
|
|
229
|
+
"label": "Denver",
|
|
230
|
+
"dataTable": true
|
|
231
|
+
},
|
|
232
|
+
"Detroit": {
|
|
233
|
+
"name": "Detroit",
|
|
234
|
+
"label": "Detroit",
|
|
235
|
+
"dataTable": true
|
|
236
|
+
},
|
|
237
|
+
"Miami": {
|
|
238
|
+
"name": "Miami",
|
|
239
|
+
"label": "Miami",
|
|
240
|
+
"dataTable": true
|
|
241
|
+
},
|
|
242
|
+
"Nashville": {
|
|
243
|
+
"name": "Nashville",
|
|
244
|
+
"label": "Nashville",
|
|
245
|
+
"dataTable": true
|
|
246
|
+
},
|
|
247
|
+
"Phoenix": {
|
|
248
|
+
"name": "Phoenix",
|
|
249
|
+
"label": "Phoenix",
|
|
250
|
+
"dataTable": true
|
|
251
|
+
},
|
|
252
|
+
"Portland": {
|
|
253
|
+
"name": "Portland",
|
|
254
|
+
"label": "Portland",
|
|
255
|
+
"dataTable": true
|
|
256
|
+
},
|
|
257
|
+
"Seattle": {
|
|
258
|
+
"name": "Seattle",
|
|
259
|
+
"label": "Seattle",
|
|
260
|
+
"dataTable": true
|
|
261
|
+
},
|
|
262
|
+
"notes": {
|
|
263
|
+
"name": "notes",
|
|
264
|
+
"label": "Notes",
|
|
265
|
+
"dataTable": true,
|
|
266
|
+
"tooltips": true
|
|
267
|
+
}
|
|
268
|
+
},
|
|
269
|
+
"heatmap": {
|
|
270
|
+
"cellPadding": 1,
|
|
271
|
+
"rowLabelGap": 32,
|
|
272
|
+
"columnLabelGap": 56,
|
|
273
|
+
"xAxisPosition": "top",
|
|
274
|
+
"showCellValues": false
|
|
275
|
+
},
|
|
276
|
+
"legend": {
|
|
277
|
+
"hide": false,
|
|
278
|
+
"position": "top",
|
|
279
|
+
"style": "gradient",
|
|
280
|
+
"subStyle": "smooth",
|
|
281
|
+
"label": "Average age",
|
|
282
|
+
"hideBorder": false
|
|
283
|
+
},
|
|
284
|
+
"general": {
|
|
285
|
+
"palette": {
|
|
286
|
+
"name": "sequential_blue",
|
|
287
|
+
"version": "2.0",
|
|
288
|
+
"isReversed": false
|
|
289
|
+
}
|
|
290
|
+
},
|
|
291
|
+
"tooltips": {
|
|
292
|
+
"opacity": 90,
|
|
293
|
+
"singleSeries": false
|
|
294
|
+
},
|
|
295
|
+
"dataFormat": {
|
|
296
|
+
"abbreviated": false,
|
|
297
|
+
"roundTo": 0,
|
|
298
|
+
"commas": true
|
|
299
|
+
},
|
|
300
|
+
"table": {
|
|
301
|
+
"showVertical": true,
|
|
302
|
+
"show": true,
|
|
303
|
+
"showDataTableLink": true,
|
|
304
|
+
"expanded": false
|
|
305
|
+
},
|
|
306
|
+
"heights": {
|
|
307
|
+
"vertical": 620,
|
|
308
|
+
"horizontal": 620,
|
|
309
|
+
"mobileVertical": 520
|
|
310
|
+
},
|
|
311
|
+
"filters": [],
|
|
312
|
+
"chartMessage": {
|
|
313
|
+
"noData": "No Data Available"
|
|
314
|
+
}
|
|
315
|
+
}
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "4.26.6",
|
|
3
|
+
"type": "chart",
|
|
4
|
+
"visualizationType": "HeatMap",
|
|
5
|
+
"visualizationSubType": "regular",
|
|
6
|
+
"title": "HeatMap Series Rows Demo",
|
|
7
|
+
"showTitle": true,
|
|
8
|
+
"theme": "theme-blue",
|
|
9
|
+
"animate": false,
|
|
10
|
+
"data": [
|
|
11
|
+
{
|
|
12
|
+
"week": "2024-01-01",
|
|
13
|
+
"Northeast": 12,
|
|
14
|
+
"South": 30,
|
|
15
|
+
"West": 18,
|
|
16
|
+
"notes": "Baseline"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"week": "2024-02-01",
|
|
20
|
+
"Northeast": 18,
|
|
21
|
+
"South": 34,
|
|
22
|
+
"notes": "West missing"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"week": "2024-03-01",
|
|
26
|
+
"Northeast": 24,
|
|
27
|
+
"South": 29,
|
|
28
|
+
"West": 22,
|
|
29
|
+
"notes": "Stable"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"week": "2024-03-01",
|
|
33
|
+
"Northeast": 6,
|
|
34
|
+
"South": 7,
|
|
35
|
+
"West": 3,
|
|
36
|
+
"notes": "Late report"
|
|
37
|
+
}
|
|
38
|
+
],
|
|
39
|
+
"xAxis": {
|
|
40
|
+
"type": "date",
|
|
41
|
+
"dataKey": "week",
|
|
42
|
+
"label": "Week",
|
|
43
|
+
"dateParseFormat": "%Y-%m-%d",
|
|
44
|
+
"dateDisplayFormat": "%b %-d",
|
|
45
|
+
"maxTickRotation": 45,
|
|
46
|
+
"hideAxis": false,
|
|
47
|
+
"hideLabel": false,
|
|
48
|
+
"hideTicks": false
|
|
49
|
+
},
|
|
50
|
+
"yAxis": {
|
|
51
|
+
"type": "categorical",
|
|
52
|
+
"label": "Region",
|
|
53
|
+
"hideAxis": false,
|
|
54
|
+
"hideLabel": false,
|
|
55
|
+
"hideTicks": false,
|
|
56
|
+
"size": 80
|
|
57
|
+
},
|
|
58
|
+
"series": [
|
|
59
|
+
{
|
|
60
|
+
"dataKey": "Northeast",
|
|
61
|
+
"name": "Northeast",
|
|
62
|
+
"type": "HeatMap",
|
|
63
|
+
"axis": "Left",
|
|
64
|
+
"tooltip": true
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"dataKey": "South",
|
|
68
|
+
"name": "South",
|
|
69
|
+
"type": "HeatMap",
|
|
70
|
+
"axis": "Left",
|
|
71
|
+
"tooltip": true
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"dataKey": "West",
|
|
75
|
+
"name": "West",
|
|
76
|
+
"type": "HeatMap",
|
|
77
|
+
"axis": "Left",
|
|
78
|
+
"tooltip": true
|
|
79
|
+
}
|
|
80
|
+
],
|
|
81
|
+
"columns": {
|
|
82
|
+
"week": {
|
|
83
|
+
"name": "week",
|
|
84
|
+
"label": "Week",
|
|
85
|
+
"dataTable": true
|
|
86
|
+
},
|
|
87
|
+
"Northeast": {
|
|
88
|
+
"name": "Northeast",
|
|
89
|
+
"label": "Northeast",
|
|
90
|
+
"dataTable": true
|
|
91
|
+
},
|
|
92
|
+
"South": {
|
|
93
|
+
"name": "South",
|
|
94
|
+
"label": "South",
|
|
95
|
+
"dataTable": true
|
|
96
|
+
},
|
|
97
|
+
"West": {
|
|
98
|
+
"name": "West",
|
|
99
|
+
"label": "West",
|
|
100
|
+
"dataTable": true
|
|
101
|
+
},
|
|
102
|
+
"notes": {
|
|
103
|
+
"name": "notes",
|
|
104
|
+
"label": "Notes",
|
|
105
|
+
"dataTable": true,
|
|
106
|
+
"tooltips": true
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
"heatmap": {
|
|
110
|
+
"cellPadding": 1,
|
|
111
|
+
"rowLabelGap": 32,
|
|
112
|
+
"columnLabelGap": 56,
|
|
113
|
+
"xAxisPosition": "top",
|
|
114
|
+
"showCellValues": false
|
|
115
|
+
},
|
|
116
|
+
"legend": {
|
|
117
|
+
"hide": false,
|
|
118
|
+
"position": "top",
|
|
119
|
+
"style": "gradient",
|
|
120
|
+
"subStyle": "smooth",
|
|
121
|
+
"label": "Cases per 100,000",
|
|
122
|
+
"hideBorder": false
|
|
123
|
+
},
|
|
124
|
+
"general": {
|
|
125
|
+
"palette": {
|
|
126
|
+
"name": "sequential_blue",
|
|
127
|
+
"version": "2.0",
|
|
128
|
+
"isReversed": false
|
|
129
|
+
}
|
|
130
|
+
},
|
|
131
|
+
"tooltips": {
|
|
132
|
+
"opacity": 90,
|
|
133
|
+
"singleSeries": false,
|
|
134
|
+
"dateDisplayFormat": "%B %-d, %Y"
|
|
135
|
+
},
|
|
136
|
+
"dataFormat": {
|
|
137
|
+
"abbreviated": false,
|
|
138
|
+
"roundTo": 0,
|
|
139
|
+
"commas": true
|
|
140
|
+
},
|
|
141
|
+
"table": {
|
|
142
|
+
"showVertical": true,
|
|
143
|
+
"show": true,
|
|
144
|
+
"showDataTableLink": true,
|
|
145
|
+
"expanded": false
|
|
146
|
+
},
|
|
147
|
+
"heights": {
|
|
148
|
+
"vertical": 340,
|
|
149
|
+
"horizontal": 340,
|
|
150
|
+
"mobileVertical": 260
|
|
151
|
+
},
|
|
152
|
+
"filters": [],
|
|
153
|
+
"chartMessage": {
|
|
154
|
+
"noData": "No Data Available"
|
|
155
|
+
}
|
|
156
|
+
}
|