@cdc/chart 4.26.2 → 4.26.4
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 +169 -0
- package/README.md +42 -17
- package/dist/cdcchart.js +39419 -35180
- package/examples/__data__/data-with-metadata.json +10 -0
- package/examples/feature/bar/additional-column-tooltip.json +3 -3
- package/examples/feature/deviation/planet-deviation-config.json +2 -2
- package/examples/feature/paired-bar/paired-bar-example.json +2 -2
- package/examples/feature/pie/planet-pie-example-config.json +2 -1
- 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 +58 -0
- package/examples/minimal-example.json +24 -0
- package/examples/private/test2.json +35012 -0
- package/package.json +4 -4
- package/src/CdcChart.tsx +8 -4
- package/src/CdcChartComponent.tsx +326 -290
- package/src/_stories/Chart.CustomColors.smoke.stories.tsx +97 -0
- package/src/_stories/Chart.Defaults.smoke.stories.tsx +95 -0
- package/src/_stories/{Chart.HTMLInDataTable.stories.tsx → Chart.HTMLInDataTable.smoke.stories.tsx} +10 -0
- package/src/_stories/Chart.Minimal.smoke.stories.tsx +25 -0
- package/src/_stories/{Chart.SmallMultiples.stories.tsx → Chart.SmallMultiples.smoke.stories.tsx} +17 -1
- package/src/_stories/Chart.SmallestLeftAxisMax.smoke.stories.tsx +64 -0
- package/src/_stories/{Chart.stories.tsx → Chart.smoke.stories.tsx} +48 -2
- package/src/_stories/{Chart.tooltip.stories.tsx → Chart.tooltip.smoke.stories.tsx} +68 -0
- package/src/_stories/ChartBar.Editor.stories.tsx +177 -115
- package/src/_stories/ChartBrush.Editor.stories.tsx +11 -25
- package/src/_stories/ChartEditor.Editor.stories.tsx +24 -1
- package/src/_stories/{Chart.CustomColors.stories.tsx → ChartLine.DashedDates.smoke.stories.tsx} +4 -4
- package/src/_stories/_mock/line_chart_dashed_dates.json +276 -0
- package/src/_stories/_mock/paired-bar-abbr.json +421 -0
- package/src/_stories/_mock/paired-bar.json +1 -1
- 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 +10 -10
- package/src/components/Annotations/components/AnnotationDraggable.tsx +1 -1
- package/src/components/Annotations/components/AnnotationDropdown.styles.css +1 -1
- package/src/components/Annotations/components/AnnotationList.styles.css +11 -11
- package/src/components/AreaChart/components/AreaChart.Stacked.jsx +10 -2
- package/src/components/Axis/BottomAxis.tsx +10 -3
- package/src/components/Axis/LeftAxis.tsx +2 -4
- package/src/components/Axis/LeftAxisGridlines.tsx +1 -3
- package/src/components/Axis/PairedBarAxis.tsx +10 -4
- package/src/components/BarChart/components/BarChart.Horizontal.tsx +21 -33
- package/src/components/BarChart/components/BarChart.StackedHorizontal.tsx +21 -35
- package/src/components/BarChart/components/BarChart.StackedVertical.tsx +21 -36
- package/src/components/BarChart/components/BarChart.Vertical.tsx +21 -34
- package/src/components/BarChart/components/BarChart.tsx +2 -6
- 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 +4 -1
- package/src/components/BoxPlot/BoxPlot.Vertical.tsx +3 -3
- package/src/components/Brush/BrushSelector.tsx +2 -1
- package/src/components/Brush/MiniChartPreview.tsx +21 -26
- package/src/components/EditorPanel/EditorPanel.tsx +692 -954
- package/src/components/EditorPanel/EditorPanelContext.ts +1 -1
- package/src/components/EditorPanel/components/Panels/Panel.Annotate.tsx +218 -167
- package/src/components/EditorPanel/components/Panels/Panel.ForestPlotSettings.tsx +0 -78
- package/src/components/EditorPanel/components/Panels/Panel.General.tsx +39 -1
- package/src/components/EditorPanel/components/Panels/Panel.PatternSettings.tsx +169 -135
- package/src/components/EditorPanel/components/Panels/Panel.Regions.tsx +154 -109
- package/src/components/EditorPanel/components/Panels/Panel.Sankey.tsx +3 -3
- package/src/components/EditorPanel/components/Panels/Panel.Series.tsx +95 -28
- package/src/components/EditorPanel/components/Panels/Panel.Visual.tsx +45 -42
- package/src/components/EditorPanel/editor-panel.scss +1 -1
- package/src/components/EditorPanel/useEditorPermissions.ts +1 -10
- package/src/components/Forecasting/Forecasting.tsx +2 -2
- package/src/components/ForestPlot/ForestPlot.tsx +26 -22
- 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 +9 -4
- package/src/components/Legend/LegendGroup/LegendGroup.tsx +3 -1
- package/src/components/Legend/helpers/createFormatLabels.tsx +3 -2
- 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 +3 -2
- package/src/components/LineChart/index.tsx +11 -4
- package/src/components/LinearChart/VisualizationRenderer.tsx +11 -1
- package/src/components/LinearChart/tests/LinearChart.test.tsx +224 -0
- package/src/components/LinearChart/tests/mockConfigContext.ts +2 -0
- package/src/components/LinearChart.tsx +124 -47
- package/src/components/PairedBarChart.jsx +2 -2
- package/src/components/PieChart/PieChart.tsx +30 -13
- package/src/components/RadarChart/RadarChart.tsx +1 -1
- package/src/components/Regions/components/Regions.tsx +36 -26
- package/src/components/Sankey/components/Sankey.tsx +3 -3
- package/src/components/Sankey/sankey.scss +1 -1
- package/src/components/ScatterPlot/ScatterPlot.jsx +19 -17
- package/src/components/SmallMultiples/SmallMultipleTile.tsx +1 -0
- package/src/components/SmallMultiples/SmallMultiples.css +5 -5
- package/src/components/Sparkline/components/SparkLine.tsx +1 -1
- package/src/components/Sparkline/index.scss +4 -2
- package/src/components/WarmingStripes/WarmingStripes.tsx +5 -3
- package/src/components/WarmingStripes/WarmingStripesGradientLegend.css +8 -8
- package/src/data/initial-state.js +24 -14
- package/src/data/legacy-defaults.ts +18 -0
- package/src/helpers/abbreviateNumber.ts +24 -17
- package/src/helpers/calculateLeftYAxisWidth.ts +193 -0
- package/src/helpers/getChartPatternId.ts +17 -0
- package/src/helpers/getMinMax.ts +16 -2
- 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/helpers/tests/tooltipHelpers.test.ts +151 -0
- package/src/helpers/tooltipHelpers.ts +176 -0
- package/src/hooks/useHighlightedBars.ts +9 -16
- package/src/hooks/useProgrammaticTooltip.ts +16 -2
- package/src/hooks/useRightAxis.ts +14 -0
- package/src/hooks/useScales.ts +92 -56
- package/src/hooks/useSmallMultipleSynchronization.ts +3 -4
- package/src/hooks/useTooltip.tsx +186 -40
- package/src/scss/main.scss +152 -79
- package/src/test/CdcChart.test.jsx +26 -2
- package/src/types/ChartConfig.ts +5 -0
- package/tests/fixtures/chart-config-with-metadata.json +29 -0
- package/tests/fixtures/data-with-metadata.json +10 -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/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.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/{ChartAnnotation.stories.tsx → ChartAnnotation.smoke.stories.tsx} +0 -0
- /package/src/_stories/{ChartAxisLabels.stories.tsx → ChartAxisLabels.smoke.stories.tsx} +0 -0
- /package/src/_stories/{ChartAxisTitles.stories.tsx → ChartAxisTitles.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/{ChartBrush.stories.tsx → ChartBrush.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,421 @@
|
|
|
1
|
+
{
|
|
2
|
+
"annotations": [],
|
|
3
|
+
"type": "chart",
|
|
4
|
+
"debugSvg": false,
|
|
5
|
+
"chartMessage": {
|
|
6
|
+
"noData": "No Data Available"
|
|
7
|
+
},
|
|
8
|
+
"title": "",
|
|
9
|
+
"showTitle": true,
|
|
10
|
+
"showDownloadMediaButton": false,
|
|
11
|
+
"theme": "theme-blue",
|
|
12
|
+
"animate": false,
|
|
13
|
+
"fontSize": "medium",
|
|
14
|
+
"lineDatapointStyle": "hover",
|
|
15
|
+
"lineDatapointColor": "Same as Line",
|
|
16
|
+
"barHasBorder": "false",
|
|
17
|
+
"isLollipopChart": false,
|
|
18
|
+
"lollipopShape": "circle",
|
|
19
|
+
"lollipopColorStyle": "two-tone",
|
|
20
|
+
"visualizationSubType": "regular",
|
|
21
|
+
"barStyle": "",
|
|
22
|
+
"roundingStyle": "standard",
|
|
23
|
+
"tipRounding": "top",
|
|
24
|
+
"isResponsiveTicks": false,
|
|
25
|
+
"general": {
|
|
26
|
+
"annotationDropdownText": "Annotations",
|
|
27
|
+
"showDownloadButton": false,
|
|
28
|
+
"showMissingDataLabel": true,
|
|
29
|
+
"showSuppressedSymbol": true,
|
|
30
|
+
"hideNullValue": true
|
|
31
|
+
},
|
|
32
|
+
"padding": {
|
|
33
|
+
"left": 5,
|
|
34
|
+
"right": 5
|
|
35
|
+
},
|
|
36
|
+
"preliminaryData": [],
|
|
37
|
+
"yAxis": {
|
|
38
|
+
"hideAxis": false,
|
|
39
|
+
"displayNumbersOnBar": false,
|
|
40
|
+
"hideLabel": false,
|
|
41
|
+
"hideTicks": false,
|
|
42
|
+
"size": 50,
|
|
43
|
+
"gridLines": false,
|
|
44
|
+
"enablePadding": false,
|
|
45
|
+
"min": "",
|
|
46
|
+
"max": "",
|
|
47
|
+
"labelColor": "#333",
|
|
48
|
+
"tickLabelColor": "#333",
|
|
49
|
+
"tickColor": "#333",
|
|
50
|
+
"rightHideAxis": true,
|
|
51
|
+
"rightAxisSize": 0,
|
|
52
|
+
"rightLabel": "",
|
|
53
|
+
"rightLabelOffsetSize": 0,
|
|
54
|
+
"rightAxisLabelColor": "#333",
|
|
55
|
+
"rightAxisTickLabelColor": "#333",
|
|
56
|
+
"rightAxisTickColor": "#333",
|
|
57
|
+
"numTicks": "",
|
|
58
|
+
"axisPadding": 0,
|
|
59
|
+
"scalePadding": 10,
|
|
60
|
+
"tickRotation": "40",
|
|
61
|
+
"anchors": [],
|
|
62
|
+
"shoMissingDataLabel": true,
|
|
63
|
+
"showMissingDataLine": true,
|
|
64
|
+
"categories": [],
|
|
65
|
+
"label": "X Axis Title"
|
|
66
|
+
},
|
|
67
|
+
"boxplot": {
|
|
68
|
+
"plots": [],
|
|
69
|
+
"borders": "true",
|
|
70
|
+
"firstQuartilePercentage": 25,
|
|
71
|
+
"thirdQuartilePercentage": 75,
|
|
72
|
+
"boxWidthPercentage": 40,
|
|
73
|
+
"plotOutlierValues": false,
|
|
74
|
+
"plotNonOutlierValues": true,
|
|
75
|
+
"legend": {
|
|
76
|
+
"showHowToReadText": false,
|
|
77
|
+
"howToReadText": ""
|
|
78
|
+
},
|
|
79
|
+
"labels": {
|
|
80
|
+
"q1": "Lower Quartile",
|
|
81
|
+
"q2": "q2",
|
|
82
|
+
"q3": "Upper Quartile",
|
|
83
|
+
"q4": "q4",
|
|
84
|
+
"minimum": "Minimum",
|
|
85
|
+
"maximum": "Maximum",
|
|
86
|
+
"mean": "Mean",
|
|
87
|
+
"median": "Median",
|
|
88
|
+
"sd": "Standard Deviation",
|
|
89
|
+
"iqr": "Interquartile Range",
|
|
90
|
+
"total": "Total",
|
|
91
|
+
"outliers": "Outliers",
|
|
92
|
+
"values": "Values",
|
|
93
|
+
"lowerBounds": "Lower Bounds",
|
|
94
|
+
"upperBounds": "Upper Bounds"
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
"topAxis": {
|
|
98
|
+
"hasLine": false
|
|
99
|
+
},
|
|
100
|
+
"isLegendValue": false,
|
|
101
|
+
"barThickness": "0.37",
|
|
102
|
+
"barHeight": 25,
|
|
103
|
+
"barSpace": 15,
|
|
104
|
+
"heights": {
|
|
105
|
+
"vertical": 300,
|
|
106
|
+
"horizontal": 280
|
|
107
|
+
},
|
|
108
|
+
"xAxis": {
|
|
109
|
+
"sortDates": false,
|
|
110
|
+
"anchors": [],
|
|
111
|
+
"type": "categorical",
|
|
112
|
+
"showTargetLabel": true,
|
|
113
|
+
"targetLabel": "Target",
|
|
114
|
+
"hideAxis": false,
|
|
115
|
+
"hideLabel": false,
|
|
116
|
+
"hideTicks": false,
|
|
117
|
+
"size": 75,
|
|
118
|
+
"tickRotation": 0,
|
|
119
|
+
"min": "",
|
|
120
|
+
"max": "",
|
|
121
|
+
"labelColor": "#333",
|
|
122
|
+
"tickLabelColor": "#333",
|
|
123
|
+
"tickColor": "#333",
|
|
124
|
+
"numTicks": 5,
|
|
125
|
+
"labelOffset": 0,
|
|
126
|
+
"axisPadding": 200,
|
|
127
|
+
"target": 0,
|
|
128
|
+
"maxTickRotation": 45,
|
|
129
|
+
"padding": 0,
|
|
130
|
+
"dataKey": "Year"
|
|
131
|
+
},
|
|
132
|
+
"table": {
|
|
133
|
+
"label": "Data Table",
|
|
134
|
+
"expanded": true,
|
|
135
|
+
"limitHeight": false,
|
|
136
|
+
"height": "",
|
|
137
|
+
"caption": "",
|
|
138
|
+
"showDownloadUrl": false,
|
|
139
|
+
"showDataTableLink": true,
|
|
140
|
+
"showDownloadLinkBelow": true,
|
|
141
|
+
"indexLabel": "",
|
|
142
|
+
"download": true,
|
|
143
|
+
"showVertical": true,
|
|
144
|
+
"dateDisplayFormat": "",
|
|
145
|
+
"showMissingDataLabel": true,
|
|
146
|
+
"showSuppressedSymbol": true,
|
|
147
|
+
"show": true
|
|
148
|
+
},
|
|
149
|
+
"orientation": "horizontal",
|
|
150
|
+
"color": "pinkpurple",
|
|
151
|
+
"columns": {},
|
|
152
|
+
"legend": {
|
|
153
|
+
"hide": false,
|
|
154
|
+
"behavior": "isolate",
|
|
155
|
+
"axisAlign": true,
|
|
156
|
+
"singleRow": true,
|
|
157
|
+
"colorCode": "",
|
|
158
|
+
"reverseLabelOrder": false,
|
|
159
|
+
"description": "",
|
|
160
|
+
"dynamicLegend": false,
|
|
161
|
+
"dynamicLegendDefaultText": "Show All",
|
|
162
|
+
"dynamicLegendItemLimit": 5,
|
|
163
|
+
"dynamicLegendItemLimitMessage": "Dynamic Legend Item Limit Hit.",
|
|
164
|
+
"dynamicLegendChartMessage": "Select Options from the Legend",
|
|
165
|
+
"label": "",
|
|
166
|
+
"lineMode": false,
|
|
167
|
+
"verticalSorted": false,
|
|
168
|
+
"highlightOnHover": false,
|
|
169
|
+
"hideSuppressedLabels": false,
|
|
170
|
+
"hideSuppressionLink": false,
|
|
171
|
+
"seriesHighlight": [],
|
|
172
|
+
"style": "circles",
|
|
173
|
+
"subStyle": "linear blocks",
|
|
174
|
+
"tickRotation": "",
|
|
175
|
+
"hideBorder": {
|
|
176
|
+
"side": false,
|
|
177
|
+
"topBottom": true
|
|
178
|
+
}
|
|
179
|
+
},
|
|
180
|
+
"brush": {
|
|
181
|
+
"height": 25,
|
|
182
|
+
"active": false
|
|
183
|
+
},
|
|
184
|
+
"exclusions": {
|
|
185
|
+
"active": false,
|
|
186
|
+
"keys": []
|
|
187
|
+
},
|
|
188
|
+
"palette": "qualitative-bold",
|
|
189
|
+
"isPaletteReversed": false,
|
|
190
|
+
"twoColor": {
|
|
191
|
+
"palette": "monochrome-1",
|
|
192
|
+
"isPaletteReversed": false
|
|
193
|
+
},
|
|
194
|
+
"labels": false,
|
|
195
|
+
"dataFormat": {
|
|
196
|
+
"commas": false,
|
|
197
|
+
"prefix": "",
|
|
198
|
+
"suffix": "",
|
|
199
|
+
"abbreviated": true,
|
|
200
|
+
"bottomSuffix": "",
|
|
201
|
+
"bottomPrefix": "",
|
|
202
|
+
"bottomAbbreviated": false
|
|
203
|
+
},
|
|
204
|
+
"confidenceKeys": {},
|
|
205
|
+
"visual": {
|
|
206
|
+
"border": true,
|
|
207
|
+
"accent": true,
|
|
208
|
+
"background": true,
|
|
209
|
+
"verticalHoverLine": false,
|
|
210
|
+
"horizontalHoverLine": false
|
|
211
|
+
},
|
|
212
|
+
"useLogScale": false,
|
|
213
|
+
"filterBehavior": "Filter Change",
|
|
214
|
+
"highlightedBarValues": [],
|
|
215
|
+
"series": [
|
|
216
|
+
{
|
|
217
|
+
"dataKey": "Male",
|
|
218
|
+
"type": "Paired Bar",
|
|
219
|
+
"axis": "Left",
|
|
220
|
+
"tooltip": true
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
"dataKey": "Female",
|
|
224
|
+
"type": "Paired Bar",
|
|
225
|
+
"axis": "Left",
|
|
226
|
+
"tooltip": true
|
|
227
|
+
}
|
|
228
|
+
],
|
|
229
|
+
"tooltips": {
|
|
230
|
+
"opacity": 90,
|
|
231
|
+
"singleSeries": false,
|
|
232
|
+
"dateDisplayFormat": ""
|
|
233
|
+
},
|
|
234
|
+
"forestPlot": {
|
|
235
|
+
"startAt": 0,
|
|
236
|
+
"colors": {
|
|
237
|
+
"line": "",
|
|
238
|
+
"shape": ""
|
|
239
|
+
},
|
|
240
|
+
"lineOfNoEffect": {
|
|
241
|
+
"show": true
|
|
242
|
+
},
|
|
243
|
+
"type": "",
|
|
244
|
+
"pooledResult": {
|
|
245
|
+
"diamondHeight": 5,
|
|
246
|
+
"column": ""
|
|
247
|
+
},
|
|
248
|
+
"estimateField": "",
|
|
249
|
+
"estimateRadius": "",
|
|
250
|
+
"shape": "square",
|
|
251
|
+
"rowHeight": 20,
|
|
252
|
+
"description": {
|
|
253
|
+
"show": true,
|
|
254
|
+
"text": "description",
|
|
255
|
+
"location": 0
|
|
256
|
+
},
|
|
257
|
+
"result": {
|
|
258
|
+
"show": true,
|
|
259
|
+
"text": "result",
|
|
260
|
+
"location": 100
|
|
261
|
+
},
|
|
262
|
+
"radius": {
|
|
263
|
+
"min": 2,
|
|
264
|
+
"max": 10,
|
|
265
|
+
"scalingColumn": ""
|
|
266
|
+
},
|
|
267
|
+
"regression": {
|
|
268
|
+
"lower": 0,
|
|
269
|
+
"upper": 0,
|
|
270
|
+
"estimateField": 0
|
|
271
|
+
},
|
|
272
|
+
"leftWidthOffset": 0,
|
|
273
|
+
"rightWidthOffset": 0,
|
|
274
|
+
"showZeroLine": false,
|
|
275
|
+
"leftLabel": "",
|
|
276
|
+
"rightLabel": ""
|
|
277
|
+
},
|
|
278
|
+
"area": {
|
|
279
|
+
"isStacked": false
|
|
280
|
+
},
|
|
281
|
+
"sankey": {
|
|
282
|
+
"title": {
|
|
283
|
+
"defaultColor": "black"
|
|
284
|
+
},
|
|
285
|
+
"iterations": 1,
|
|
286
|
+
"rxValue": 0.9,
|
|
287
|
+
"overallSize": {
|
|
288
|
+
"width": 900,
|
|
289
|
+
"height": 700
|
|
290
|
+
},
|
|
291
|
+
"margin": {
|
|
292
|
+
"margin_y": 25,
|
|
293
|
+
"margin_x": 0
|
|
294
|
+
},
|
|
295
|
+
"nodeSize": {
|
|
296
|
+
"nodeWidth": 26,
|
|
297
|
+
"nodeHeight": 40
|
|
298
|
+
},
|
|
299
|
+
"nodePadding": 55,
|
|
300
|
+
"nodeFontColor": "black",
|
|
301
|
+
"nodeColor": {
|
|
302
|
+
"default": "#ff8500",
|
|
303
|
+
"inactive": "#808080"
|
|
304
|
+
},
|
|
305
|
+
"linkColor": {
|
|
306
|
+
"default": "#ffc900",
|
|
307
|
+
"inactive": "#D3D3D3"
|
|
308
|
+
},
|
|
309
|
+
"opacity": {
|
|
310
|
+
"nodeOpacityDefault": 1,
|
|
311
|
+
"nodeOpacityInactive": 0.1,
|
|
312
|
+
"LinkOpacityDefault": 1,
|
|
313
|
+
"LinkOpacityInactive": 0.1
|
|
314
|
+
},
|
|
315
|
+
"storyNodeFontColor": "#006778",
|
|
316
|
+
"storyNodeText": [],
|
|
317
|
+
"nodeValueStyle": {
|
|
318
|
+
"textBefore": "(",
|
|
319
|
+
"textAfter": ")"
|
|
320
|
+
},
|
|
321
|
+
"data": []
|
|
322
|
+
},
|
|
323
|
+
"datasets": {},
|
|
324
|
+
"visualizationType": "Paired Bar",
|
|
325
|
+
"data": [
|
|
326
|
+
{
|
|
327
|
+
"Year": "2018",
|
|
328
|
+
"Age Group": "65",
|
|
329
|
+
"Male": "4200",
|
|
330
|
+
"Female": "3000"
|
|
331
|
+
},
|
|
332
|
+
{
|
|
333
|
+
"Year": "2019",
|
|
334
|
+
"Age Group": "<15",
|
|
335
|
+
"Male": "3900",
|
|
336
|
+
"Female": "2800"
|
|
337
|
+
},
|
|
338
|
+
{
|
|
339
|
+
"Year": "2020",
|
|
340
|
+
"Age Group": "15-24",
|
|
341
|
+
"Male": "3100",
|
|
342
|
+
"Female": "2100"
|
|
343
|
+
},
|
|
344
|
+
{
|
|
345
|
+
"Year": "2021",
|
|
346
|
+
"Age Group": "25-34",
|
|
347
|
+
"Male": "2600",
|
|
348
|
+
"Female": "1800"
|
|
349
|
+
},
|
|
350
|
+
{
|
|
351
|
+
"Year": "2022",
|
|
352
|
+
"Age Group": "35-44",
|
|
353
|
+
"Male": "1800",
|
|
354
|
+
"Female": "1200"
|
|
355
|
+
},
|
|
356
|
+
{
|
|
357
|
+
"Year": "2023",
|
|
358
|
+
"Age Group": "45-54",
|
|
359
|
+
"Male": "1200",
|
|
360
|
+
"Female": "700"
|
|
361
|
+
},
|
|
362
|
+
{
|
|
363
|
+
"Year": "2024",
|
|
364
|
+
"Age Group": "55-64",
|
|
365
|
+
"Male": "800",
|
|
366
|
+
"Female": "500"
|
|
367
|
+
}
|
|
368
|
+
],
|
|
369
|
+
"dataFileName": "/examples/feature/paired-bar/__data__/paired-bar-formatted.json",
|
|
370
|
+
"dataFileSourceType": "file",
|
|
371
|
+
"formattedData": [
|
|
372
|
+
{
|
|
373
|
+
"Year": "2018",
|
|
374
|
+
"Age Group": "65",
|
|
375
|
+
"Male": "4200",
|
|
376
|
+
"Female": "3000"
|
|
377
|
+
},
|
|
378
|
+
{
|
|
379
|
+
"Year": "2019",
|
|
380
|
+
"Age Group": "<15",
|
|
381
|
+
"Male": "3900",
|
|
382
|
+
"Female": "2800"
|
|
383
|
+
},
|
|
384
|
+
{
|
|
385
|
+
"Year": "2020",
|
|
386
|
+
"Age Group": "15-24",
|
|
387
|
+
"Male": "3100",
|
|
388
|
+
"Female": "2100"
|
|
389
|
+
},
|
|
390
|
+
{
|
|
391
|
+
"Year": "2021",
|
|
392
|
+
"Age Group": "25-34",
|
|
393
|
+
"Male": "2600",
|
|
394
|
+
"Female": "1800"
|
|
395
|
+
},
|
|
396
|
+
{
|
|
397
|
+
"Year": "2022",
|
|
398
|
+
"Age Group": "35-44",
|
|
399
|
+
"Male": "1800",
|
|
400
|
+
"Female": "1200"
|
|
401
|
+
},
|
|
402
|
+
{
|
|
403
|
+
"Year": "2023",
|
|
404
|
+
"Age Group": "45-54",
|
|
405
|
+
"Male": "1200",
|
|
406
|
+
"Female": "700"
|
|
407
|
+
},
|
|
408
|
+
{
|
|
409
|
+
"Year": "2024",
|
|
410
|
+
"Age Group": "55-64",
|
|
411
|
+
"Male": "800",
|
|
412
|
+
"Female": "500"
|
|
413
|
+
}
|
|
414
|
+
],
|
|
415
|
+
"dataDescription": {
|
|
416
|
+
"horizontal": false,
|
|
417
|
+
"series": true,
|
|
418
|
+
"singleRow": true
|
|
419
|
+
},
|
|
420
|
+
"version": "4.24.10"
|
|
421
|
+
}
|
|
@@ -246,7 +246,7 @@
|
|
|
246
246
|
{ "Age Group": "45-54", "Male": "8259", "Female": "5633" },
|
|
247
247
|
{ "Age Group": "55-64", "Male": "1235", "Female": "810" }
|
|
248
248
|
],
|
|
249
|
-
"dataFileName": "paired-bar-formatted.json",
|
|
249
|
+
"dataFileName": "/examples/feature/paired-bar/__data__/paired-bar-formatted.json",
|
|
250
250
|
"dataFileSourceType": "file",
|
|
251
251
|
"formattedData": [
|
|
252
252
|
{ "Age Group": "65", "Male": "730", "Female": "402" },
|
|
@@ -0,0 +1,268 @@
|
|
|
1
|
+
{
|
|
2
|
+
"annotations": [],
|
|
3
|
+
"type": "chart",
|
|
4
|
+
"debugSvg": false,
|
|
5
|
+
"chartMessage": { "noData": "No Data Available" },
|
|
6
|
+
"title": "Pie Chart Custom Colors",
|
|
7
|
+
"showTitle": true,
|
|
8
|
+
"showDownloadMediaButton": false,
|
|
9
|
+
"theme": "theme-blue",
|
|
10
|
+
"animate": false,
|
|
11
|
+
"fontSize": "medium",
|
|
12
|
+
"lineDatapointStyle": "hover",
|
|
13
|
+
"lineDatapointColor": "Same as Line",
|
|
14
|
+
"barHasBorder": "false",
|
|
15
|
+
"isLollipopChart": false,
|
|
16
|
+
"lollipopShape": "circle",
|
|
17
|
+
"lollipopColorStyle": "two-tone",
|
|
18
|
+
"visualizationSubType": "regular",
|
|
19
|
+
"barStyle": "",
|
|
20
|
+
"roundingStyle": "standard",
|
|
21
|
+
"tipRounding": "top",
|
|
22
|
+
"isResponsiveTicks": false,
|
|
23
|
+
"general": {
|
|
24
|
+
"annotationDropdownText": "Annotations",
|
|
25
|
+
"showDownloadButton": false,
|
|
26
|
+
"showMissingDataLabel": true,
|
|
27
|
+
"showSuppressedSymbol": true,
|
|
28
|
+
"hideNullValue": true,
|
|
29
|
+
"palette": {
|
|
30
|
+
"name": "qualitative_standard",
|
|
31
|
+
"version": "2.0",
|
|
32
|
+
"isReversed": false,
|
|
33
|
+
"customColorsOrdered": ["#0B6E4F", "#C75000", "#7C4DFF", "#0077B6", "#D7263D"]
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"padding": { "left": 5, "right": 5 },
|
|
37
|
+
"preliminaryData": [],
|
|
38
|
+
"yAxis": {
|
|
39
|
+
"hideAxis": false,
|
|
40
|
+
"displayNumbersOnBar": false,
|
|
41
|
+
"hideLabel": false,
|
|
42
|
+
"hideTicks": false,
|
|
43
|
+
"size": 50,
|
|
44
|
+
"gridLines": false,
|
|
45
|
+
"enablePadding": false,
|
|
46
|
+
"min": "",
|
|
47
|
+
"max": "",
|
|
48
|
+
"labelColor": "#333",
|
|
49
|
+
"tickLabelColor": "#333",
|
|
50
|
+
"tickColor": "#333",
|
|
51
|
+
"rightHideAxis": true,
|
|
52
|
+
"rightAxisSize": 0,
|
|
53
|
+
"rightLabel": "",
|
|
54
|
+
"rightLabelOffsetSize": 0,
|
|
55
|
+
"rightAxisLabelColor": "#333",
|
|
56
|
+
"rightAxisTickLabelColor": "#333",
|
|
57
|
+
"rightAxisTickColor": "#333",
|
|
58
|
+
"numTicks": "",
|
|
59
|
+
"axisPadding": 0,
|
|
60
|
+
"scalePadding": 10,
|
|
61
|
+
"tickRotation": 0,
|
|
62
|
+
"anchors": [],
|
|
63
|
+
"shoMissingDataLabel": true,
|
|
64
|
+
"showMissingDataLine": true,
|
|
65
|
+
"categories": [],
|
|
66
|
+
"dataKey": "Age-adjusted rate"
|
|
67
|
+
},
|
|
68
|
+
"boxplot": {
|
|
69
|
+
"plots": [],
|
|
70
|
+
"borders": "true",
|
|
71
|
+
"firstQuartilePercentage": 25,
|
|
72
|
+
"thirdQuartilePercentage": 75,
|
|
73
|
+
"boxWidthPercentage": 40,
|
|
74
|
+
"plotOutlierValues": false,
|
|
75
|
+
"plotNonOutlierValues": true,
|
|
76
|
+
"legend": { "showHowToReadText": false, "howToReadText": "" },
|
|
77
|
+
"labels": {
|
|
78
|
+
"q1": "Lower Quartile",
|
|
79
|
+
"q2": "q2",
|
|
80
|
+
"q3": "Upper Quartile",
|
|
81
|
+
"q4": "q4",
|
|
82
|
+
"minimum": "Minimum",
|
|
83
|
+
"maximum": "Maximum",
|
|
84
|
+
"mean": "Mean",
|
|
85
|
+
"median": "Median",
|
|
86
|
+
"sd": "Standard Deviation",
|
|
87
|
+
"iqr": "Interquartile Range",
|
|
88
|
+
"total": "Total",
|
|
89
|
+
"outliers": "Outliers",
|
|
90
|
+
"values": "Values",
|
|
91
|
+
"lowerBounds": "Lower Bounds",
|
|
92
|
+
"upperBounds": "Upper Bounds"
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
"topAxis": { "hasLine": false },
|
|
96
|
+
"isLegendValue": false,
|
|
97
|
+
"barThickness": "0.37",
|
|
98
|
+
"barHeight": 25,
|
|
99
|
+
"barSpace": 15,
|
|
100
|
+
"heights": { "vertical": 300, "horizontal": 750 },
|
|
101
|
+
"xAxis": {
|
|
102
|
+
"sortDates": false,
|
|
103
|
+
"anchors": [],
|
|
104
|
+
"type": "categorical",
|
|
105
|
+
"showTargetLabel": true,
|
|
106
|
+
"targetLabel": "Target",
|
|
107
|
+
"hideAxis": false,
|
|
108
|
+
"hideLabel": false,
|
|
109
|
+
"hideTicks": false,
|
|
110
|
+
"size": 75,
|
|
111
|
+
"tickRotation": 0,
|
|
112
|
+
"min": "",
|
|
113
|
+
"max": "",
|
|
114
|
+
"labelColor": "#333",
|
|
115
|
+
"tickLabelColor": "#333",
|
|
116
|
+
"tickColor": "#333",
|
|
117
|
+
"numTicks": "",
|
|
118
|
+
"labelOffset": 65,
|
|
119
|
+
"axisPadding": 200,
|
|
120
|
+
"target": 0,
|
|
121
|
+
"maxTickRotation": 45,
|
|
122
|
+
"padding": 0,
|
|
123
|
+
"dataKey": "Race"
|
|
124
|
+
},
|
|
125
|
+
"table": {
|
|
126
|
+
"label": "Data Table",
|
|
127
|
+
"expanded": true,
|
|
128
|
+
"limitHeight": false,
|
|
129
|
+
"height": "",
|
|
130
|
+
"caption": "",
|
|
131
|
+
"showDownloadUrl": false,
|
|
132
|
+
"showDataTableLink": true,
|
|
133
|
+
"showDownloadLinkBelow": true,
|
|
134
|
+
"indexLabel": "",
|
|
135
|
+
"download": true,
|
|
136
|
+
"showVertical": true,
|
|
137
|
+
"dateDisplayFormat": "",
|
|
138
|
+
"showMissingDataLabel": true,
|
|
139
|
+
"showSuppressedSymbol": true,
|
|
140
|
+
"show": true
|
|
141
|
+
},
|
|
142
|
+
"orientation": "vertical",
|
|
143
|
+
"color": "pinkpurple",
|
|
144
|
+
"columns": {},
|
|
145
|
+
"legend": {
|
|
146
|
+
"hide": false,
|
|
147
|
+
"behavior": "isolate",
|
|
148
|
+
"axisAlign": true,
|
|
149
|
+
"singleRow": true,
|
|
150
|
+
"colorCode": "",
|
|
151
|
+
"reverseLabelOrder": false,
|
|
152
|
+
"description": "Legend swatches should match pie slices.",
|
|
153
|
+
"dynamicLegend": false,
|
|
154
|
+
"dynamicLegendDefaultText": "Show All",
|
|
155
|
+
"dynamicLegendItemLimit": 5,
|
|
156
|
+
"dynamicLegendItemLimitMessage": "Dynamic Legend Item Limit Hit.",
|
|
157
|
+
"dynamicLegendChartMessage": "Select Options from the Legend",
|
|
158
|
+
"label": "Custom Segment Colors",
|
|
159
|
+
"lineMode": false,
|
|
160
|
+
"verticalSorted": false,
|
|
161
|
+
"highlightOnHover": false,
|
|
162
|
+
"hideSuppressedLabels": false,
|
|
163
|
+
"hideSuppressionLink": false,
|
|
164
|
+
"seriesHighlight": [],
|
|
165
|
+
"style": "circles",
|
|
166
|
+
"subStyle": "linear blocks",
|
|
167
|
+
"tickRotation": "",
|
|
168
|
+
"hideBorder": { "side": false, "topBottom": true },
|
|
169
|
+
"position": "right",
|
|
170
|
+
"order": "dataColumn",
|
|
171
|
+
"orderedValues": [],
|
|
172
|
+
"patterns": {},
|
|
173
|
+
"patternField": "",
|
|
174
|
+
"unified": true
|
|
175
|
+
},
|
|
176
|
+
"brush": { "height": 25, "active": false },
|
|
177
|
+
"exclusions": { "active": false, "keys": [] },
|
|
178
|
+
"palette": "qualitative-bold",
|
|
179
|
+
"isPaletteReversed": false,
|
|
180
|
+
"twoColor": { "palette": "monochrome-1", "isPaletteReversed": false },
|
|
181
|
+
"labels": false,
|
|
182
|
+
"dataFormat": {
|
|
183
|
+
"commas": false,
|
|
184
|
+
"prefix": "",
|
|
185
|
+
"suffix": "",
|
|
186
|
+
"abbreviated": false,
|
|
187
|
+
"bottomSuffix": "",
|
|
188
|
+
"bottomPrefix": "",
|
|
189
|
+
"bottomAbbreviated": false,
|
|
190
|
+
"showPiePercent": false
|
|
191
|
+
},
|
|
192
|
+
"confidenceKeys": {},
|
|
193
|
+
"visual": {
|
|
194
|
+
"border": true,
|
|
195
|
+
"accent": true,
|
|
196
|
+
"background": true,
|
|
197
|
+
"verticalHoverLine": false,
|
|
198
|
+
"horizontalHoverLine": false
|
|
199
|
+
},
|
|
200
|
+
"useLogScale": false,
|
|
201
|
+
"filterBehavior": "Filter Change",
|
|
202
|
+
"highlightedBarValues": [],
|
|
203
|
+
"series": [],
|
|
204
|
+
"tooltips": { "opacity": 90, "singleSeries": false, "dateDisplayFormat": "" },
|
|
205
|
+
"forestPlot": {
|
|
206
|
+
"startAt": 0,
|
|
207
|
+
"colors": { "line": "", "shape": "" },
|
|
208
|
+
"lineOfNoEffect": { "show": true },
|
|
209
|
+
"type": "",
|
|
210
|
+
"pooledResult": { "diamondHeight": 5, "column": "" },
|
|
211
|
+
"estimateField": "",
|
|
212
|
+
"estimateRadius": "",
|
|
213
|
+
"shape": "square",
|
|
214
|
+
"rowHeight": 20,
|
|
215
|
+
"description": { "show": true, "text": "description", "location": 0 },
|
|
216
|
+
"result": { "show": true, "text": "result", "location": 100 },
|
|
217
|
+
"radius": { "min": 2, "max": 10, "scalingColumn": "" },
|
|
218
|
+
"regression": { "lower": 0, "upper": 0, "estimateField": 0 },
|
|
219
|
+
"leftWidthOffset": 0,
|
|
220
|
+
"rightWidthOffset": 0,
|
|
221
|
+
"showZeroLine": false,
|
|
222
|
+
"leftLabel": "",
|
|
223
|
+
"rightLabel": ""
|
|
224
|
+
},
|
|
225
|
+
"area": { "isStacked": false },
|
|
226
|
+
"sankey": {
|
|
227
|
+
"title": { "defaultColor": "black" },
|
|
228
|
+
"iterations": 1,
|
|
229
|
+
"rxValue": 0.9,
|
|
230
|
+
"overallSize": { "width": 900, "height": 700 },
|
|
231
|
+
"margin": { "margin_y": 25, "margin_x": 0 },
|
|
232
|
+
"nodeSize": { "nodeWidth": 26, "nodeHeight": 40 },
|
|
233
|
+
"nodePadding": 55,
|
|
234
|
+
"nodeFontColor": "black",
|
|
235
|
+
"nodeColor": { "default": "#ff8500", "inactive": "#808080" },
|
|
236
|
+
"linkColor": { "default": "#ffc900", "inactive": "#D3D3D3" },
|
|
237
|
+
"opacity": {
|
|
238
|
+
"nodeOpacityDefault": 1,
|
|
239
|
+
"nodeOpacityInactive": 0.1,
|
|
240
|
+
"LinkOpacityDefault": 1,
|
|
241
|
+
"LinkOpacityInactive": 0.1
|
|
242
|
+
},
|
|
243
|
+
"storyNodeFontColor": "#006778",
|
|
244
|
+
"storyNodeText": [],
|
|
245
|
+
"nodeValueStyle": { "textBefore": "(", "textAfter": ")" },
|
|
246
|
+
"data": []
|
|
247
|
+
},
|
|
248
|
+
"datasets": {},
|
|
249
|
+
"visualizationType": "Pie",
|
|
250
|
+
"data": [
|
|
251
|
+
{ "Race": "Hispanic or Latino", "Age-adjusted rate": "644.2" },
|
|
252
|
+
{ "Race": "Non-Hispanic American Indian", "Age-adjusted rate": "636.1" },
|
|
253
|
+
{ "Race": "Non-Hispanic Black", "Age-adjusted rate": "563.7" },
|
|
254
|
+
{ "Race": "Non-Hispanic Asian or Pacific Islander", "Age-adjusted rate": "202.5" },
|
|
255
|
+
{ "Race": "Non-Hispanic White", "Age-adjusted rate": "183.6" }
|
|
256
|
+
],
|
|
257
|
+
"dataFileName": "valid-data-chart.csv",
|
|
258
|
+
"dataFileSourceType": "file",
|
|
259
|
+
"formattedData": [
|
|
260
|
+
{ "Race": "Hispanic or Latino", "Age-adjusted rate": "644.2" },
|
|
261
|
+
{ "Race": "Non-Hispanic American Indian", "Age-adjusted rate": "636.1" },
|
|
262
|
+
{ "Race": "Non-Hispanic Black", "Age-adjusted rate": "563.7" },
|
|
263
|
+
{ "Race": "Non-Hispanic Asian or Pacific Islander", "Age-adjusted rate": "202.5" },
|
|
264
|
+
{ "Race": "Non-Hispanic White", "Age-adjusted rate": "183.6" }
|
|
265
|
+
],
|
|
266
|
+
"dataDescription": { "horizontal": false, "series": false },
|
|
267
|
+
"version": "4.25.9"
|
|
268
|
+
}
|