@cdc/chart 4.25.11 → 4.26.2

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 (181) hide show
  1. package/CLAUDE.local.md +79 -0
  2. package/dist/{cdcchart-dgT_1dIT.es.js → cdcchart-DQ00cQCm.es.js} +1 -20
  3. package/dist/cdcchart.js +51401 -50814
  4. package/examples/default.json +378 -0
  5. package/examples/feature/__data__/horizon-chart-data.json +373 -0
  6. package/examples/feature/annotations/index.json +3 -6
  7. package/examples/feature/horizon/horizon-chart.json +395 -0
  8. package/examples/feature/pie/planet-pie-example-config.json +48 -2
  9. package/examples/line-chart-states.json +1085 -0
  10. package/examples/private/123.json +694 -0
  11. package/examples/private/DEV-12100.json +1303 -0
  12. package/examples/private/anchor-issue.json +4094 -0
  13. package/examples/private/backwards-slider.json +10430 -0
  14. package/examples/private/cat-y.json +1235 -0
  15. package/examples/private/data-points.json +228 -0
  16. package/examples/private/georgia.csv +160 -0
  17. package/examples/private/height.json +3915 -0
  18. package/examples/private/links.json +569 -0
  19. package/examples/private/quadrant.txt +30 -0
  20. package/examples/private/test-forecast.json +5510 -0
  21. package/examples/private/timeline-data.json +1 -0
  22. package/examples/private/timeline.json +389 -0
  23. package/examples/private/warming-stripe-test.json +2578 -0
  24. package/examples/private/warming-stripes.json +4763 -0
  25. package/examples/radar-chart-simple.json +133 -0
  26. package/examples/radar-chart.json +148 -0
  27. package/examples/tech-adoption-with-links.json +560 -0
  28. package/index.html +1 -36
  29. package/package.json +59 -60
  30. package/src/CdcChartComponent.tsx +206 -89
  31. package/src/_stories/Chart.Anchors.stories.tsx +10 -0
  32. package/src/_stories/Chart.BoxPlot.stories.tsx +7 -0
  33. package/src/_stories/Chart.CI.stories.tsx +13 -0
  34. package/src/_stories/Chart.Combo.stories.tsx +17 -0
  35. package/src/_stories/Chart.CustomColors.stories.tsx +4 -0
  36. package/src/_stories/Chart.DynamicSeries.stories.tsx +19 -0
  37. package/src/_stories/Chart.Filters.stories.tsx +4 -0
  38. package/src/_stories/Chart.Forecast.stories.tsx +4 -0
  39. package/src/_stories/Chart.HTMLInDataTable.stories.tsx +22 -0
  40. package/src/_stories/Chart.Legend.Gradient.stories.tsx +28 -0
  41. package/src/_stories/Chart.Patterns.stories.tsx +4 -0
  42. package/src/_stories/Chart.PreserveDecimals.stories.tsx +25 -0
  43. package/src/_stories/Chart.Regions.Categorical.stories.tsx +161 -0
  44. package/src/_stories/Chart.Regions.DateScale.stories.tsx +216 -0
  45. package/src/_stories/Chart.Regions.DateTimeScale.stories.tsx +312 -0
  46. package/src/_stories/Chart.ScatterPlot.stories.tsx +4 -0
  47. package/src/_stories/Chart.SmallMultiples.stories.tsx +16 -0
  48. package/src/_stories/Chart.stories.tsx +45 -0
  49. package/src/_stories/Chart.tooltip.stories.tsx +7 -0
  50. package/src/_stories/ChartAnnotation.stories.tsx +10 -0
  51. package/src/_stories/ChartAxisLabels.stories.tsx +4 -0
  52. package/src/_stories/ChartAxisTitles.stories.tsx +10 -0
  53. package/src/_stories/ChartBar.Editor.stories.tsx +11 -6
  54. package/src/_stories/ChartBrush.Editor.stories.tsx +295 -0
  55. package/src/_stories/ChartBrush.Matrix.Continuous.stories.tsx +41 -0
  56. package/src/_stories/ChartBrush.Matrix.Date.stories.tsx +114 -0
  57. package/src/_stories/ChartBrush.Matrix.DateTime.stories.tsx +78 -0
  58. package/src/_stories/ChartBrush.stories.tsx +57 -0
  59. package/src/_stories/ChartEditor.Editor.stories.tsx +3 -5
  60. package/src/_stories/ChartEditor.stories.tsx +7 -0
  61. package/src/_stories/ChartLine.QuadrantAngles.stories.tsx +89 -0
  62. package/src/_stories/ChartLine.Suppression.stories.tsx +7 -0
  63. package/src/_stories/ChartLine.Symbols.stories.tsx +4 -0
  64. package/src/_stories/ChartPrefixSuffix.stories.tsx +46 -1
  65. package/src/_stories/TechAdoptionWithLinks.stories.tsx +34 -0
  66. package/src/_stories/_mock/brush_continuous.json +86 -0
  67. package/src/_stories/_mock/brush_date_large.json +176 -0
  68. package/src/_stories/_mock/brush_enabled.json +326 -0
  69. package/src/_stories/_mock/brush_mock.json +2 -69
  70. package/src/_stories/_mock/horizontal-bars-dynamic-y-axis.json +413 -0
  71. package/src/_stories/_mock/line_chart_angle_near_zero_fall.json +195 -0
  72. package/src/_stories/_mock/line_chart_angle_near_zero_rise.json +195 -0
  73. package/src/_stories/_mock/line_chart_angle_q1_steep_upward.json +195 -0
  74. package/src/_stories/_mock/line_chart_angle_q2_gentle_downward.json +195 -0
  75. package/src/_stories/_mock/line_chart_angle_q3_steep_downward.json +195 -0
  76. package/src/_stories/_mock/line_chart_angle_q4_gentle_upward.json +195 -0
  77. package/src/_stories/_mock/line_chart_quadrant_angles.json +264 -0
  78. package/src/components/Annotations/components/AnnotationDraggable.styles.css +11 -17
  79. package/src/components/Annotations/components/AnnotationDraggable.tsx +240 -116
  80. package/src/components/Annotations/components/AnnotationDropdown.styles.css +1 -2
  81. package/src/components/Annotations/components/AnnotationDropdown.tsx +8 -12
  82. package/src/components/Annotations/components/AnnotationList.styles.css +4 -10
  83. package/src/components/Annotations/components/AnnotationList.tsx +5 -4
  84. package/src/components/Annotations/components/findNearestDatum.ts +75 -85
  85. package/src/components/Annotations/helpers/getVisibleAnnotations.ts +38 -0
  86. package/src/components/AreaChart/components/AreaChart.Stacked.jsx +1 -2
  87. package/src/components/Axis/BottomAxis.tsx +270 -0
  88. package/src/components/Axis/Categorical.Axis.tsx +6 -7
  89. package/src/components/Axis/LeftAxis.tsx +404 -0
  90. package/src/components/Axis/LeftAxisGridlines.tsx +77 -0
  91. package/src/components/Axis/PairedBarAxis.tsx +186 -0
  92. package/src/components/Axis/README.md +94 -0
  93. package/src/components/Axis/RightAxis.tsx +108 -0
  94. package/src/components/Axis/axis.constants.ts +21 -0
  95. package/src/components/Axis/index.ts +7 -0
  96. package/src/components/BarChart/components/BarChart.Horizontal.tsx +178 -24
  97. package/src/components/BarChart/components/BarChart.StackedHorizontal.tsx +3 -1
  98. package/src/components/BarChart/components/BarChart.StackedVertical.tsx +1 -0
  99. package/src/components/BarChart/components/BarChart.Vertical.tsx +6 -8
  100. package/src/components/BarChart/components/BarChart.tsx +7 -1
  101. package/src/components/BarChart/components/context.tsx +1 -0
  102. package/src/components/BarChart/helpers/useBarChart.ts +14 -2
  103. package/src/components/Brush/BrushSelector.tsx +1390 -0
  104. package/src/components/Brush/MiniChartPreview.tsx +400 -0
  105. package/src/components/DeviationBar.jsx +9 -7
  106. package/src/components/EditorPanel/EditorPanel.tsx +2734 -2595
  107. package/src/components/EditorPanel/components/Panels/Panel.Annotate.tsx +60 -22
  108. package/src/components/EditorPanel/components/Panels/Panel.ForestPlotSettings.tsx +56 -34
  109. package/src/components/EditorPanel/components/Panels/Panel.General.tsx +137 -30
  110. package/src/components/EditorPanel/components/Panels/Panel.PatternSettings.tsx +2 -0
  111. package/src/components/EditorPanel/components/Panels/Panel.Radar.tsx +353 -0
  112. package/src/components/EditorPanel/components/Panels/Panel.Series.tsx +0 -1
  113. package/src/components/EditorPanel/components/Panels/Panel.SmallMultiples.tsx +30 -25
  114. package/src/components/EditorPanel/components/Panels/Panel.Visual.tsx +42 -28
  115. package/src/components/EditorPanel/components/Panels/index.tsx +2 -0
  116. package/src/components/EditorPanel/useEditorPermissions.ts +81 -39
  117. package/src/components/HorizonChart/HorizonChart.tsx +131 -0
  118. package/src/components/HorizonChart/components/HorizonBand.tsx +160 -0
  119. package/src/components/HorizonChart/helpers/calculateHorizonBands.ts +27 -0
  120. package/src/components/HorizonChart/helpers/getHorizonLayerColors.ts +40 -0
  121. package/src/components/HorizonChart/index.tsx +3 -0
  122. package/src/components/Legend/Legend.Component.tsx +52 -4
  123. package/src/components/Legend/Legend.tsx +4 -3
  124. package/src/components/Legend/LegendValueRange.tsx +77 -0
  125. package/src/components/Legend/helpers/createFormatLabels.tsx +164 -2
  126. package/src/components/Legend/helpers/generateValueRanges.ts +92 -0
  127. package/src/components/Legend/helpers/index.ts +10 -6
  128. package/src/components/LineChart/helpers/README.md +292 -0
  129. package/src/components/LineChart/helpers/labelPositioning.test.ts +245 -0
  130. package/src/components/LineChart/helpers/labelPositioning.ts +304 -0
  131. package/src/components/LineChart/index.tsx +44 -8
  132. package/src/components/LinearChart/README.md +109 -0
  133. package/src/components/LinearChart/VisualizationRenderer.tsx +267 -0
  134. package/src/components/LinearChart/linearChart.constants.ts +84 -0
  135. package/src/components/LinearChart/tests/LinearChart.test.tsx +201 -0
  136. package/src/components/LinearChart/tests/mockConfigContext.ts +129 -0
  137. package/src/components/LinearChart/utils/tickFormatting.ts +146 -0
  138. package/src/components/LinearChart.tsx +338 -1082
  139. package/src/components/PairedBarChart.jsx +20 -3
  140. package/src/components/PieChart/PieChart.tsx +1 -1
  141. package/src/components/RadarChart/RadarAxis.tsx +78 -0
  142. package/src/components/RadarChart/RadarChart.tsx +298 -0
  143. package/src/components/RadarChart/RadarGrid.tsx +64 -0
  144. package/src/components/RadarChart/RadarPolygon.tsx +91 -0
  145. package/src/components/RadarChart/helpers.ts +83 -0
  146. package/src/components/RadarChart/index.tsx +3 -0
  147. package/src/components/Regions/components/Regions.tsx +365 -122
  148. package/src/components/ScatterPlot/ScatterPlot.jsx +2 -2
  149. package/src/components/SmallMultiples/SmallMultipleTile.tsx +5 -1
  150. package/src/components/WarmingStripes/WarmingStripes.tsx +230 -0
  151. package/src/components/WarmingStripes/WarmingStripesGradientLegend.css +35 -0
  152. package/src/components/WarmingStripes/WarmingStripesGradientLegend.tsx +104 -0
  153. package/src/components/WarmingStripes/index.tsx +3 -0
  154. package/src/data/initial-state.js +17 -2
  155. package/src/helpers/calculateHorizontalBarCategoryLabelWidth.ts +57 -0
  156. package/src/helpers/getExcludedData.ts +4 -0
  157. package/src/helpers/getMinMax.ts +12 -7
  158. package/src/helpers/handleChartAriaLabels.ts +19 -19
  159. package/src/helpers/handleLineType.ts +22 -18
  160. package/src/helpers/sizeHelpers.ts +0 -20
  161. package/src/helpers/smallMultiplesHelpers.ts +1 -1
  162. package/src/hooks/useChartHoverAnalytics.tsx +10 -9
  163. package/src/hooks/useProgrammaticTooltip.ts +23 -2
  164. package/src/hooks/useScales.ts +18 -1
  165. package/src/hooks/useTooltip.tsx +34 -10
  166. package/src/scss/DataTable.scss +0 -4
  167. package/src/scss/main.scss +22 -3
  168. package/src/selectors/README.md +68 -0
  169. package/src/store/chart.reducer.ts +2 -0
  170. package/src/test/CdcChart.test.jsx +1 -1
  171. package/src/types/ChartConfig.ts +21 -0
  172. package/src/types/ChartContext.ts +1 -0
  173. package/src/types/Horizon.ts +64 -0
  174. package/src/types/Label.ts +1 -0
  175. package/src/utils/analyticsTracking.ts +19 -0
  176. package/LICENSE +0 -201
  177. package/src/components/Annotations/components/helpers/index.tsx +0 -46
  178. package/src/components/Brush/BrushChart.tsx +0 -128
  179. package/src/components/Brush/BrushController.tsx +0 -71
  180. package/src/components/Brush/types.tsx +0 -8
  181. package/src/components/BrushChart.tsx +0 -223
