@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.
Files changed (173) hide show
  1. package/CLAUDE.local.md +79 -0
  2. package/LICENSE +201 -0
  3. package/dist/{cdcchart-dgT_1dIT.es.js → cdcchart-DQ00cQCm.es.js} +1 -20
  4. package/dist/cdcchart.js +54742 -49796
  5. package/examples/data/data-with-metadata.json +10 -0
  6. package/examples/default.json +378 -0
  7. package/examples/feature/__data__/horizon-chart-data.json +373 -0
  8. package/examples/feature/annotations/index.json +3 -6
  9. package/examples/feature/horizon/horizon-chart.json +395 -0
  10. package/examples/feature/pie/planet-pie-example-config.json +2 -1
  11. package/examples/line-chart-states.json +1085 -0
  12. package/examples/metadata-variables.json +58 -0
  13. package/examples/private/123.json +694 -0
  14. package/examples/private/anchor-issue.json +4094 -0
  15. package/examples/private/backwards-slider.json +10430 -0
  16. package/examples/private/georgia.csv +160 -0
  17. package/examples/private/timeline-data.json +1 -0
  18. package/examples/private/timeline.json +389 -0
  19. package/examples/radar-chart-simple.json +133 -0
  20. package/examples/radar-chart.json +148 -0
  21. package/index.html +1 -31
  22. package/package.json +57 -59
  23. package/src/CdcChart.tsx +8 -4
  24. package/src/CdcChartComponent.tsx +398 -284
  25. package/src/_stories/Chart.Anchors.stories.tsx +10 -0
  26. package/src/_stories/Chart.BoxPlot.stories.tsx +7 -0
  27. package/src/_stories/Chart.CI.stories.tsx +13 -0
  28. package/src/_stories/Chart.Combo.stories.tsx +17 -0
  29. package/src/_stories/Chart.CustomColors.stories.tsx +78 -0
  30. package/src/_stories/Chart.Defaults.stories.tsx +95 -0
  31. package/src/_stories/Chart.DynamicSeries.stories.tsx +19 -0
  32. package/src/_stories/Chart.Filters.stories.tsx +4 -0
  33. package/src/_stories/Chart.Forecast.stories.tsx +4 -0
  34. package/src/_stories/Chart.HTMLInDataTable.stories.tsx +22 -0
  35. package/src/_stories/Chart.Legend.Gradient.stories.tsx +28 -0
  36. package/src/_stories/Chart.Patterns.stories.tsx +4 -0
  37. package/src/_stories/Chart.PreserveDecimals.stories.tsx +25 -0
  38. package/src/_stories/Chart.Regions.Categorical.stories.tsx +13 -0
  39. package/src/_stories/Chart.Regions.DateScale.stories.tsx +19 -0
  40. package/src/_stories/Chart.Regions.DateTimeScale.stories.tsx +25 -10
  41. package/src/_stories/Chart.ScatterPlot.stories.tsx +4 -0
  42. package/src/_stories/Chart.SmallMultiples.stories.tsx +16 -0
  43. package/src/_stories/Chart.SmallestLeftAxisMax.stories.tsx +64 -0
  44. package/src/_stories/Chart.stories.tsx +72 -1
  45. package/src/_stories/Chart.tooltip.stories.tsx +7 -0
  46. package/src/_stories/ChartAnnotation.stories.tsx +10 -0
  47. package/src/_stories/ChartAxisLabels.stories.tsx +4 -0
  48. package/src/_stories/ChartAxisTitles.stories.tsx +10 -0
  49. package/src/_stories/ChartBar.Editor.stories.tsx +97 -38
  50. package/src/_stories/ChartBrush.Editor.stories.tsx +11 -25
  51. package/src/_stories/ChartBrush.Matrix.Continuous.stories.tsx +41 -0
  52. package/src/_stories/ChartBrush.Matrix.Date.stories.tsx +114 -0
  53. package/src/_stories/ChartBrush.Matrix.DateTime.stories.tsx +78 -0
  54. package/src/_stories/ChartBrush.stories.tsx +7 -0
  55. package/src/_stories/ChartEditor.Editor.stories.tsx +1 -1
  56. package/src/_stories/ChartEditor.stories.tsx +7 -0
  57. package/src/_stories/ChartLine.QuadrantAngles.stories.tsx +89 -0
  58. package/src/_stories/ChartLine.Suppression.stories.tsx +7 -0
  59. package/src/_stories/ChartLine.Symbols.stories.tsx +4 -0
  60. package/src/_stories/ChartPrefixSuffix.stories.tsx +46 -1
  61. package/src/_stories/TechAdoptionWithLinks.stories.tsx +7 -0
  62. package/src/_stories/_mock/brush_continuous.json +86 -0
  63. package/src/_stories/_mock/brush_date_large.json +176 -0
  64. package/src/_stories/_mock/line_chart_angle_near_zero_fall.json +195 -0
  65. package/src/_stories/_mock/line_chart_angle_near_zero_rise.json +195 -0
  66. package/src/_stories/_mock/line_chart_angle_q1_steep_upward.json +195 -0
  67. package/src/_stories/_mock/line_chart_angle_q2_gentle_downward.json +195 -0
  68. package/src/_stories/_mock/line_chart_angle_q3_steep_downward.json +195 -0
  69. package/src/_stories/_mock/line_chart_angle_q4_gentle_upward.json +195 -0
  70. package/src/_stories/_mock/line_chart_quadrant_angles.json +264 -0
  71. package/src/_stories/_mock/paired-bar-abbr.json +421 -0
  72. package/src/_stories/_mock/pie_custom_colors.json +268 -0
  73. package/src/_stories/_mock/smallest_left_axis_max.json +104 -0
  74. package/src/components/Annotations/components/AnnotationDraggable.styles.css +14 -20
  75. package/src/components/Annotations/components/AnnotationDraggable.tsx +240 -116
  76. package/src/components/Annotations/components/AnnotationDropdown.styles.css +1 -2
  77. package/src/components/Annotations/components/AnnotationDropdown.tsx +8 -12
  78. package/src/components/Annotations/components/AnnotationList.styles.css +12 -18
  79. package/src/components/Annotations/components/AnnotationList.tsx +5 -4
  80. package/src/components/Annotations/components/findNearestDatum.ts +75 -85
  81. package/src/components/Annotations/helpers/getVisibleAnnotations.ts +38 -0
  82. package/src/components/Axis/BottomAxis.tsx +277 -0
  83. package/src/components/Axis/LeftAxis.tsx +404 -0
  84. package/src/components/Axis/LeftAxisGridlines.tsx +77 -0
  85. package/src/components/Axis/PairedBarAxis.tsx +192 -0
  86. package/src/components/Axis/README.md +94 -0
  87. package/src/components/Axis/RightAxis.tsx +108 -0
  88. package/src/components/Axis/axis.constants.ts +21 -0
  89. package/src/components/Axis/index.ts +7 -0
  90. package/src/components/BarChart/components/BarChart.Horizontal.tsx +12 -28
  91. package/src/components/BarChart/components/BarChart.StackedHorizontal.tsx +12 -30
  92. package/src/components/BarChart/components/BarChart.StackedVertical.tsx +12 -31
  93. package/src/components/BarChart/components/BarChart.Vertical.tsx +12 -28
  94. package/src/components/BarChart/components/BarChart.tsx +7 -1
  95. package/src/components/BarChart/helpers/getPatternUrl.ts +94 -0
  96. package/src/components/BarChart/helpers/tests/getPatternUrl.test.ts +134 -0
  97. package/src/components/BarChart/helpers/useBarChart.ts +3 -0
  98. package/src/components/Brush/BrushSelector.tsx +155 -22
  99. package/src/components/Brush/MiniChartPreview.tsx +133 -21
  100. package/src/components/EditorPanel/EditorPanel.tsx +81 -54
  101. package/src/components/EditorPanel/components/Panels/Panel.Annotate.tsx +67 -29
  102. package/src/components/EditorPanel/components/Panels/Panel.ForestPlotSettings.tsx +0 -78
  103. package/src/components/EditorPanel/components/Panels/Panel.General.tsx +120 -2
  104. package/src/components/EditorPanel/components/Panels/Panel.PatternSettings.tsx +25 -43
  105. package/src/components/EditorPanel/components/Panels/Panel.Radar.tsx +353 -0
  106. package/src/components/EditorPanel/components/Panels/Panel.Series.tsx +83 -3
  107. package/src/components/EditorPanel/components/Panels/Panel.Visual.tsx +66 -43
  108. package/src/components/EditorPanel/components/Panels/index.tsx +2 -0
  109. package/src/components/EditorPanel/editor-panel.scss +1 -1
  110. package/src/components/EditorPanel/useEditorPermissions.ts +55 -26
  111. package/src/components/ForestPlot/ForestPlot.tsx +26 -22
  112. package/src/components/HorizonChart/HorizonChart.tsx +131 -0
  113. package/src/components/HorizonChart/components/HorizonBand.tsx +160 -0
  114. package/src/components/HorizonChart/helpers/calculateHorizonBands.ts +27 -0
  115. package/src/components/HorizonChart/helpers/getHorizonLayerColors.ts +40 -0
  116. package/src/components/HorizonChart/index.tsx +3 -0
  117. package/src/components/Legend/Legend.Component.tsx +52 -4
  118. package/src/components/Legend/Legend.tsx +1 -1
  119. package/src/components/Legend/LegendGroup/LegendGroup.styles.css +4 -4
  120. package/src/components/Legend/LegendValueRange.tsx +77 -0
  121. package/src/components/Legend/helpers/createFormatLabels.tsx +16 -2
  122. package/src/components/Legend/helpers/generateValueRanges.ts +92 -0
  123. package/src/components/LineChart/helpers/README.md +292 -0
  124. package/src/components/LineChart/helpers/labelPositioning.test.ts +245 -0
  125. package/src/components/LineChart/helpers/labelPositioning.ts +304 -0
  126. package/src/components/LineChart/index.tsx +44 -8
  127. package/src/components/LinearChart/README.md +109 -0
  128. package/src/components/LinearChart/VisualizationRenderer.tsx +267 -0
  129. package/src/components/LinearChart/linearChart.constants.ts +84 -0
  130. package/src/components/LinearChart/tests/LinearChart.test.tsx +278 -0
  131. package/src/components/LinearChart/tests/mockConfigContext.ts +131 -0
  132. package/src/components/LinearChart/utils/tickFormatting.ts +146 -0
  133. package/src/components/LinearChart.tsx +268 -1057
  134. package/src/components/PieChart/PieChart.tsx +20 -5
  135. package/src/components/RadarChart/RadarAxis.tsx +78 -0
  136. package/src/components/RadarChart/RadarChart.tsx +298 -0
  137. package/src/components/RadarChart/RadarGrid.tsx +64 -0
  138. package/src/components/RadarChart/RadarPolygon.tsx +91 -0
  139. package/src/components/RadarChart/helpers.ts +83 -0
  140. package/src/components/RadarChart/index.tsx +3 -0
  141. package/src/components/Regions/components/Regions.tsx +6 -6
  142. package/src/components/Sankey/components/Sankey.tsx +3 -3
  143. package/src/components/Sankey/sankey.scss +1 -1
  144. package/src/components/SmallMultiples/SmallMultiples.css +5 -5
  145. package/src/components/Sparkline/index.scss +4 -2
  146. package/src/components/WarmingStripes/WarmingStripes.tsx +95 -25
  147. package/src/components/WarmingStripes/WarmingStripesGradientLegend.css +8 -8
  148. package/src/data/initial-state.js +37 -15
  149. package/src/data/legacy-defaults.ts +18 -0
  150. package/src/helpers/abbreviateNumber.ts +24 -17
  151. package/src/helpers/getChartPatternId.ts +17 -0
  152. package/src/helpers/getExcludedData.ts +4 -0
  153. package/src/helpers/getMinMax.ts +16 -2
  154. package/src/helpers/handleChartAriaLabels.ts +19 -19
  155. package/src/helpers/handleLineType.ts +22 -18
  156. package/src/helpers/seriesColumnSettings.ts +114 -0
  157. package/src/helpers/tests/countNumOfTicks.test.ts +77 -0
  158. package/src/helpers/tests/seriesColumnSettings.test.ts +84 -0
  159. package/src/hooks/useProgrammaticTooltip.ts +23 -2
  160. package/src/hooks/useRightAxis.ts +14 -0
  161. package/src/hooks/useScales.ts +99 -56
  162. package/src/hooks/useTooltip.tsx +23 -3
  163. package/src/scss/main.scss +157 -79
  164. package/src/selectors/README.md +68 -0
  165. package/src/store/chart.reducer.ts +2 -0
  166. package/src/test/CdcChart.test.jsx +2 -2
  167. package/src/types/ChartConfig.ts +22 -0
  168. package/src/types/ChartContext.ts +1 -0
  169. package/src/types/Horizon.ts +64 -0
  170. package/tests/fixtures/chart-config-with-metadata.json +29 -0
  171. package/tests/fixtures/data-with-metadata.json +10 -0
  172. package/preview.html +0 -1616
  173. package/src/components/Annotations/components/helpers/index.tsx +0 -46
