@cdc/chart 4.26.1 → 4.26.3
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/CLAUDE.local.md +79 -0
- package/LICENSE +201 -0
- package/dist/{cdcchart-dgT_1dIT.es.js → cdcchart-DQ00cQCm.es.js} +1 -20
- package/dist/cdcchart.js +54742 -49796
- package/examples/data/data-with-metadata.json +10 -0
- package/examples/default.json +378 -0
- package/examples/feature/__data__/horizon-chart-data.json +373 -0
- package/examples/feature/annotations/index.json +3 -6
- package/examples/feature/horizon/horizon-chart.json +395 -0
- package/examples/feature/pie/planet-pie-example-config.json +2 -1
- package/examples/line-chart-states.json +1085 -0
- package/examples/metadata-variables.json +58 -0
- package/examples/private/123.json +694 -0
- package/examples/private/anchor-issue.json +4094 -0
- package/examples/private/backwards-slider.json +10430 -0
- package/examples/private/georgia.csv +160 -0
- package/examples/private/timeline-data.json +1 -0
- package/examples/private/timeline.json +389 -0
- package/examples/radar-chart-simple.json +133 -0
- package/examples/radar-chart.json +148 -0
- package/index.html +1 -31
- package/package.json +57 -59
- package/src/CdcChart.tsx +8 -4
- package/src/CdcChartComponent.tsx +398 -284
- package/src/_stories/Chart.Anchors.stories.tsx +10 -0
- package/src/_stories/Chart.BoxPlot.stories.tsx +7 -0
- package/src/_stories/Chart.CI.stories.tsx +13 -0
- package/src/_stories/Chart.Combo.stories.tsx +17 -0
- package/src/_stories/Chart.CustomColors.stories.tsx +78 -0
- package/src/_stories/Chart.Defaults.stories.tsx +95 -0
- package/src/_stories/Chart.DynamicSeries.stories.tsx +19 -0
- package/src/_stories/Chart.Filters.stories.tsx +4 -0
- package/src/_stories/Chart.Forecast.stories.tsx +4 -0
- package/src/_stories/Chart.HTMLInDataTable.stories.tsx +22 -0
- package/src/_stories/Chart.Legend.Gradient.stories.tsx +28 -0
- package/src/_stories/Chart.Patterns.stories.tsx +4 -0
- package/src/_stories/Chart.PreserveDecimals.stories.tsx +25 -0
- package/src/_stories/Chart.Regions.Categorical.stories.tsx +13 -0
- package/src/_stories/Chart.Regions.DateScale.stories.tsx +19 -0
- package/src/_stories/Chart.Regions.DateTimeScale.stories.tsx +25 -10
- package/src/_stories/Chart.ScatterPlot.stories.tsx +4 -0
- package/src/_stories/Chart.SmallMultiples.stories.tsx +16 -0
- package/src/_stories/Chart.SmallestLeftAxisMax.stories.tsx +64 -0
- package/src/_stories/Chart.stories.tsx +72 -1
- package/src/_stories/Chart.tooltip.stories.tsx +7 -0
- package/src/_stories/ChartAnnotation.stories.tsx +10 -0
- package/src/_stories/ChartAxisLabels.stories.tsx +4 -0
- package/src/_stories/ChartAxisTitles.stories.tsx +10 -0
- package/src/_stories/ChartBar.Editor.stories.tsx +97 -38
- package/src/_stories/ChartBrush.Editor.stories.tsx +11 -25
- package/src/_stories/ChartBrush.Matrix.Continuous.stories.tsx +41 -0
- package/src/_stories/ChartBrush.Matrix.Date.stories.tsx +114 -0
- package/src/_stories/ChartBrush.Matrix.DateTime.stories.tsx +78 -0
- package/src/_stories/ChartBrush.stories.tsx +7 -0
- package/src/_stories/ChartEditor.Editor.stories.tsx +1 -1
- package/src/_stories/ChartEditor.stories.tsx +7 -0
- package/src/_stories/ChartLine.QuadrantAngles.stories.tsx +89 -0
- package/src/_stories/ChartLine.Suppression.stories.tsx +7 -0
- package/src/_stories/ChartLine.Symbols.stories.tsx +4 -0
- package/src/_stories/ChartPrefixSuffix.stories.tsx +46 -1
- package/src/_stories/TechAdoptionWithLinks.stories.tsx +7 -0
- package/src/_stories/_mock/brush_continuous.json +86 -0
- package/src/_stories/_mock/brush_date_large.json +176 -0
- package/src/_stories/_mock/line_chart_angle_near_zero_fall.json +195 -0
- package/src/_stories/_mock/line_chart_angle_near_zero_rise.json +195 -0
- package/src/_stories/_mock/line_chart_angle_q1_steep_upward.json +195 -0
- package/src/_stories/_mock/line_chart_angle_q2_gentle_downward.json +195 -0
- package/src/_stories/_mock/line_chart_angle_q3_steep_downward.json +195 -0
- package/src/_stories/_mock/line_chart_angle_q4_gentle_upward.json +195 -0
- package/src/_stories/_mock/line_chart_quadrant_angles.json +264 -0
- package/src/_stories/_mock/paired-bar-abbr.json +421 -0
- package/src/_stories/_mock/pie_custom_colors.json +268 -0
- package/src/_stories/_mock/smallest_left_axis_max.json +104 -0
- package/src/components/Annotations/components/AnnotationDraggable.styles.css +14 -20
- package/src/components/Annotations/components/AnnotationDraggable.tsx +240 -116
- package/src/components/Annotations/components/AnnotationDropdown.styles.css +1 -2
- package/src/components/Annotations/components/AnnotationDropdown.tsx +8 -12
- package/src/components/Annotations/components/AnnotationList.styles.css +12 -18
- package/src/components/Annotations/components/AnnotationList.tsx +5 -4
- package/src/components/Annotations/components/findNearestDatum.ts +75 -85
- package/src/components/Annotations/helpers/getVisibleAnnotations.ts +38 -0
- package/src/components/Axis/BottomAxis.tsx +277 -0
- package/src/components/Axis/LeftAxis.tsx +404 -0
- package/src/components/Axis/LeftAxisGridlines.tsx +77 -0
- package/src/components/Axis/PairedBarAxis.tsx +192 -0
- package/src/components/Axis/README.md +94 -0
- package/src/components/Axis/RightAxis.tsx +108 -0
- package/src/components/Axis/axis.constants.ts +21 -0
- package/src/components/Axis/index.ts +7 -0
- package/src/components/BarChart/components/BarChart.Horizontal.tsx +12 -28
- package/src/components/BarChart/components/BarChart.StackedHorizontal.tsx +12 -30
- package/src/components/BarChart/components/BarChart.StackedVertical.tsx +12 -31
- package/src/components/BarChart/components/BarChart.Vertical.tsx +12 -28
- package/src/components/BarChart/components/BarChart.tsx +7 -1
- package/src/components/BarChart/helpers/getPatternUrl.ts +94 -0
- package/src/components/BarChart/helpers/tests/getPatternUrl.test.ts +134 -0
- package/src/components/BarChart/helpers/useBarChart.ts +3 -0
- package/src/components/Brush/BrushSelector.tsx +155 -22
- package/src/components/Brush/MiniChartPreview.tsx +133 -21
- package/src/components/EditorPanel/EditorPanel.tsx +81 -54
- package/src/components/EditorPanel/components/Panels/Panel.Annotate.tsx +67 -29
- package/src/components/EditorPanel/components/Panels/Panel.ForestPlotSettings.tsx +0 -78
- package/src/components/EditorPanel/components/Panels/Panel.General.tsx +120 -2
- package/src/components/EditorPanel/components/Panels/Panel.PatternSettings.tsx +25 -43
- package/src/components/EditorPanel/components/Panels/Panel.Radar.tsx +353 -0
- package/src/components/EditorPanel/components/Panels/Panel.Series.tsx +83 -3
- package/src/components/EditorPanel/components/Panels/Panel.Visual.tsx +66 -43
- package/src/components/EditorPanel/components/Panels/index.tsx +2 -0
- package/src/components/EditorPanel/editor-panel.scss +1 -1
- package/src/components/EditorPanel/useEditorPermissions.ts +55 -26
- package/src/components/ForestPlot/ForestPlot.tsx +26 -22
- package/src/components/HorizonChart/HorizonChart.tsx +131 -0
- package/src/components/HorizonChart/components/HorizonBand.tsx +160 -0
- package/src/components/HorizonChart/helpers/calculateHorizonBands.ts +27 -0
- package/src/components/HorizonChart/helpers/getHorizonLayerColors.ts +40 -0
- package/src/components/HorizonChart/index.tsx +3 -0
- package/src/components/Legend/Legend.Component.tsx +52 -4
- package/src/components/Legend/Legend.tsx +1 -1
- package/src/components/Legend/LegendGroup/LegendGroup.styles.css +4 -4
- package/src/components/Legend/LegendValueRange.tsx +77 -0
- package/src/components/Legend/helpers/createFormatLabels.tsx +16 -2
- package/src/components/Legend/helpers/generateValueRanges.ts +92 -0
- package/src/components/LineChart/helpers/README.md +292 -0
- package/src/components/LineChart/helpers/labelPositioning.test.ts +245 -0
- package/src/components/LineChart/helpers/labelPositioning.ts +304 -0
- package/src/components/LineChart/index.tsx +44 -8
- package/src/components/LinearChart/README.md +109 -0
- package/src/components/LinearChart/VisualizationRenderer.tsx +267 -0
- package/src/components/LinearChart/linearChart.constants.ts +84 -0
- package/src/components/LinearChart/tests/LinearChart.test.tsx +278 -0
- package/src/components/LinearChart/tests/mockConfigContext.ts +131 -0
- package/src/components/LinearChart/utils/tickFormatting.ts +146 -0
- package/src/components/LinearChart.tsx +268 -1057
- package/src/components/PieChart/PieChart.tsx +20 -5
- package/src/components/RadarChart/RadarAxis.tsx +78 -0
- package/src/components/RadarChart/RadarChart.tsx +298 -0
- package/src/components/RadarChart/RadarGrid.tsx +64 -0
- package/src/components/RadarChart/RadarPolygon.tsx +91 -0
- package/src/components/RadarChart/helpers.ts +83 -0
- package/src/components/RadarChart/index.tsx +3 -0
- package/src/components/Regions/components/Regions.tsx +6 -6
- package/src/components/Sankey/components/Sankey.tsx +3 -3
- package/src/components/Sankey/sankey.scss +1 -1
- package/src/components/SmallMultiples/SmallMultiples.css +5 -5
- package/src/components/Sparkline/index.scss +4 -2
- package/src/components/WarmingStripes/WarmingStripes.tsx +95 -25
- package/src/components/WarmingStripes/WarmingStripesGradientLegend.css +8 -8
- package/src/data/initial-state.js +37 -15
- package/src/data/legacy-defaults.ts +18 -0
- package/src/helpers/abbreviateNumber.ts +24 -17
- package/src/helpers/getChartPatternId.ts +17 -0
- package/src/helpers/getExcludedData.ts +4 -0
- package/src/helpers/getMinMax.ts +16 -2
- package/src/helpers/handleChartAriaLabels.ts +19 -19
- package/src/helpers/handleLineType.ts +22 -18
- package/src/helpers/seriesColumnSettings.ts +114 -0
- package/src/helpers/tests/countNumOfTicks.test.ts +77 -0
- package/src/helpers/tests/seriesColumnSettings.test.ts +84 -0
- package/src/hooks/useProgrammaticTooltip.ts +23 -2
- package/src/hooks/useRightAxis.ts +14 -0
- package/src/hooks/useScales.ts +99 -56
- package/src/hooks/useTooltip.tsx +23 -3
- package/src/scss/main.scss +157 -79
- package/src/selectors/README.md +68 -0
- package/src/store/chart.reducer.ts +2 -0
- package/src/test/CdcChart.test.jsx +2 -2
- package/src/types/ChartConfig.ts +22 -0
- package/src/types/ChartContext.ts +1 -0
- package/src/types/Horizon.ts +64 -0
- package/tests/fixtures/chart-config-with-metadata.json +29 -0
- package/tests/fixtures/data-with-metadata.json +10 -0
- package/preview.html +0 -1616
- package/src/components/Annotations/components/helpers/index.tsx +0 -46
|
@@ -0,0 +1,389 @@
|
|
|
1
|
+
{
|
|
2
|
+
"annotations": [],
|
|
3
|
+
"type": "chart",
|
|
4
|
+
"debugSvg": false,
|
|
5
|
+
"chartMessage": {
|
|
6
|
+
"noData": "No Data Available"
|
|
7
|
+
},
|
|
8
|
+
"title": "",
|
|
9
|
+
"titleStyle": "small",
|
|
10
|
+
"showTitle": true,
|
|
11
|
+
"showDownloadMediaButton": false,
|
|
12
|
+
"theme": "theme-blue",
|
|
13
|
+
"animate": false,
|
|
14
|
+
"lineDatapointStyle": "hover",
|
|
15
|
+
"lineDatapointColor": "Same as Line",
|
|
16
|
+
"barHasBorder": "true",
|
|
17
|
+
"isLollipopChart": false,
|
|
18
|
+
"lollipopShape": "circle",
|
|
19
|
+
"lollipopColorStyle": "two-tone",
|
|
20
|
+
"visualizationSubType": "regular",
|
|
21
|
+
"barStyle": "flat",
|
|
22
|
+
"roundingStyle": "standard",
|
|
23
|
+
"tipRounding": "top",
|
|
24
|
+
"isResponsiveTicks": false,
|
|
25
|
+
"general": {
|
|
26
|
+
"annotationDropdownText": "Annotations",
|
|
27
|
+
"showMissingDataLabel": true,
|
|
28
|
+
"showSuppressedSymbol": true,
|
|
29
|
+
"showZeroValueData": true,
|
|
30
|
+
"hideNullValue": true,
|
|
31
|
+
"palette": {
|
|
32
|
+
"name": "sequential_blue",
|
|
33
|
+
"version": "1.0"
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"padding": {
|
|
37
|
+
"left": 5,
|
|
38
|
+
"right": 5
|
|
39
|
+
},
|
|
40
|
+
"preliminaryData": [],
|
|
41
|
+
"yAxis": {
|
|
42
|
+
"hideAxis": false,
|
|
43
|
+
"displayNumbersOnBar": false,
|
|
44
|
+
"hideLabel": false,
|
|
45
|
+
"hideTicks": false,
|
|
46
|
+
"size": 50,
|
|
47
|
+
"gridLines": false,
|
|
48
|
+
"enablePadding": false,
|
|
49
|
+
"min": "",
|
|
50
|
+
"max": "",
|
|
51
|
+
"labelColor": "#1c1d1f",
|
|
52
|
+
"tickLabelColor": "#1c1d1f",
|
|
53
|
+
"tickColor": "#1c1d1f",
|
|
54
|
+
"rightHideAxis": false,
|
|
55
|
+
"rightAxisSize": 0,
|
|
56
|
+
"rightLabel": "",
|
|
57
|
+
"rightLabelOffsetSize": 0,
|
|
58
|
+
"rightAxisLabelColor": "#1c1d1f",
|
|
59
|
+
"rightAxisTickLabelColor": "#1c1d1f",
|
|
60
|
+
"rightAxisTickColor": "#1c1d1f",
|
|
61
|
+
"numTicks": "",
|
|
62
|
+
"axisPadding": 0,
|
|
63
|
+
"scalePadding": 10,
|
|
64
|
+
"tickRotation": 0,
|
|
65
|
+
"anchors": [],
|
|
66
|
+
"shoMissingDataLabel": true,
|
|
67
|
+
"showMissingDataLine": true,
|
|
68
|
+
"categories": []
|
|
69
|
+
},
|
|
70
|
+
"boxplot": {
|
|
71
|
+
"plots": [],
|
|
72
|
+
"borders": "true",
|
|
73
|
+
"plotOutlierValues": false,
|
|
74
|
+
"plotNonOutlierValues": true,
|
|
75
|
+
"labels": {
|
|
76
|
+
"q1": "Lower Quartile",
|
|
77
|
+
"q2": "q2",
|
|
78
|
+
"q3": "Upper Quartile",
|
|
79
|
+
"q4": "q4",
|
|
80
|
+
"minimum": "Minimum",
|
|
81
|
+
"maximum": "Maximum",
|
|
82
|
+
"mean": "Mean",
|
|
83
|
+
"median": "Median",
|
|
84
|
+
"sd": "Standard Deviation",
|
|
85
|
+
"iqr": "Interquartile Range",
|
|
86
|
+
"count": "Count",
|
|
87
|
+
"outliers": "Outliers",
|
|
88
|
+
"values": "Values",
|
|
89
|
+
"lowerBounds": "Lower Bounds",
|
|
90
|
+
"upperBounds": "Upper Bounds"
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
"topAxis": {
|
|
94
|
+
"hasLine": false
|
|
95
|
+
},
|
|
96
|
+
"isLegendValue": false,
|
|
97
|
+
"barThickness": 0.35,
|
|
98
|
+
"barHeight": 25,
|
|
99
|
+
"barSpace": 15,
|
|
100
|
+
"heights": {
|
|
101
|
+
"vertical": "350",
|
|
102
|
+
"horizontal": 750
|
|
103
|
+
},
|
|
104
|
+
"xAxis": {
|
|
105
|
+
"sortDates": false,
|
|
106
|
+
"anchors": [],
|
|
107
|
+
"type": "date",
|
|
108
|
+
"showTargetLabel": true,
|
|
109
|
+
"targetLabel": "Target",
|
|
110
|
+
"hideAxis": false,
|
|
111
|
+
"hideLabel": false,
|
|
112
|
+
"hideTicks": false,
|
|
113
|
+
"size": 75,
|
|
114
|
+
"tickRotation": 0,
|
|
115
|
+
"min": "",
|
|
116
|
+
"max": "",
|
|
117
|
+
"labelColor": "#1c1d1f",
|
|
118
|
+
"tickLabelColor": "#1c1d1f",
|
|
119
|
+
"tickColor": "#1c1d1f",
|
|
120
|
+
"numTicks": "",
|
|
121
|
+
"labelOffset": 0,
|
|
122
|
+
"axisPadding": 200,
|
|
123
|
+
"target": 0,
|
|
124
|
+
"maxTickRotation": 0,
|
|
125
|
+
"padding": 5,
|
|
126
|
+
"showYearsOnce": false,
|
|
127
|
+
"sortByRecentDate": false,
|
|
128
|
+
"brushActive": true,
|
|
129
|
+
"dataKey": "Week_End",
|
|
130
|
+
"axisBBox": 62.279998779296875,
|
|
131
|
+
"tickWidthMax": 67,
|
|
132
|
+
"label": "Week Ending",
|
|
133
|
+
"dateParseFormat": "%Y-%m-%d",
|
|
134
|
+
"dateDisplayFormat": "%m/%d/%y"
|
|
135
|
+
},
|
|
136
|
+
"table": {
|
|
137
|
+
"label": "Data Table",
|
|
138
|
+
"expanded": false,
|
|
139
|
+
"limitHeight": false,
|
|
140
|
+
"height": "",
|
|
141
|
+
"caption": "",
|
|
142
|
+
"showDownloadUrl": false,
|
|
143
|
+
"showDataTableLink": false,
|
|
144
|
+
"showDownloadLinkBelow": true,
|
|
145
|
+
"indexLabel": "",
|
|
146
|
+
"download": false,
|
|
147
|
+
"showVertical": true,
|
|
148
|
+
"dateDisplayFormat": "",
|
|
149
|
+
"showMissingDataLabel": true,
|
|
150
|
+
"showSuppressedSymbol": true,
|
|
151
|
+
"collapsible": true,
|
|
152
|
+
"show": true
|
|
153
|
+
},
|
|
154
|
+
"orientation": "vertical",
|
|
155
|
+
"columns": {},
|
|
156
|
+
"legend": {
|
|
157
|
+
"hide": false,
|
|
158
|
+
"behavior": "isolate",
|
|
159
|
+
"axisAlign": true,
|
|
160
|
+
"singleRow": true,
|
|
161
|
+
"colorCode": "",
|
|
162
|
+
"reverseLabelOrder": false,
|
|
163
|
+
"description": "",
|
|
164
|
+
"dynamicLegend": false,
|
|
165
|
+
"dynamicLegendDefaultText": "Show All",
|
|
166
|
+
"dynamicLegendItemLimit": 5,
|
|
167
|
+
"dynamicLegendItemLimitMessage": "Dynamic Legend Item Limit Hit.",
|
|
168
|
+
"dynamicLegendChartMessage": "Select Options from the Legend",
|
|
169
|
+
"label": "",
|
|
170
|
+
"lineMode": false,
|
|
171
|
+
"verticalSorted": false,
|
|
172
|
+
"highlightOnHover": false,
|
|
173
|
+
"hideSuppressedLabels": false,
|
|
174
|
+
"hideSuppressionLink": false,
|
|
175
|
+
"seriesHighlight": [],
|
|
176
|
+
"style": "circles",
|
|
177
|
+
"subStyle": "linear blocks",
|
|
178
|
+
"groupBy": "",
|
|
179
|
+
"shape": "circle",
|
|
180
|
+
"tickRotation": "",
|
|
181
|
+
"order": "dataColumn",
|
|
182
|
+
"hideBorder": {
|
|
183
|
+
"side": false,
|
|
184
|
+
"topBottom": true
|
|
185
|
+
},
|
|
186
|
+
"position": "bottom",
|
|
187
|
+
"orderedValues": [],
|
|
188
|
+
"patterns": {},
|
|
189
|
+
"patternField": "",
|
|
190
|
+
"unified": true
|
|
191
|
+
},
|
|
192
|
+
"smallMultiples": {
|
|
193
|
+
"mode": "",
|
|
194
|
+
"tileColumn": "",
|
|
195
|
+
"tilesPerRowDesktop": 3,
|
|
196
|
+
"tilesPerRowMobile": 1,
|
|
197
|
+
"tileOrder": [],
|
|
198
|
+
"tileOrderType": "asc",
|
|
199
|
+
"tileTitles": {},
|
|
200
|
+
"independentYAxis": false,
|
|
201
|
+
"colorMode": "same",
|
|
202
|
+
"synchronizedTooltips": true,
|
|
203
|
+
"showAreaUnderLine": true
|
|
204
|
+
},
|
|
205
|
+
"exclusions": {
|
|
206
|
+
"active": false,
|
|
207
|
+
"keys": []
|
|
208
|
+
},
|
|
209
|
+
"twoColor": {
|
|
210
|
+
"palette": "monochrome-1",
|
|
211
|
+
"isPaletteReversed": false
|
|
212
|
+
},
|
|
213
|
+
"labels": false,
|
|
214
|
+
"dataFormat": {
|
|
215
|
+
"commas": false,
|
|
216
|
+
"prefix": "",
|
|
217
|
+
"suffix": "",
|
|
218
|
+
"abbreviated": false,
|
|
219
|
+
"bottomSuffix": "",
|
|
220
|
+
"bottomPrefix": "",
|
|
221
|
+
"bottomAbbreviated": false
|
|
222
|
+
},
|
|
223
|
+
"filters": [
|
|
224
|
+
{
|
|
225
|
+
"filterStyle": "dropdown",
|
|
226
|
+
"id": 1769623792468,
|
|
227
|
+
"showDropdown": false,
|
|
228
|
+
"columnName": "Pathogen_Target",
|
|
229
|
+
"orderedValues": [
|
|
230
|
+
"COVID-19",
|
|
231
|
+
"Influenza A",
|
|
232
|
+
"RSV"
|
|
233
|
+
],
|
|
234
|
+
"defaultValue": "COVID-19"
|
|
235
|
+
}
|
|
236
|
+
],
|
|
237
|
+
"confidenceKeys": {},
|
|
238
|
+
"visual": {
|
|
239
|
+
"border": true,
|
|
240
|
+
"accent": true,
|
|
241
|
+
"background": true,
|
|
242
|
+
"verticalHoverLine": false,
|
|
243
|
+
"horizontalHoverLine": false,
|
|
244
|
+
"lineDatapointSymbol": "none",
|
|
245
|
+
"maximumShapeAmount": 7
|
|
246
|
+
},
|
|
247
|
+
"useLogScale": false,
|
|
248
|
+
"filterBehavior": "Filter Change",
|
|
249
|
+
"highlightedBarValues": [],
|
|
250
|
+
"series": [
|
|
251
|
+
{
|
|
252
|
+
"dataKey": "National_WVAL",
|
|
253
|
+
"type": "Line",
|
|
254
|
+
"axis": "Left",
|
|
255
|
+
"tooltip": true
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
"dataKey": "Midwest_WVAL",
|
|
259
|
+
"type": "Line",
|
|
260
|
+
"axis": "Left",
|
|
261
|
+
"tooltip": true
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
"dataKey": "South_WVAL",
|
|
265
|
+
"type": "Line",
|
|
266
|
+
"axis": "Left",
|
|
267
|
+
"tooltip": true
|
|
268
|
+
},
|
|
269
|
+
{
|
|
270
|
+
"dataKey": "Northeast_WVAL",
|
|
271
|
+
"type": "Line",
|
|
272
|
+
"axis": "Left",
|
|
273
|
+
"tooltip": true
|
|
274
|
+
},
|
|
275
|
+
{
|
|
276
|
+
"dataKey": "West_WVAL",
|
|
277
|
+
"type": "Line",
|
|
278
|
+
"axis": "Left",
|
|
279
|
+
"tooltip": true
|
|
280
|
+
}
|
|
281
|
+
],
|
|
282
|
+
"tooltips": {
|
|
283
|
+
"opacity": 90,
|
|
284
|
+
"singleSeries": false,
|
|
285
|
+
"dateDisplayFormat": ""
|
|
286
|
+
},
|
|
287
|
+
"forestPlot": {
|
|
288
|
+
"startAt": 0,
|
|
289
|
+
"colors": {
|
|
290
|
+
"line": "",
|
|
291
|
+
"shape": ""
|
|
292
|
+
},
|
|
293
|
+
"lineOfNoEffect": {
|
|
294
|
+
"show": true
|
|
295
|
+
},
|
|
296
|
+
"type": "",
|
|
297
|
+
"pooledResult": {
|
|
298
|
+
"diamondHeight": 5,
|
|
299
|
+
"column": ""
|
|
300
|
+
},
|
|
301
|
+
"estimateField": "",
|
|
302
|
+
"estimateRadius": "",
|
|
303
|
+
"shape": "square",
|
|
304
|
+
"rowHeight": 20,
|
|
305
|
+
"description": {
|
|
306
|
+
"show": true,
|
|
307
|
+
"text": "description",
|
|
308
|
+
"location": 0
|
|
309
|
+
},
|
|
310
|
+
"result": {
|
|
311
|
+
"show": true,
|
|
312
|
+
"text": "result",
|
|
313
|
+
"location": 100
|
|
314
|
+
},
|
|
315
|
+
"radius": {
|
|
316
|
+
"min": 2,
|
|
317
|
+
"max": 10,
|
|
318
|
+
"scalingColumn": ""
|
|
319
|
+
},
|
|
320
|
+
"regression": {
|
|
321
|
+
"lower": 0,
|
|
322
|
+
"upper": 0,
|
|
323
|
+
"estimateField": 0
|
|
324
|
+
},
|
|
325
|
+
"leftWidthOffset": 0,
|
|
326
|
+
"rightWidthOffset": 0,
|
|
327
|
+
"showZeroLine": false,
|
|
328
|
+
"leftLabel": "",
|
|
329
|
+
"rightLabel": ""
|
|
330
|
+
},
|
|
331
|
+
"area": {
|
|
332
|
+
"isStacked": false
|
|
333
|
+
},
|
|
334
|
+
"sankey": {
|
|
335
|
+
"title": {
|
|
336
|
+
"defaultColor": "black"
|
|
337
|
+
},
|
|
338
|
+
"iterations": 1,
|
|
339
|
+
"rxValue": 0.9,
|
|
340
|
+
"overallSize": {
|
|
341
|
+
"width": 900,
|
|
342
|
+
"height": 700
|
|
343
|
+
},
|
|
344
|
+
"margin": {
|
|
345
|
+
"margin_y": 25,
|
|
346
|
+
"margin_x": 0
|
|
347
|
+
},
|
|
348
|
+
"nodeSize": {
|
|
349
|
+
"nodeWidth": 26,
|
|
350
|
+
"nodeHeight": 40
|
|
351
|
+
},
|
|
352
|
+
"nodePadding": 55,
|
|
353
|
+
"nodeFontColor": "black",
|
|
354
|
+
"nodeColor": {
|
|
355
|
+
"default": "#ff8500",
|
|
356
|
+
"inactive": "#808080"
|
|
357
|
+
},
|
|
358
|
+
"linkColor": {
|
|
359
|
+
"default": "#ffc900",
|
|
360
|
+
"inactive": "#D3D3D3"
|
|
361
|
+
},
|
|
362
|
+
"opacity": {
|
|
363
|
+
"nodeOpacityDefault": 1,
|
|
364
|
+
"nodeOpacityInactive": 0.1,
|
|
365
|
+
"LinkOpacityDefault": 1,
|
|
366
|
+
"LinkOpacityInactive": 0.1
|
|
367
|
+
},
|
|
368
|
+
"storyNodeFontColor": "#006778",
|
|
369
|
+
"storyNodeText": [],
|
|
370
|
+
"nodeValueStyle": {
|
|
371
|
+
"textBefore": "(",
|
|
372
|
+
"textAfter": ")"
|
|
373
|
+
},
|
|
374
|
+
"data": []
|
|
375
|
+
},
|
|
376
|
+
"markupVariables": [],
|
|
377
|
+
"enableMarkupVariables": false,
|
|
378
|
+
"openModal": true,
|
|
379
|
+
"uid": "chart1769623346898",
|
|
380
|
+
"visualizationType": "Line",
|
|
381
|
+
"dataDescription": {
|
|
382
|
+
"horizontal": false,
|
|
383
|
+
"series": false
|
|
384
|
+
},
|
|
385
|
+
"dataurl": "http://localhost:8080/examples/private/timeline-data.json",
|
|
386
|
+
"showEditorPanel": true,
|
|
387
|
+
"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.</div>",
|
|
388
|
+
"dynamicMarginTop": 0
|
|
389
|
+
}
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
{
|
|
2
|
+
"type": "chart",
|
|
3
|
+
"title": "Program A vs Program B Performance",
|
|
4
|
+
"showTitle": true,
|
|
5
|
+
"theme": "theme-blue",
|
|
6
|
+
"visualizationType": "Radar",
|
|
7
|
+
"animate": false,
|
|
8
|
+
"heights": {
|
|
9
|
+
"vertical": 400,
|
|
10
|
+
"horizontal": 400
|
|
11
|
+
},
|
|
12
|
+
"xAxis": {
|
|
13
|
+
"dataKey": "Program",
|
|
14
|
+
"label": "Program"
|
|
15
|
+
},
|
|
16
|
+
"yAxis": {
|
|
17
|
+
"dataKey": ""
|
|
18
|
+
},
|
|
19
|
+
"series": [
|
|
20
|
+
{
|
|
21
|
+
"dataKey": "Reach",
|
|
22
|
+
"name": "Reach",
|
|
23
|
+
"type": "Radar",
|
|
24
|
+
"axis": "Left",
|
|
25
|
+
"tooltip": true
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"dataKey": "Engagement",
|
|
29
|
+
"name": "Engagement",
|
|
30
|
+
"type": "Radar",
|
|
31
|
+
"axis": "Left",
|
|
32
|
+
"tooltip": true
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"dataKey": "Effectiveness",
|
|
36
|
+
"name": "Effectiveness",
|
|
37
|
+
"type": "Radar",
|
|
38
|
+
"axis": "Left",
|
|
39
|
+
"tooltip": true
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"dataKey": "Adoption",
|
|
43
|
+
"name": "Adoption",
|
|
44
|
+
"type": "Radar",
|
|
45
|
+
"axis": "Left",
|
|
46
|
+
"tooltip": true
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"dataKey": "Maintenance",
|
|
50
|
+
"name": "Maintenance",
|
|
51
|
+
"type": "Radar",
|
|
52
|
+
"axis": "Left",
|
|
53
|
+
"tooltip": true
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"dataKey": "Cost Efficiency",
|
|
57
|
+
"name": "Cost Efficiency",
|
|
58
|
+
"type": "Radar",
|
|
59
|
+
"axis": "Left",
|
|
60
|
+
"tooltip": true
|
|
61
|
+
}
|
|
62
|
+
],
|
|
63
|
+
"radar": {
|
|
64
|
+
"gridRings": 4,
|
|
65
|
+
"showGridRings": true,
|
|
66
|
+
"gridRingStyle": "circles",
|
|
67
|
+
"scaleMin": 0,
|
|
68
|
+
"scaleMax": 100,
|
|
69
|
+
"showFill": false,
|
|
70
|
+
"fillOpacity": 0.25,
|
|
71
|
+
"showPoints": true,
|
|
72
|
+
"pointRadius": 5,
|
|
73
|
+
"strokeWidth": 2,
|
|
74
|
+
"axisLabelOffset": 25
|
|
75
|
+
},
|
|
76
|
+
"legend": {
|
|
77
|
+
"hide": false,
|
|
78
|
+
"behavior": "isolate",
|
|
79
|
+
"singleRow": true,
|
|
80
|
+
"position": "bottom",
|
|
81
|
+
"label": ""
|
|
82
|
+
},
|
|
83
|
+
"tooltips": {
|
|
84
|
+
"opacity": 90,
|
|
85
|
+
"singleSeries": false
|
|
86
|
+
},
|
|
87
|
+
"dataFormat": {
|
|
88
|
+
"commas": false,
|
|
89
|
+
"prefix": "",
|
|
90
|
+
"suffix": "",
|
|
91
|
+
"abbreviated": false
|
|
92
|
+
},
|
|
93
|
+
"table": {
|
|
94
|
+
"label": "Data Table",
|
|
95
|
+
"expanded": false,
|
|
96
|
+
"show": true,
|
|
97
|
+
"showDataTableLink": true
|
|
98
|
+
},
|
|
99
|
+
"general": {
|
|
100
|
+
"showDownloadButton": false,
|
|
101
|
+
"palette": {
|
|
102
|
+
"name": "qualitative_bold",
|
|
103
|
+
"version": "2.0",
|
|
104
|
+
"isReversed": false
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
"data": [
|
|
108
|
+
{
|
|
109
|
+
"Program": "Program A",
|
|
110
|
+
"Reach": 85,
|
|
111
|
+
"Engagement": 70,
|
|
112
|
+
"Effectiveness": 90,
|
|
113
|
+
"Adoption": 65,
|
|
114
|
+
"Maintenance": 75,
|
|
115
|
+
"Cost Efficiency": 80
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
"Program": "Program B",
|
|
119
|
+
"Reach": 60,
|
|
120
|
+
"Engagement": 85,
|
|
121
|
+
"Effectiveness": 70,
|
|
122
|
+
"Adoption": 90,
|
|
123
|
+
"Maintenance": 80,
|
|
124
|
+
"Cost Efficiency": 55
|
|
125
|
+
}
|
|
126
|
+
],
|
|
127
|
+
"description": "RE-AIM framework comparison of two health intervention programs.",
|
|
128
|
+
"filters": [],
|
|
129
|
+
"exclusions": {
|
|
130
|
+
"active": false,
|
|
131
|
+
"keys": []
|
|
132
|
+
}
|
|
133
|
+
}
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
{
|
|
2
|
+
"type": "chart",
|
|
3
|
+
"title": "Regional Health Performance Indicators",
|
|
4
|
+
"showTitle": true,
|
|
5
|
+
"theme": "theme-blue",
|
|
6
|
+
"visualizationType": "Radar",
|
|
7
|
+
"animate": false,
|
|
8
|
+
"heights": {
|
|
9
|
+
"vertical": 400,
|
|
10
|
+
"horizontal": 400
|
|
11
|
+
},
|
|
12
|
+
"xAxis": {
|
|
13
|
+
"dataKey": "Region",
|
|
14
|
+
"label": "Region"
|
|
15
|
+
},
|
|
16
|
+
"yAxis": {
|
|
17
|
+
"dataKey": ""
|
|
18
|
+
},
|
|
19
|
+
"series": [
|
|
20
|
+
{
|
|
21
|
+
"dataKey": "Vaccination Rate",
|
|
22
|
+
"name": "Vaccination Rate",
|
|
23
|
+
"type": "Radar",
|
|
24
|
+
"axis": "Left",
|
|
25
|
+
"tooltip": true
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"dataKey": "Healthcare Access",
|
|
29
|
+
"name": "Healthcare Access",
|
|
30
|
+
"type": "Radar",
|
|
31
|
+
"axis": "Left",
|
|
32
|
+
"tooltip": true
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"dataKey": "Disease Prevention",
|
|
36
|
+
"name": "Disease Prevention",
|
|
37
|
+
"type": "Radar",
|
|
38
|
+
"axis": "Left",
|
|
39
|
+
"tooltip": true
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"dataKey": "Health Education",
|
|
43
|
+
"name": "Health Education",
|
|
44
|
+
"type": "Radar",
|
|
45
|
+
"axis": "Left",
|
|
46
|
+
"tooltip": true
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"dataKey": "Emergency Response",
|
|
50
|
+
"name": "Emergency Response",
|
|
51
|
+
"type": "Radar",
|
|
52
|
+
"axis": "Left",
|
|
53
|
+
"tooltip": true
|
|
54
|
+
}
|
|
55
|
+
],
|
|
56
|
+
"radar": {
|
|
57
|
+
"gridRings": 5,
|
|
58
|
+
"showGridRings": true,
|
|
59
|
+
"gridRingStyle": "polygons",
|
|
60
|
+
"scaleMin": 0,
|
|
61
|
+
"scaleMax": 100,
|
|
62
|
+
"showFill": false,
|
|
63
|
+
"fillOpacity": 0.3,
|
|
64
|
+
"showPoints": true,
|
|
65
|
+
"pointRadius": 4,
|
|
66
|
+
"strokeWidth": 2,
|
|
67
|
+
"axisLabelOffset": 20
|
|
68
|
+
},
|
|
69
|
+
"legend": {
|
|
70
|
+
"hide": false,
|
|
71
|
+
"behavior": "highlight",
|
|
72
|
+
"singleRow": true,
|
|
73
|
+
"position": "right",
|
|
74
|
+
"label": "Regions"
|
|
75
|
+
},
|
|
76
|
+
"tooltips": {
|
|
77
|
+
"opacity": 90,
|
|
78
|
+
"singleSeries": false
|
|
79
|
+
},
|
|
80
|
+
"dataFormat": {
|
|
81
|
+
"commas": false,
|
|
82
|
+
"prefix": "",
|
|
83
|
+
"suffix": "%",
|
|
84
|
+
"abbreviated": false
|
|
85
|
+
},
|
|
86
|
+
"table": {
|
|
87
|
+
"label": "Data Table",
|
|
88
|
+
"expanded": true,
|
|
89
|
+
"show": true,
|
|
90
|
+
"showDataTableLink": true
|
|
91
|
+
},
|
|
92
|
+
"general": {
|
|
93
|
+
"showDownloadButton": false,
|
|
94
|
+
"palette": {
|
|
95
|
+
"name": "qualitative_standard",
|
|
96
|
+
"version": "2.0",
|
|
97
|
+
"isReversed": false
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
"data": [
|
|
101
|
+
{
|
|
102
|
+
"Region": "Northeast",
|
|
103
|
+
"Vaccination Rate": 85,
|
|
104
|
+
"Healthcare Access": 78,
|
|
105
|
+
"Disease Prevention": 82,
|
|
106
|
+
"Health Education": 75,
|
|
107
|
+
"Emergency Response": 88
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"Region": "Southeast",
|
|
111
|
+
"Vaccination Rate": 72,
|
|
112
|
+
"Healthcare Access": 68,
|
|
113
|
+
"Disease Prevention": 70,
|
|
114
|
+
"Health Education": 65,
|
|
115
|
+
"Emergency Response": 75
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
"Region": "Midwest",
|
|
119
|
+
"Vaccination Rate": 78,
|
|
120
|
+
"Healthcare Access": 72,
|
|
121
|
+
"Disease Prevention": 76,
|
|
122
|
+
"Health Education": 70,
|
|
123
|
+
"Emergency Response": 80
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"Region": "Southwest",
|
|
127
|
+
"Vaccination Rate": 70,
|
|
128
|
+
"Healthcare Access": 65,
|
|
129
|
+
"Disease Prevention": 68,
|
|
130
|
+
"Health Education": 72,
|
|
131
|
+
"Emergency Response": 70
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
"Region": "West",
|
|
135
|
+
"Vaccination Rate": 82,
|
|
136
|
+
"Healthcare Access": 80,
|
|
137
|
+
"Disease Prevention": 78,
|
|
138
|
+
"Health Education": 85,
|
|
139
|
+
"Emergency Response": 82
|
|
140
|
+
}
|
|
141
|
+
],
|
|
142
|
+
"description": "Comparison of health performance indicators across five U.S. regions. Each axis represents a different health metric scored on a 0-100 scale.",
|
|
143
|
+
"filters": [],
|
|
144
|
+
"exclusions": {
|
|
145
|
+
"active": false,
|
|
146
|
+
"keys": []
|
|
147
|
+
}
|
|
148
|
+
}
|
package/index.html
CHANGED
|
@@ -1,31 +1 @@
|
|
|
1
|
-
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="utf-8" />
|
|
5
|
-
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
|
|
6
|
-
<style>
|
|
7
|
-
body {
|
|
8
|
-
margin: 0;
|
|
9
|
-
border-top: none !important;
|
|
10
|
-
/* Force scrollbar so page stays consistent width */
|
|
11
|
-
min-height: calc(100vh + 1px);
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.cdc-map-outer-container {
|
|
15
|
-
min-height: 100vh;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
<body>
|
|
19
|
-
<!-- GENERIC CHART TYPES -->
|
|
20
|
-
<div class="react-container" data-config="/examples/private/height.json"></div>
|
|
21
|
-
|
|
22
|
-
<body>
|
|
23
|
-
<!-- GENERIC CHART TYPES -->
|
|
24
|
-
<div class="react-container" data-config="/examples/private/height.json"></div>
|
|
25
|
-
|
|
26
|
-
<noscript>You need to enable JavaScript to run this app.</noscript>
|
|
27
|
-
|
|
28
|
-
<script type="module" src="./src/index.jsx"></script>
|
|
29
|
-
</body>
|
|
30
|
-
|
|
31
|
-
</html>
|
|
1
|
+
<!-- index.html is generated by @cdc/core/generateViteConfig.js using the files in @cdc/core/devTemplate/ -->
|