@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,395 @@
1
+ {
2
+ "annotations": [],
3
+ "allowLineToBarGraph": "__​undefined__",
4
+ "type": "chart",
5
+ "debugSvg": false,
6
+ "chartMessage": {
7
+ "noData": "No Data Available"
8
+ },
9
+ "title": "Horizon Chart",
10
+ "titleStyle": "small",
11
+ "showTitle": true,
12
+ "showDownloadMediaButton": false,
13
+ "theme": "theme-blue",
14
+ "animate": false,
15
+ "lineDatapointStyle": "hover",
16
+ "lineDatapointColor": "Same as Line",
17
+ "barHasBorder": "true",
18
+ "isLollipopChart": false,
19
+ "lollipopShape": "circle",
20
+ "lollipopColorStyle": "two-tone",
21
+ "visualizationSubType": "stacked",
22
+ "barStyle": "",
23
+ "roundingStyle": "standard",
24
+ "tipRounding": "top",
25
+ "isResponsiveTicks": false,
26
+ "general": {
27
+ "annotationDropdownText": "Annotations",
28
+ "showMissingDataLabel": true,
29
+ "showSuppressedSymbol": true,
30
+ "showZeroValueData": true,
31
+ "hideNullValue": true,
32
+ "palette": {
33
+ "isReversed": false,
34
+ "version": "2.0",
35
+ "name": "sequential_blue"
36
+ },
37
+ "useIntelligentLineChartLabels": false
38
+ },
39
+ "padding": {
40
+ "left": 5,
41
+ "right": 5
42
+ },
43
+ "preliminaryData": [],
44
+ "yAxis": {
45
+ "hideAxis": false,
46
+ "displayNumbersOnBar": false,
47
+ "hideLabel": false,
48
+ "hideTicks": false,
49
+ "size": 50,
50
+ "gridLines": false,
51
+ "enablePadding": false,
52
+ "min": "",
53
+ "max": "",
54
+ "labelColor": "#1c1d1f",
55
+ "tickLabelColor": "#1c1d1f",
56
+ "tickColor": "#1c1d1f",
57
+ "rightHideAxis": false,
58
+ "rightAxisSize": 0,
59
+ "rightLabel": "",
60
+ "rightLabelOffsetSize": 0,
61
+ "rightAxisLabelColor": "#1c1d1f",
62
+ "rightAxisTickLabelColor": "#1c1d1f",
63
+ "rightAxisTickColor": "#1c1d1f",
64
+ "numTicks": "",
65
+ "axisPadding": 0,
66
+ "scalePadding": 10,
67
+ "tickRotation": 0,
68
+ "anchors": [],
69
+ "shoMissingDataLabel": true,
70
+ "showMissingDataLine": true,
71
+ "categories": [],
72
+ "type": "linear"
73
+ },
74
+ "boxplot": {
75
+ "plots": [],
76
+ "borders": "true",
77
+ "plotOutlierValues": false,
78
+ "plotNonOutlierValues": true,
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
+ "count": "Count",
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.35,
102
+ "barHeight": 25,
103
+ "barSpace": 15,
104
+ "heights": {
105
+ "vertical": 300,
106
+ "horizontal": 750
107
+ },
108
+ "xAxis": {
109
+ "sortDates": false,
110
+ "anchors": [],
111
+ "type": "date",
112
+ "dateParseFormat": "%m/%d/%Y",
113
+ "dateDisplayFormat": "%b %Y",
114
+ "showTargetLabel": true,
115
+ "targetLabel": "Target",
116
+ "hideAxis": false,
117
+ "hideLabel": false,
118
+ "hideTicks": false,
119
+ "size": 75,
120
+ "tickRotation": 0,
121
+ "min": "",
122
+ "max": "",
123
+ "labelColor": "#1c1d1f",
124
+ "tickLabelColor": "#1c1d1f",
125
+ "tickColor": "#1c1d1f",
126
+ "numTicks": "",
127
+ "labelOffset": 0,
128
+ "axisPadding": 200,
129
+ "target": 0,
130
+ "maxTickRotation": 0,
131
+ "padding": 5,
132
+ "showYearsOnce": false,
133
+ "sortByRecentDate": false,
134
+ "brushActive": false,
135
+ "brushDefaultRecentDateCount": "__​undefined__",
136
+ "dataKey": "Date",
137
+ "axisBBox": 29.360000610351562,
138
+ "tickWidthMax": 86
139
+ },
140
+ "table": {
141
+ "label": "Data Table",
142
+ "expanded": false,
143
+ "limitHeight": true,
144
+ "height": "",
145
+ "caption": "",
146
+ "showDownloadUrl": false,
147
+ "showDataTableLink": true,
148
+ "showDownloadLinkBelow": true,
149
+ "indexLabel": "",
150
+ "download": true,
151
+ "showVertical": true,
152
+ "dateDisplayFormat": "",
153
+ "showMissingDataLabel": true,
154
+ "showSuppressedSymbol": true,
155
+ "collapsible": true,
156
+ "show": true
157
+ },
158
+ "orientation": "vertical",
159
+ "columns": {},
160
+ "legend": {
161
+ "hide": false,
162
+ "behavior": "isolate",
163
+ "axisAlign": true,
164
+ "singleRow": true,
165
+ "colorCode": "",
166
+ "reverseLabelOrder": false,
167
+ "description": "",
168
+ "dynamicLegend": false,
169
+ "dynamicLegendDefaultText": "Show All",
170
+ "dynamicLegendItemLimit": 5,
171
+ "dynamicLegendItemLimitMessage": "Dynamic Legend Item Limit Hit.",
172
+ "dynamicLegendChartMessage": "Select Options from the Legend",
173
+ "label": "",
174
+ "lineMode": false,
175
+ "verticalSorted": false,
176
+ "highlightOnHover": false,
177
+ "hideSuppressedLabels": false,
178
+ "hideSuppressionLink": false,
179
+ "seriesHighlight": [],
180
+ "style": "circles",
181
+ "subStyle": "linear blocks",
182
+ "groupBy": "",
183
+ "shape": "circle",
184
+ "tickRotation": "",
185
+ "order": "dataColumn",
186
+ "hideBorder": {
187
+ "side": false,
188
+ "topBottom": true
189
+ },
190
+ "position": "right",
191
+ "orderedValues": [],
192
+ "patterns": {},
193
+ "patternField": "",
194
+ "unified": true
195
+ },
196
+ "smallMultiples": {
197
+ "mode": "",
198
+ "tileColumn": "",
199
+ "tilesPerRowDesktop": 3,
200
+ "tilesPerRowMobile": 1,
201
+ "tileOrder": [],
202
+ "tileOrderType": "asc",
203
+ "tileTitles": {},
204
+ "independentYAxis": false,
205
+ "colorMode": "same",
206
+ "synchronizedTooltips": true,
207
+ "showAreaUnderLine": true
208
+ },
209
+ "exclusions": {
210
+ "active": false,
211
+ "keys": []
212
+ },
213
+ "twoColor": {
214
+ "palette": "monochrome-1",
215
+ "isPaletteReversed": false
216
+ },
217
+ "labels": false,
218
+ "dataFormat": {
219
+ "commas": false,
220
+ "prefix": "",
221
+ "suffix": "",
222
+ "abbreviated": false,
223
+ "bottomSuffix": "",
224
+ "bottomPrefix": "",
225
+ "bottomAbbreviated": false
226
+ },
227
+ "filters": [],
228
+ "confidenceKeys": {},
229
+ "visual": {
230
+ "border": true,
231
+ "accent": true,
232
+ "background": true,
233
+ "verticalHoverLine": false,
234
+ "horizontalHoverLine": false,
235
+ "lineDatapointSymbol": "none",
236
+ "maximumShapeAmount": 7
237
+ },
238
+ "useLogScale": false,
239
+ "filterBehavior": "Filter Change",
240
+ "highlightedBarValues": [],
241
+ "series": [
242
+ {
243
+ "dataKey": "Data 1",
244
+ "type": "Horizon Chart",
245
+ "axis": "Left",
246
+ "tooltip": true
247
+ },
248
+ {
249
+ "dataKey": "Data 2",
250
+ "type": "Horizon Chart",
251
+ "axis": "Left",
252
+ "tooltip": true
253
+ },
254
+ {
255
+ "dataKey": "Data 3",
256
+ "type": "Horizon Chart",
257
+ "axis": "Left",
258
+ "tooltip": true
259
+ },
260
+ {
261
+ "dataKey": "Data 4",
262
+ "type": "Horizon Chart",
263
+ "axis": "Left",
264
+ "tooltip": true
265
+ }
266
+ ],
267
+ "tooltips": {
268
+ "opacity": 90,
269
+ "singleSeries": false,
270
+ "dateDisplayFormat": ""
271
+ },
272
+ "horizon": {
273
+ "numLayers": 5,
274
+ "mode": "offset",
275
+ "bandGap": 15,
276
+ "bottomPadding": 15
277
+ },
278
+ "forestPlot": {
279
+ "startAt": 0,
280
+ "colors": {
281
+ "line": "",
282
+ "shape": ""
283
+ },
284
+ "lineOfNoEffect": {
285
+ "show": true
286
+ },
287
+ "type": "",
288
+ "pooledResult": {
289
+ "diamondHeight": 5,
290
+ "column": ""
291
+ },
292
+ "estimateField": "",
293
+ "estimateRadius": "",
294
+ "shape": "square",
295
+ "rowHeight": 20,
296
+ "description": {
297
+ "show": true,
298
+ "text": "description",
299
+ "location": 0
300
+ },
301
+ "result": {
302
+ "show": true,
303
+ "text": "result",
304
+ "location": 100
305
+ },
306
+ "radius": {
307
+ "min": 2,
308
+ "max": 10,
309
+ "scalingColumn": ""
310
+ },
311
+ "regression": {
312
+ "lower": 0,
313
+ "upper": 0,
314
+ "estimateField": 0
315
+ },
316
+ "leftWidthOffset": 0,
317
+ "rightWidthOffset": 0,
318
+ "showZeroLine": false,
319
+ "leftLabel": "",
320
+ "rightLabel": ""
321
+ },
322
+ "area": {
323
+ "isStacked": false
324
+ },
325
+ "sankey": {
326
+ "title": {
327
+ "defaultColor": "black"
328
+ },
329
+ "iterations": 1,
330
+ "rxValue": 0.9,
331
+ "overallSize": {
332
+ "width": 900,
333
+ "height": 700
334
+ },
335
+ "margin": {
336
+ "margin_y": 25,
337
+ "margin_x": 0
338
+ },
339
+ "nodeSize": {
340
+ "nodeWidth": 26,
341
+ "nodeHeight": 40
342
+ },
343
+ "nodePadding": 55,
344
+ "nodeFontColor": "black",
345
+ "nodeColor": {
346
+ "default": "#ff8500",
347
+ "inactive": "#808080"
348
+ },
349
+ "linkColor": {
350
+ "default": "#ffc900",
351
+ "inactive": "#D3D3D3"
352
+ },
353
+ "opacity": {
354
+ "nodeOpacityDefault": 1,
355
+ "nodeOpacityInactive": 0.1,
356
+ "LinkOpacityDefault": 1,
357
+ "LinkOpacityInactive": 0.1
358
+ },
359
+ "storyNodeFontColor": "#006778",
360
+ "storyNodeText": [],
361
+ "nodeValueStyle": {
362
+ "textBefore": "(",
363
+ "textAfter": ")"
364
+ },
365
+ "data": []
366
+ },
367
+ "markupVariables": [],
368
+ "enableMarkupVariables": false,
369
+ "errors": [],
370
+ "currentViewport": "lg",
371
+ "id": 6,
372
+ "category": "Charts",
373
+ "label": "Horizon Chart",
374
+ "subType": "Horizon Chart",
375
+ "icon": {
376
+ "type": {},
377
+ "key": null,
378
+ "ref": null,
379
+ "props": {},
380
+ "_owner": null,
381
+ "_store": {}
382
+ },
383
+ "content": "Display a horizon chart to visualize quantities over time in a smaller space.",
384
+ "visualizationType": "Horizon Chart",
385
+ "activeVizButtonID": 6,
386
+ "dataUrl": "/examples/feature/__data__/horizon-chart-data.json",
387
+ "dataFileName": "./horizon-chart-data.json",
388
+ "dataFileSourceType": "file",
389
+ "formattedData": null,
390
+ "version": "4.26.2",
391
+ "migrations": {
392
+ "addColorMigration": true
393
+ },
394
+ "dynamicMarginTop": 0
395
+ }
@@ -1,6 +1,52 @@
1
1
  {
2
2
  "title": "Planet Radius (Pie Example)",
3
- "dataUrl": "/examples/feature/__data__/planet-example-data.json",
3
+ "data": [
4
+ {
5
+ "name": "Jupiter",
6
+ "radius": "10.97",
7
+ "distance": "0"
8
+ },
9
+ {
10
+ "name": "Saturn",
11
+ "radius": "9.14",
12
+ "distance": "0"
13
+ },
14
+ {
15
+ "name": "Uranus",
16
+ "radius": "3.98",
17
+ "distance": "0"
18
+ },
19
+ {
20
+ "name": "Neptune",
21
+ "radius": "3.86",
22
+ "distance": "0"
23
+ },
24
+ {
25
+ "name": "Earth",
26
+ "radius": "1",
27
+ "distance": "0"
28
+ },
29
+ {
30
+ "name": "Venus",
31
+ "radius": "0.950",
32
+ "distance": "0"
33
+ },
34
+ {
35
+ "name": "Mars",
36
+ "radius": "0.532",
37
+ "distance": "0"
38
+ },
39
+ {
40
+ "name": "Mercury",
41
+ "radius": "0.383",
42
+ "distance": "0"
43
+ },
44
+ {
45
+ "name": "Pluto",
46
+ "radius": "0.181",
47
+ "distance": "01"
48
+ }
49
+ ],
4
50
  "animate": false,
5
51
  "animateReplay": true,
6
52
  "visualizationType": "Pie",
@@ -14,7 +60,7 @@
14
60
  },
15
61
  "yAxis": {
16
62
  "label": "Radius",
17
- "dataKey": "Radius"
63
+ "dataKey": "radius"
18
64
  },
19
65
  "xAxis": {
20
66
  "label": "Planet",