@@ -0,0 +1,264 @@
1
+ {
2
+ "type": "chart",
3
+ "title": "Line Chart - Quadrant Angle Testing",
4
+ "theme": "theme-blue",
5
+ "animate": false,
6
+ "fontSize": "medium",
7
+ "lineDatapointStyle": "always show",
8
+ "visualizationSubType": "regular",
9
+ "padding": {
10
+ "left": 5,
11
+ "right": 5
12
+ },
13
+ "yAxis": {
14
+ "hideAxis": false,
15
+ "displayNumbersOnBar": false,
16
+ "hideLabel": false,
17
+ "hideTicks": false,
18
+ "size": "68",
19
+ "gridLines": true,
20
+ "enablePadding": false,
21
+ "min": "0",
22
+ "max": "120",
23
+ "labelColor": "#333",
24
+ "tickLabelColor": "#333",
25
+ "tickColor": "#333",
26
+ "numTicks": "",
27
+ "axisPadding": 0,
28
+ "scalePadding": 10,
29
+ "tickRotation": 0,
30
+ "label": "Value"
31
+ },
32
+ "topAxis": {
33
+ "hasLine": false
34
+ },
35
+ "height": "450",
36
+ "xAxis": {
37
+ "sortDates": false,
38
+ "type": "categorical",
39
+ "hideAxis": false,
40
+ "hideLabel": false,
41
+ "hideTicks": false,
42
+ "size": "78",
43
+ "tickRotation": "0",
44
+ "min": "",
45
+ "max": "",
46
+ "labelColor": "#333",
47
+ "tickLabelColor": "#333",
48
+ "tickColor": "#333",
49
+ "numTicks": "",
50
+ "labelOffset": 0,
51
+ "axisPadding": 0,
52
+ "padding": 5,
53
+ "dataKey": "Category",
54
+ "label": "Data Points"
55
+ },
56
+ "table": {
57
+ "label": "Data Table",
58
+ "expanded": false,
59
+ "limitHeight": false,
60
+ "height": "",
61
+ "caption": "Data for testing quadrant angle positioning",
62
+ "showDownloadUrl": false,
63
+ "showDataTableLink": true,
64
+ "showDownloadLinkBelow": true,
65
+ "download": true,
66
+ "showVertical": true,
67
+ "show": true
68
+ },
69
+ "orientation": "vertical",
70
+ "legend": {
71
+ "hide": false,
72
+ "behavior": "highlight",
73
+ "axisAlign": true,
74
+ "singleRow": false,
75
+ "colorCode": "",
76
+ "reverseLabelOrder": false,
77
+ "description": "Different series to test various angle scenarios",
78
+ "label": "Test Series",
79
+ "lineMode": false,
80
+ "verticalSorted": false,
81
+ "highlightOnHover": false,
82
+ "style": "lines",
83
+ "subStyle": "linear blocks",
84
+ "shape": "circle",
85
+ "hideBorder": {
86
+ "side": false,
87
+ "topBottom": true
88
+ },
89
+ "position": "right",
90
+ "hasShape": true
91
+ },
92
+ "exclusions": {
93
+ "active": false,
94
+ "keys": []
95
+ },
96
+ "palette": "qualitative4",
97
+ "isPaletteReversed": false,
98
+ "labels": true,
99
+ "dataFormat": {
100
+ "commas": false,
101
+ "prefix": "",
102
+ "suffix": "",
103
+ "abbreviated": false
104
+ },
105
+ "confidenceKeys": {},
106
+ "visual": {
107
+ "border": true,
108
+ "accent": true,
109
+ "background": true,
110
+ "verticalHoverLine": false,
111
+ "horizontalHoverLine": false,
112
+ "lineDatapointSymbol": "standard"
113
+ },
114
+ "data": [
115
+ {
116
+ "Category": "A",
117
+ "Steep Upward (Q1)": "10",
118
+ "Gentle Downward (Q2)": "100",
119
+ "Steep Downward (Q3)": "100",
120
+ "Gentle Upward (Q4)": "10",
121
+ "Near Zero Rise": "5",
122
+ "Near Zero Fall": "5"
123
+ },
124
+ {
125
+ "Category": "B",
126
+ "Steep Upward (Q1)": "90",
127
+ "Gentle Downward (Q2)": "80",
128
+ "Steep Downward (Q3)": "90",
129
+ "Gentle Upward (Q4)": "20",
130
+ "Near Zero Rise": "10",
131
+ "Near Zero Fall": "0"
132
+ },
133
+ {
134
+ "Category": "C",
135
+ "Steep Upward (Q1)": "100",
136
+ "Gentle Downward (Q2)": "90",
137
+ "Steep Downward (Q3)": "10",
138
+ "Gentle Upward (Q4)": "80",
139
+ "Near Zero Rise": "80",
140
+ "Near Zero Fall": "80"
141
+ },
142
+ {
143
+ "Category": "D",
144
+ "Steep Upward (Q1)": "80",
145
+ "Gentle Downward (Q2)": "100",
146
+ "Steep Downward (Q3)": "0",
147
+ "Gentle Upward (Q4)": "90",
148
+ "Near Zero Rise": "90",
149
+ "Near Zero Fall": "90"
150
+ },
151
+ {
152
+ "Category": "E",
153
+ "Steep Upward (Q1)": "20",
154
+ "Gentle Downward (Q2)": "90",
155
+ "Steep Downward (Q3)": "10",
156
+ "Gentle Upward (Q4)": "100",
157
+ "Near Zero Rise": "0",
158
+ "Near Zero Fall": "100"
159
+ },
160
+ {
161
+ "Category": "F",
162
+ "Steep Upward (Q1)": "100",
163
+ "Gentle Downward (Q2)": "10",
164
+ "Steep Downward (Q3)": "100",
165
+ "Gentle Upward (Q4)": "80",
166
+ "Near Zero Rise": "5",
167
+ "Near Zero Fall": "10"
168
+ },
169
+ {
170
+ "Category": "G",
171
+ "Steep Upward (Q1)": "90",
172
+ "Gentle Downward (Q2)": "80",
173
+ "Steep Downward (Q3)": "80",
174
+ "Gentle Upward (Q4)": "20",
175
+ "Near Zero Rise": "100",
176
+ "Near Zero Fall": "5"
177
+ },
178
+ {
179
+ "Category": "H",
180
+ "Steep Upward (Q1)": "10",
181
+ "Gentle Downward (Q2)": "100",
182
+ "Steep Downward (Q3)": "90",
183
+ "Gentle Upward (Q4)": "90",
184
+ "Near Zero Rise": "10",
185
+ "Near Zero Fall": "0"
186
+ }
187
+ ],
188
+ "visualizationType": "Line",
189
+ "series": [
190
+ {
191
+ "dataKey": "Steep Upward (Q1)",
192
+ "type": "Line",
193
+ "axis": "Left",
194
+ "tooltip": true
195
+ },
196
+ {
197
+ "dataKey": "Gentle Downward (Q2)",
198
+ "type": "Line",
199
+ "axis": "Left",
200
+ "tooltip": true
201
+ },
202
+ {
203
+ "dataKey": "Steep Downward (Q3)",
204
+ "type": "Line",
205
+ "axis": "Left",
206
+ "tooltip": true
207
+ },
208
+ {
209
+ "dataKey": "Gentle Upward (Q4)",
210
+ "type": "Line",
211
+ "axis": "Left",
212
+ "tooltip": true
213
+ },
214
+ {
215
+ "dataKey": "Near Zero Rise",
216
+ "type": "Line",
217
+ "axis": "Left",
218
+ "tooltip": true
219
+ },
220
+ {
221
+ "dataKey": "Near Zero Fall",
222
+ "type": "Line",
223
+ "axis": "Left",
224
+ "tooltip": true
225
+ }
226
+ ],
227
+ "description": "This chart contains multiple line series designed to create various angles for testing quadrant-based label positioning. Each series demonstrates different angle scenarios: Quadrant 1 (1°-89° steep upward), Quadrant 2 (91°-179° gentle downward), Quadrant 3 (180°-269° steep downward), Quadrant 4 (269°-360° gentle upward), and edge cases near the x-axis.",
228
+ "annotations": [],
229
+ "debugSvg": false,
230
+ "chartMessage": {
231
+ "noData": "No Data Available"
232
+ },
233
+ "showTitle": true,
234
+ "showDownloadMediaButton": false,
235
+ "lineDatapointColor": "Same as Line",
236
+ "isResponsiveTicks": false,
237
+ "general": {
238
+ "annotationDropdownText": "Annotations",
239
+ "showDownloadButton": false,
240
+ "showMissingDataLabel": true,
241
+ "showSuppressedSymbol": true,
242
+ "showZeroValueData": true,
243
+ "hideNullValue": true
244
+ },
245
+ "isLegendValue": false,
246
+ "barSpace": 15,
247
+ "heights": {
248
+ "vertical": 450,
249
+ "horizontal": 750
250
+ },
251
+ "columns": {},
252
+ "brush": {
253
+ "height": 45,
254
+ "active": false
255
+ },
256
+ "useLogScale": false,
257
+ "filterBehavior": "Filter Change",
258
+ "tooltips": {
259
+ "opacity": 90,
260
+ "singleSeries": false,
261
+ "dateDisplayFormat": ""
262
+ },
263
+ "version": "4.25.1"
264
+ }
@@ -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": "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
+ }