@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,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
|
+
}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
{
|
|
2
|
+
"type": "chart",
|
|
3
|
+
"version": "4.26.3",
|
|
4
|
+
"visualizationType": "Line",
|
|
5
|
+
"visualizationSubType": "regular",
|
|
6
|
+
"title": "Smallest Left Axis Maximum Demo",
|
|
7
|
+
"titleStyle": "small",
|
|
8
|
+
"showTitle": true,
|
|
9
|
+
"theme": "theme-blue",
|
|
10
|
+
"animate": false,
|
|
11
|
+
"fontSize": "medium",
|
|
12
|
+
"lineDatapointStyle": "hover",
|
|
13
|
+
"lineDatapointColor": "Same as Line",
|
|
14
|
+
"isResponsiveTicks": false,
|
|
15
|
+
"general": {
|
|
16
|
+
"showDownloadButton": false,
|
|
17
|
+
"showMissingDataLabel": true,
|
|
18
|
+
"hideNullValue": true
|
|
19
|
+
},
|
|
20
|
+
"padding": { "left": 5, "right": 5 },
|
|
21
|
+
"heights": { "vertical": "300", "horizontal": 750 },
|
|
22
|
+
"barThickness": 0.35,
|
|
23
|
+
"orientation": "vertical",
|
|
24
|
+
"yAxis": {
|
|
25
|
+
"hideAxis": true,
|
|
26
|
+
"displayNumbersOnBar": false,
|
|
27
|
+
"hideLabel": false,
|
|
28
|
+
"hideTicks": true,
|
|
29
|
+
"size": "25",
|
|
30
|
+
"gridLines": true,
|
|
31
|
+
"enablePadding": false,
|
|
32
|
+
"min": "",
|
|
33
|
+
"max": "",
|
|
34
|
+
"numTicks": "5",
|
|
35
|
+
"scalePadding": "0",
|
|
36
|
+
"tickRotation": "",
|
|
37
|
+
"anchors": [],
|
|
38
|
+
"categories": [],
|
|
39
|
+
"label": "",
|
|
40
|
+
"inlineLabel": " cases",
|
|
41
|
+
"type": "linear",
|
|
42
|
+
"smallestLeftAxisMax": 5
|
|
43
|
+
},
|
|
44
|
+
"xAxis": {
|
|
45
|
+
"sortDates": false,
|
|
46
|
+
"anchors": [],
|
|
47
|
+
"type": "categorical",
|
|
48
|
+
"hideAxis": false,
|
|
49
|
+
"hideLabel": false,
|
|
50
|
+
"hideTicks": false,
|
|
51
|
+
"size": "0",
|
|
52
|
+
"tickRotation": "0",
|
|
53
|
+
"numTicks": "",
|
|
54
|
+
"labelOffset": 0,
|
|
55
|
+
"padding": "4",
|
|
56
|
+
"dataKey": "Month",
|
|
57
|
+
"label": "Month",
|
|
58
|
+
"tickWidthMax": 100
|
|
59
|
+
},
|
|
60
|
+
"table": {
|
|
61
|
+
"label": "Data Table",
|
|
62
|
+
"expanded": false,
|
|
63
|
+
"limitHeight": false,
|
|
64
|
+
"show": true,
|
|
65
|
+
"showDownloadUrl": false,
|
|
66
|
+
"showVertical": true
|
|
67
|
+
},
|
|
68
|
+
"series": [{ "dataKey": "Cases", "type": "Line", "axis": "Left", "tooltip": true }],
|
|
69
|
+
"tooltips": { "opacity": 90, "singleSeries": false },
|
|
70
|
+
"legend": {
|
|
71
|
+
"hide": true
|
|
72
|
+
},
|
|
73
|
+
"filters": [
|
|
74
|
+
{
|
|
75
|
+
"values": ["Region A", "Region B", "Region C"],
|
|
76
|
+
"active": "Region B",
|
|
77
|
+
"order": "asc",
|
|
78
|
+
"columnName": "Region",
|
|
79
|
+
"filterStyle": "dropdown"
|
|
80
|
+
}
|
|
81
|
+
],
|
|
82
|
+
"data": [
|
|
83
|
+
{ "Month": "Jan", "Cases": "12", "Region": "Region A" },
|
|
84
|
+
{ "Month": "Feb", "Cases": "18", "Region": "Region A" },
|
|
85
|
+
{ "Month": "Mar", "Cases": "15", "Region": "Region A" },
|
|
86
|
+
{ "Month": "Apr", "Cases": "22", "Region": "Region A" },
|
|
87
|
+
{ "Month": "May", "Cases": "28", "Region": "Region A" },
|
|
88
|
+
{ "Month": "Jun", "Cases": "20", "Region": "Region A" },
|
|
89
|
+
|
|
90
|
+
{ "Month": "Jan", "Cases": "1", "Region": "Region B" },
|
|
91
|
+
{ "Month": "Feb", "Cases": "0", "Region": "Region B" },
|
|
92
|
+
{ "Month": "Mar", "Cases": "1", "Region": "Region B" },
|
|
93
|
+
{ "Month": "Apr", "Cases": "0", "Region": "Region B" },
|
|
94
|
+
{ "Month": "May", "Cases": "1", "Region": "Region B" },
|
|
95
|
+
{ "Month": "Jun", "Cases": "0", "Region": "Region B" },
|
|
96
|
+
|
|
97
|
+
{ "Month": "Jan", "Cases": "45", "Region": "Region C" },
|
|
98
|
+
{ "Month": "Feb", "Cases": "52", "Region": "Region C" },
|
|
99
|
+
{ "Month": "Mar", "Cases": "48", "Region": "Region C" },
|
|
100
|
+
{ "Month": "Apr", "Cases": "60", "Region": "Region C" },
|
|
101
|
+
{ "Month": "May", "Cases": "55", "Region": "Region C" },
|
|
102
|
+
{ "Month": "Jun", "Cases": "50", "Region": "Region C" }
|
|
103
|
+
]
|
|
104
|
+
}
|
|
@@ -1,31 +1,25 @@
|
|
|
1
|
-
.
|
|
2
|
-
|
|
1
|
+
.cove-visualization.type-chart .annotation__desktop-label {
|
|
2
|
+
font-size: 16px;
|
|
3
|
+
line-height: 1.1rem;
|
|
3
4
|
}
|
|
4
5
|
|
|
5
|
-
.
|
|
6
|
+
.cove-visualization.type-chart {
|
|
6
7
|
.annotation__mobile-label-circle {
|
|
7
|
-
stroke-width:
|
|
8
|
+
stroke-width: 1;
|
|
8
9
|
}
|
|
9
10
|
|
|
10
11
|
.annotation__has-dropdown-number {
|
|
11
|
-
display: flex;
|
|
12
|
-
justify-content: center;
|
|
13
12
|
align-items: center;
|
|
13
|
+
border: 1px solid #666;
|
|
14
14
|
border-radius: 50%;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
height: 16px;
|
|
18
|
-
border: 2px solid #666;
|
|
19
|
-
text-align: center;
|
|
15
|
+
box-sizing: border-box;
|
|
16
|
+
display: flex;
|
|
20
17
|
font-size: 14px;
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
}
|
|
28
|
-
.cdc-open-viz-module .annotation__desktop-label {
|
|
29
|
-
display: block;
|
|
18
|
+
height: 24px;
|
|
19
|
+
justify-content: center;
|
|
20
|
+
min-height: 24px;
|
|
21
|
+
min-width: 24px;
|
|
22
|
+
text-align: center;
|
|
23
|
+
width: 24px;
|
|
30
24
|
}
|
|
31
25
|
}
|