@@ -0,0 +1,413 @@
1
+ {
2
+ "annotations": [],
3
+ "allowLineToBarGraph": "__​undefined__",
4
+ "type": "chart",
5
+ "debugSvg": false,
6
+ "chartMessage": {
7
+ "noData": "No Data Available"
8
+ },
9
+ "title": "",
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": "",
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
+ "isReversed": true,
33
+ "version": "2.0",
34
+ "name": "sequential_bluereverse"
35
+ }
36
+ },
37
+ "padding": {
38
+ "left": 5,
39
+ "right": 5
40
+ },
41
+ "preliminaryData": [],
42
+ "yAxis": {
43
+ "hideAxis": false,
44
+ "displayNumbersOnBar": true,
45
+ "hideLabel": false,
46
+ "hideTicks": false,
47
+ "size": 50,
48
+ "gridLines": true,
49
+ "enablePadding": false,
50
+ "min": "",
51
+ "max": "",
52
+ "labelColor": "#1c1d1f",
53
+ "tickLabelColor": "#1c1d1f",
54
+ "tickColor": "#1c1d1f",
55
+ "rightHideAxis": false,
56
+ "rightAxisSize": 0,
57
+ "rightLabel": "",
58
+ "rightLabelOffsetSize": 0,
59
+ "rightAxisLabelColor": "#1c1d1f",
60
+ "rightAxisTickLabelColor": "#1c1d1f",
61
+ "rightAxisTickColor": "#1c1d1f",
62
+ "numTicks": "",
63
+ "axisPadding": 0,
64
+ "scalePadding": 10,
65
+ "tickRotation": 0,
66
+ "anchors": [],
67
+ "shoMissingDataLabel": true,
68
+ "showMissingDataLine": true,
69
+ "categories": [],
70
+ "type": "__​undefined__",
71
+ "labelPlacement": "On Date/Category Axis"
72
+ },
73
+ "boxplot": {
74
+ "plots": [],
75
+ "borders": "true",
76
+ "plotOutlierValues": false,
77
+ "plotNonOutlierValues": true,
78
+ "labels": {
79
+ "q1": "Lower Quartile",
80
+ "q2": "q2",
81
+ "q3": "Upper Quartile",
82
+ "q4": "q4",
83
+ "minimum": "Minimum",
84
+ "maximum": "Maximum",
85
+ "mean": "Mean",
86
+ "median": "Median",
87
+ "sd": "Standard Deviation",
88
+ "iqr": "Interquartile Range",
89
+ "count": "Count",
90
+ "outliers": "Outliers",
91
+ "values": "Values",
92
+ "lowerBounds": "Lower Bounds",
93
+ "upperBounds": "Upper Bounds"
94
+ }
95
+ },
96
+ "topAxis": {
97
+ "hasLine": false
98
+ },
99
+ "isLegendValue": false,
100
+ "barThickness": "0.37",
101
+ "barHeight": 45,
102
+ "barSpace": 30,
103
+ "heights": {
104
+ "vertical": 300,
105
+ "horizontal": 200
106
+ },
107
+ "xAxis": {
108
+ "sortDates": false,
109
+ "anchors": [],
110
+ "type": "categorical",
111
+ "showTargetLabel": true,
112
+ "targetLabel": "Target",
113
+ "hideAxis": true,
114
+ "hideLabel": false,
115
+ "hideTicks": true,
116
+ "size": 75,
117
+ "tickRotation": 0,
118
+ "min": "",
119
+ "max": "",
120
+ "labelColor": "#1c1d1f",
121
+ "tickLabelColor": "#1c1d1f",
122
+ "tickColor": "#1c1d1f",
123
+ "numTicks": "",
124
+ "labelOffset": 0,
125
+ "axisPadding": 200,
126
+ "target": 0,
127
+ "maxTickRotation": 45,
128
+ "padding": 5,
129
+ "showYearsOnce": false,
130
+ "sortByRecentDate": false,
131
+ "brushActive": false,
132
+ "dataKey": "Race",
133
+ "axisBBox": 29.860000610351562,
134
+ "tickWidthMax": 29
135
+ },
136
+ "table": {
137
+ "label": "Data Table",
138
+ "expanded": true,
139
+ "limitHeight": false,
140
+ "height": "",
141
+ "caption": "",
142
+ "showDownloadUrl": false,
143
+ "showDataTableLink": true,
144
+ "showDownloadLinkBelow": true,
145
+ "indexLabel": "",
146
+ "download": true,
147
+ "showVertical": true,
148
+ "dateDisplayFormat": "",
149
+ "showMissingDataLabel": true,
150
+ "showSuppressedSymbol": true,
151
+ "collapsible": true,
152
+ "show": true
153
+ },
154
+ "orientation": "horizontal",
155
+ "columns": {},
156
+ "legend": {
157
+ "hide": true,
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": "right",
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
+ "confidenceKeys": {},
225
+ "visual": {
226
+ "border": true,
227
+ "accent": true,
228
+ "background": true,
229
+ "verticalHoverLine": false,
230
+ "horizontalHoverLine": false,
231
+ "lineDatapointSymbol": "none",
232
+ "maximumShapeAmount": 7
233
+ },
234
+ "useLogScale": false,
235
+ "filterBehavior": "Filter Change",
236
+ "highlightedBarValues": [],
237
+ "series": [
238
+ {
239
+ "dataKey": "Age-adjusted rate",
240
+ "type": "Bar",
241
+ "axis": "Left",
242
+ "tooltip": true
243
+ }
244
+ ],
245
+ "tooltips": {
246
+ "opacity": 90,
247
+ "singleSeries": false,
248
+ "dateDisplayFormat": ""
249
+ },
250
+ "forestPlot": {
251
+ "startAt": 0,
252
+ "colors": {
253
+ "line": "",
254
+ "shape": ""
255
+ },
256
+ "lineOfNoEffect": {
257
+ "show": true
258
+ },
259
+ "type": "",
260
+ "pooledResult": {
261
+ "diamondHeight": 5,
262
+ "column": ""
263
+ },
264
+ "estimateField": "",
265
+ "estimateRadius": "",
266
+ "shape": "square",
267
+ "rowHeight": 20,
268
+ "description": {
269
+ "show": true,
270
+ "text": "description",
271
+ "location": 0
272
+ },
273
+ "result": {
274
+ "show": true,
275
+ "text": "result",
276
+ "location": 100
277
+ },
278
+ "radius": {
279
+ "min": 2,
280
+ "max": 10,
281
+ "scalingColumn": ""
282
+ },
283
+ "regression": {
284
+ "lower": 0,
285
+ "upper": 0,
286
+ "estimateField": 0
287
+ },
288
+ "leftWidthOffset": 0,
289
+ "rightWidthOffset": 0,
290
+ "showZeroLine": false,
291
+ "leftLabel": "",
292
+ "rightLabel": ""
293
+ },
294
+ "area": {
295
+ "isStacked": false
296
+ },
297
+ "sankey": {
298
+ "title": {
299
+ "defaultColor": "black"
300
+ },
301
+ "iterations": 1,
302
+ "rxValue": 0.9,
303
+ "overallSize": {
304
+ "width": 900,
305
+ "height": 700
306
+ },
307
+ "margin": {
308
+ "margin_y": 25,
309
+ "margin_x": 0
310
+ },
311
+ "nodeSize": {
312
+ "nodeWidth": 26,
313
+ "nodeHeight": 40
314
+ },
315
+ "nodePadding": 55,
316
+ "nodeFontColor": "black",
317
+ "nodeColor": {
318
+ "default": "#ff8500",
319
+ "inactive": "#808080"
320
+ },
321
+ "linkColor": {
322
+ "default": "#ffc900",
323
+ "inactive": "#D3D3D3"
324
+ },
325
+ "opacity": {
326
+ "nodeOpacityDefault": 1,
327
+ "nodeOpacityInactive": 0.1,
328
+ "LinkOpacityDefault": 1,
329
+ "LinkOpacityInactive": 0.1
330
+ },
331
+ "storyNodeFontColor": "#006778",
332
+ "storyNodeText": [],
333
+ "nodeValueStyle": {
334
+ "textBefore": "(",
335
+ "textAfter": ")"
336
+ },
337
+ "data": []
338
+ },
339
+ "markupVariables": [],
340
+ "enableMarkupVariables": false,
341
+ "errors": [],
342
+ "currentViewport": "lg",
343
+ "id": 1,
344
+ "category": "Charts",
345
+ "label": "Bar",
346
+ "subType": "Bar",
347
+ "icon": {
348
+ "key": null,
349
+ "ref": null,
350
+ "props": {},
351
+ "_owner": null,
352
+ "_store": {}
353
+ },
354
+ "content": "Use bars to show comparisons between data categories.",
355
+ "visualizationType": "Bar",
356
+ "activeVizButtonID": 1,
357
+ "dataFileName": "valid-data-chart.csv",
358
+ "dataFileSourceType": "file",
359
+ "dataDescription": {
360
+ "horizontal": false,
361
+ "series": false
362
+ },
363
+ "version": "4.25.10",
364
+ "migrations": {
365
+ "addColorMigration": true
366
+ },
367
+ "dynamicMarginTop": 0,
368
+ "data": [
369
+ {
370
+ "Race": "Hispanic or Latino",
371
+ "Age-adjusted rate": "644.2"
372
+ },
373
+ {
374
+ "Race": "Non-Hispanic American Indian",
375
+ "Age-adjusted rate": "636.1"
376
+ },
377
+ {
378
+ "Race": "Non-Hispanic Black",
379
+ "Age-adjusted rate": "563.7"
380
+ },
381
+ {
382
+ "Race": "Non-Hispanic Asian or Pacific Islander",
383
+ "Age-adjusted rate": "202.5"
384
+ },
385
+ {
386
+ "Race": "Non-Hispanic White",
387
+ "Age-adjusted rate": "183.6"
388
+ }
389
+ ],
390
+ "formattedData": [
391
+ {
392
+ "Race": "Hispanic or Latino",
393
+ "Age-adjusted rate": "644.2"
394
+ },
395
+ {
396
+ "Race": "Non-Hispanic American Indian",
397
+ "Age-adjusted rate": "636.1"
398
+ },
399
+ {
400
+ "Race": "Non-Hispanic Black",
401
+ "Age-adjusted rate": "563.7"
402
+ },
403
+ {
404
+ "Race": "Non-Hispanic Asian or Pacific Islander",
405
+ "Age-adjusted rate": "202.5"
406
+ },
407
+ {
408
+ "Race": "Non-Hispanic White",
409
+ "Age-adjusted rate": "183.6"
410
+ }
411
+ ],
412
+ "datasets": {}
413
+ }
@@ -0,0 +1,195 @@
1
+ {
2
+ "type": "chart",
3
+ "title": "Near Zero Fall Angle",
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": "Testing near-zero fall angles (close to 180°)",
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": "Near-zero fall angle line",
78
+ "label": "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
+ "Near Zero Fall": "5"
118
+ },
119
+ {
120
+ "Category": "B",
121
+ "Near Zero Fall": "0"
122
+ },
123
+ {
124
+ "Category": "C",
125
+ "Near Zero Fall": "80"
126
+ },
127
+ {
128
+ "Category": "D",
129
+ "Near Zero Fall": "90"
130
+ },
131
+ {
132
+ "Category": "E",
133
+ "Near Zero Fall": "100"
134
+ },
135
+ {
136
+ "Category": "F",
137
+ "Near Zero Fall": "10"
138
+ },
139
+ {
140
+ "Category": "G",
141
+ "Near Zero Fall": "5"
142
+ },
143
+ {
144
+ "Category": "H",
145
+ "Near Zero Fall": "0"
146
+ }
147
+ ],
148
+ "visualizationType": "Line",
149
+ "series": [
150
+ {
151
+ "dataKey": "Near Zero Fall",
152
+ "type": "Line",
153
+ "axis": "Left",
154
+ "tooltip": true
155
+ }
156
+ ],
157
+ "description": "Testing edge case near-zero fall angles (close to 180°) where the line is nearly horizontal with slight downward movement.",
158
+ "annotations": [],
159
+ "debugSvg": false,
160
+ "chartMessage": {
161
+ "noData": "No Data Available"
162
+ },
163
+ "showTitle": true,
164
+ "showDownloadMediaButton": false,
165
+ "lineDatapointColor": "Same as Line",
166
+ "isResponsiveTicks": false,
167
+ "general": {
168
+ "annotationDropdownText": "Annotations",
169
+ "showDownloadButton": false,
170
+ "showMissingDataLabel": true,
171
+ "showSuppressedSymbol": true,
172
+ "showZeroValueData": true,
173
+ "hideNullValue": true,
174
+ "useIntelligentLineChartLabels": true
175
+ },
176
+ "isLegendValue": false,
177
+ "barSpace": 15,
178
+ "heights": {
179
+ "vertical": 450,
180
+ "horizontal": 750
181
+ },
182
+ "columns": {},
183
+ "brush": {
184
+ "height": 45,
185
+ "active": false
186
+ },
187
+ "useLogScale": false,
188
+ "filterBehavior": "Filter Change",
189
+ "tooltips": {
190
+ "opacity": 90,
191
+ "singleSeries": false,
192
+ "dateDisplayFormat": ""
193
+ },
194
+ "version": "4.25.1"
195
+ }