@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,158 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "4.26.6",
|
|
3
|
+
"type": "chart",
|
|
4
|
+
"visualizationType": "HeatMap",
|
|
5
|
+
"visualizationSubType": "regular",
|
|
6
|
+
"title": "Sparse Aggregated Case Rates by Region",
|
|
7
|
+
"showTitle": true,
|
|
8
|
+
"theme": "theme-blue",
|
|
9
|
+
"animate": false,
|
|
10
|
+
"orientation": "vertical",
|
|
11
|
+
"data": [
|
|
12
|
+
{
|
|
13
|
+
"week": "2024-01-01",
|
|
14
|
+
"Northeast": 12,
|
|
15
|
+
"South": 30,
|
|
16
|
+
"West": 18,
|
|
17
|
+
"notes": "Baseline"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"week": "2024-02-01",
|
|
21
|
+
"Northeast": 18,
|
|
22
|
+
"South": 34,
|
|
23
|
+
"notes": "West missing"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"week": "2024-03-01",
|
|
27
|
+
"Northeast": 24,
|
|
28
|
+
"South": 29,
|
|
29
|
+
"West": 22,
|
|
30
|
+
"notes": "Stable"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"week": "2024-03-01",
|
|
34
|
+
"Northeast": 6,
|
|
35
|
+
"South": 7,
|
|
36
|
+
"West": 3,
|
|
37
|
+
"notes": "Late report"
|
|
38
|
+
}
|
|
39
|
+
],
|
|
40
|
+
"xAxis": {
|
|
41
|
+
"type": "date",
|
|
42
|
+
"dataKey": "week",
|
|
43
|
+
"label": "Week",
|
|
44
|
+
"dateParseFormat": "%Y-%m-%d",
|
|
45
|
+
"dateDisplayFormat": "%b %-d",
|
|
46
|
+
"tickRotation": 45,
|
|
47
|
+
"maxTickRotation": 45,
|
|
48
|
+
"hideAxis": false,
|
|
49
|
+
"hideLabel": false,
|
|
50
|
+
"hideTicks": false
|
|
51
|
+
},
|
|
52
|
+
"yAxis": {
|
|
53
|
+
"type": "categorical",
|
|
54
|
+
"label": "Region",
|
|
55
|
+
"hideAxis": false,
|
|
56
|
+
"hideLabel": false,
|
|
57
|
+
"hideTicks": false,
|
|
58
|
+
"size": 80
|
|
59
|
+
},
|
|
60
|
+
"series": [
|
|
61
|
+
{
|
|
62
|
+
"dataKey": "Northeast",
|
|
63
|
+
"name": "Northeast",
|
|
64
|
+
"type": "HeatMap",
|
|
65
|
+
"axis": "Left",
|
|
66
|
+
"tooltip": true
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"dataKey": "South",
|
|
70
|
+
"name": "South",
|
|
71
|
+
"type": "HeatMap",
|
|
72
|
+
"axis": "Left",
|
|
73
|
+
"tooltip": true
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"dataKey": "West",
|
|
77
|
+
"name": "West",
|
|
78
|
+
"type": "HeatMap",
|
|
79
|
+
"axis": "Left",
|
|
80
|
+
"tooltip": true
|
|
81
|
+
}
|
|
82
|
+
],
|
|
83
|
+
"columns": {
|
|
84
|
+
"week": {
|
|
85
|
+
"name": "week",
|
|
86
|
+
"label": "Week",
|
|
87
|
+
"dataTable": true
|
|
88
|
+
},
|
|
89
|
+
"Northeast": {
|
|
90
|
+
"name": "Northeast",
|
|
91
|
+
"label": "Northeast",
|
|
92
|
+
"dataTable": true
|
|
93
|
+
},
|
|
94
|
+
"South": {
|
|
95
|
+
"name": "South",
|
|
96
|
+
"label": "South",
|
|
97
|
+
"dataTable": true
|
|
98
|
+
},
|
|
99
|
+
"West": {
|
|
100
|
+
"name": "West",
|
|
101
|
+
"label": "West",
|
|
102
|
+
"dataTable": true
|
|
103
|
+
},
|
|
104
|
+
"notes": {
|
|
105
|
+
"name": "notes",
|
|
106
|
+
"label": "Notes",
|
|
107
|
+
"dataTable": true,
|
|
108
|
+
"tooltips": true
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
"heatmap": {
|
|
112
|
+
"cellPadding": 1,
|
|
113
|
+
"rowLabelGap": 32,
|
|
114
|
+
"columnLabelGap": 56,
|
|
115
|
+
"xAxisPosition": "top",
|
|
116
|
+
"showCellValues": false
|
|
117
|
+
},
|
|
118
|
+
"legend": {
|
|
119
|
+
"hide": false,
|
|
120
|
+
"position": "top",
|
|
121
|
+
"style": "gradient",
|
|
122
|
+
"subStyle": "smooth",
|
|
123
|
+
"label": "Cases per 100,000",
|
|
124
|
+
"hideBorder": false
|
|
125
|
+
},
|
|
126
|
+
"general": {
|
|
127
|
+
"palette": {
|
|
128
|
+
"name": "sequential_blue",
|
|
129
|
+
"version": "2.0",
|
|
130
|
+
"isReversed": false
|
|
131
|
+
}
|
|
132
|
+
},
|
|
133
|
+
"tooltips": {
|
|
134
|
+
"opacity": 90,
|
|
135
|
+
"singleSeries": false,
|
|
136
|
+
"dateDisplayFormat": "%B %-d, %Y"
|
|
137
|
+
},
|
|
138
|
+
"dataFormat": {
|
|
139
|
+
"abbreviated": false,
|
|
140
|
+
"roundTo": 0,
|
|
141
|
+
"commas": true
|
|
142
|
+
},
|
|
143
|
+
"table": {
|
|
144
|
+
"showVertical": true,
|
|
145
|
+
"show": true,
|
|
146
|
+
"showDataTableLink": true,
|
|
147
|
+
"expanded": false
|
|
148
|
+
},
|
|
149
|
+
"heights": {
|
|
150
|
+
"vertical": 340,
|
|
151
|
+
"horizontal": 340,
|
|
152
|
+
"mobileVertical": 260
|
|
153
|
+
},
|
|
154
|
+
"filters": [],
|
|
155
|
+
"chartMessage": {
|
|
156
|
+
"noData": "No Data Available"
|
|
157
|
+
}
|
|
158
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"title": "Paired Bar Chart Example",
|
|
3
|
-
"dataUrl": "/examples/feature/paired-bar/paired-bar-data.json",
|
|
3
|
+
"dataUrl": "/examples/feature/paired-bar/__data__/paired-bar-data.json",
|
|
4
4
|
"animate": true,
|
|
5
5
|
"animateReplay": true,
|
|
6
6
|
"visualizationType": "Paired Bar",
|
|
@@ -53,4 +53,4 @@
|
|
|
53
53
|
"runtime": {
|
|
54
54
|
"horizontal": true
|
|
55
55
|
}
|
|
56
|
-
}
|
|
56
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"title": "Case Rate Data",
|
|
3
3
|
"theme": "theme-blue",
|
|
4
|
-
"dataUrl": "/examples/feature/tests-case-rate/case-rate-example-data.json",
|
|
4
|
+
"dataUrl": "/examples/feature/tests-case-rate/__data__/case-rate-example-data.json",
|
|
5
5
|
"visualizationType": "Bar",
|
|
6
6
|
"visualizationSubType": "horizontal",
|
|
7
7
|
"series": [],
|
|
@@ -33,4 +33,4 @@
|
|
|
33
33
|
"expanded": true,
|
|
34
34
|
"download": true
|
|
35
35
|
}
|
|
36
|
-
}
|
|
36
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"title": "Confidence Age-adjusted COVID-19-associated hospitalization rates by race and ethnicity — COVID-NET, March 1–December 26, 2020",
|
|
3
|
-
"dataUrl": "/examples/feature/tests-covid/covid-example-data-confidence.json",
|
|
3
|
+
"dataUrl": "/examples/feature/tests-covid/__data__/covid-example-data-confidence.json",
|
|
4
4
|
"visualizationType": "Bar",
|
|
5
5
|
"fontSize": "small",
|
|
6
6
|
"series": [
|
|
@@ -37,4 +37,4 @@
|
|
|
37
37
|
"label": "Age-adjusted COVID-19-associated hospitalization rates by race and ethnicity",
|
|
38
38
|
"expanded": true
|
|
39
39
|
}
|
|
40
|
-
}
|
|
40
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"title": "Non Configdence Age-adjusted COVID-19-associated hospitalization rates by race and ethnicity — COVID-NET, March 1–December 26, 2020",
|
|
3
3
|
"theme": "theme-brown",
|
|
4
|
-
"dataUrl": "/examples/feature/tests-covid/covid-example-data.json",
|
|
4
|
+
"dataUrl": "/examples/feature/tests-covid/__data__/covid-example-data.json",
|
|
5
5
|
"visualizationType": "Bar",
|
|
6
6
|
"visualizationSubType": "horizontal",
|
|
7
7
|
"series": [
|
|
@@ -37,4 +37,4 @@
|
|
|
37
37
|
"expanded": true,
|
|
38
38
|
"download": true
|
|
39
39
|
}
|
|
40
|
-
}
|
|
40
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"title": "Data Cutoff Example (< 0.1)",
|
|
3
3
|
"theme": "theme-blue",
|
|
4
|
-
"dataUrl": "/examples/feature/tests-cutoff/cutoff-example-data.json",
|
|
4
|
+
"dataUrl": "/examples/feature/tests-cutoff/__data__/cutoff-example-data.json",
|
|
5
5
|
"animate": true,
|
|
6
6
|
"animateReplay": true,
|
|
7
7
|
"visualizationType": "Line",
|
|
@@ -39,4 +39,4 @@
|
|
|
39
39
|
"expanded": true,
|
|
40
40
|
"download": true
|
|
41
41
|
}
|
|
42
|
-
}
|
|
42
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"title": "Planet Radius (Pie Example)",
|
|
3
|
-
"dataUrl": "/examples/feature/tests-non-numerics/planet-example-data-nonnumeric.json",
|
|
3
|
+
"dataUrl": "/examples/feature/tests-non-numerics/__data__/planet-example-data-nonnumeric.json",
|
|
4
4
|
"animate": true,
|
|
5
5
|
"animateReplay": true,
|
|
6
6
|
"visualizationType": "Pie",
|
|
@@ -27,4 +27,4 @@
|
|
|
27
27
|
"label": "Data Table",
|
|
28
28
|
"expanded": false
|
|
29
29
|
}
|
|
30
|
-
}
|
|
30
|
+
}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"visualizationType": "Bar",
|
|
7
7
|
"visualizationSubType": "regular",
|
|
8
8
|
"orientation": "vertical",
|
|
9
|
-
"dataUrl": "/examples/
|
|
9
|
+
"dataUrl": "/examples/__data__/data-with-metadata.json",
|
|
10
10
|
"enableMarkupVariables": true,
|
|
11
11
|
"markupVariables": [
|
|
12
12
|
{
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "4.26.4",
|
|
3
|
+
"type": "chart",
|
|
4
|
+
"visualizationType": "Bar",
|
|
5
|
+
"title": "Minimal Chart",
|
|
6
|
+
"data": [
|
|
7
|
+
{
|
|
8
|
+
"category": "A",
|
|
9
|
+
"value": 1
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"category": "B",
|
|
13
|
+
"value": 2
|
|
14
|
+
}
|
|
15
|
+
],
|
|
16
|
+
"xAxis": {
|
|
17
|
+
"dataKey": "category"
|
|
18
|
+
},
|
|
19
|
+
"series": [
|
|
20
|
+
{
|
|
21
|
+
"dataKey": "value"
|
|
22
|
+
}
|
|
23
|
+
]
|
|
24
|
+
}
|