@cdc/chart 4.25.11 → 4.26.1
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/dist/cdcchart.js +38898 -40013
- package/examples/feature/pie/planet-pie-example-config.json +48 -2
- package/examples/private/DEV-12100.json +1303 -0
- package/examples/private/cat-y.json +1235 -0
- package/examples/private/data-points.json +228 -0
- package/examples/private/height.json +3915 -0
- package/examples/private/links.json +569 -0
- package/examples/private/quadrant.txt +30 -0
- package/examples/private/test-forecast.json +5510 -0
- package/examples/private/warming-stripe-test.json +2578 -0
- package/examples/private/warming-stripes.json +4763 -0
- package/examples/tech-adoption-with-links.json +560 -0
- package/index.html +15 -20
- package/package.json +5 -4
- package/preview.html +1616 -0
- package/src/CdcChartComponent.tsx +111 -75
- package/src/_stories/Chart.Regions.Categorical.stories.tsx +148 -0
- package/src/_stories/Chart.Regions.DateScale.stories.tsx +197 -0
- package/src/_stories/Chart.Regions.DateTimeScale.stories.tsx +297 -0
- package/src/_stories/Chart.stories.tsx +8 -0
- package/src/_stories/ChartBar.Editor.stories.tsx +11 -6
- package/src/_stories/ChartBrush.Editor.stories.tsx +295 -0
- package/src/_stories/ChartBrush.stories.tsx +50 -0
- package/src/_stories/ChartEditor.Editor.stories.tsx +3 -5
- package/src/_stories/TechAdoptionWithLinks.stories.tsx +27 -0
- package/src/_stories/_mock/brush_enabled.json +326 -0
- package/src/_stories/_mock/brush_mock.json +2 -69
- package/src/_stories/_mock/horizontal-bars-dynamic-y-axis.json +413 -0
- package/src/components/AreaChart/components/AreaChart.Stacked.jsx +1 -2
- package/src/components/Axis/Categorical.Axis.tsx +6 -7
- package/src/components/BarChart/components/BarChart.Horizontal.tsx +178 -24
- package/src/components/BarChart/components/BarChart.StackedHorizontal.tsx +3 -1
- package/src/components/BarChart/components/BarChart.StackedVertical.tsx +1 -0
- package/src/components/BarChart/components/BarChart.Vertical.tsx +6 -8
- package/src/components/BarChart/components/context.tsx +1 -0
- package/src/components/BarChart/helpers/useBarChart.ts +14 -2
- package/src/components/Brush/BrushSelector.tsx +1258 -0
- package/src/components/Brush/MiniChartPreview.tsx +283 -0
- package/src/components/DeviationBar.jsx +9 -7
- package/src/components/EditorPanel/EditorPanel.tsx +2711 -2586
- package/src/components/EditorPanel/components/Panels/Panel.ForestPlotSettings.tsx +56 -34
- package/src/components/EditorPanel/components/Panels/Panel.General.tsx +57 -30
- package/src/components/EditorPanel/components/Panels/Panel.PatternSettings.tsx +2 -0
- package/src/components/EditorPanel/components/Panels/Panel.SmallMultiples.tsx +30 -25
- package/src/components/EditorPanel/components/Panels/Panel.Visual.tsx +21 -27
- package/src/components/EditorPanel/useEditorPermissions.ts +31 -18
- package/src/components/Legend/Legend.tsx +3 -2
- package/src/components/Legend/helpers/createFormatLabels.tsx +151 -2
- package/src/components/Legend/helpers/index.ts +10 -6
- package/src/components/LinearChart.tsx +495 -430
- package/src/components/PairedBarChart.jsx +20 -3
- package/src/components/Regions/components/Regions.tsx +365 -122
- package/src/components/ScatterPlot/ScatterPlot.jsx +2 -2
- package/src/components/SmallMultiples/SmallMultipleTile.tsx +5 -1
- package/src/components/WarmingStripes/WarmingStripes.tsx +160 -0
- package/src/components/WarmingStripes/WarmingStripesGradientLegend.css +35 -0
- package/src/components/WarmingStripes/WarmingStripesGradientLegend.tsx +104 -0
- package/src/components/WarmingStripes/index.tsx +3 -0
- package/src/data/initial-state.js +3 -1
- package/src/helpers/calculateHorizontalBarCategoryLabelWidth.ts +57 -0
- package/src/helpers/getMinMax.ts +12 -7
- package/src/helpers/sizeHelpers.ts +0 -20
- package/src/helpers/smallMultiplesHelpers.ts +1 -1
- package/src/hooks/useChartHoverAnalytics.tsx +10 -9
- package/src/hooks/useScales.ts +11 -1
- package/src/hooks/useTooltip.tsx +31 -10
- package/src/scss/DataTable.scss +0 -4
- package/src/scss/main.scss +17 -3
- package/src/test/CdcChart.test.jsx +1 -1
- package/src/types/ChartConfig.ts +3 -0
- package/src/types/Label.ts +1 -0
- package/src/utils/analyticsTracking.ts +19 -0
- package/LICENSE +0 -201
- package/src/components/Brush/BrushChart.tsx +0 -128
- package/src/components/Brush/BrushController.tsx +0 -71
- package/src/components/Brush/types.tsx +0 -8
- package/src/components/BrushChart.tsx +0 -223
|
@@ -1,6 +1,52 @@
|
|
|
1
1
|
{
|
|
2
2
|
"title": "Planet Radius (Pie Example)",
|
|
3
|
-
"
|
|
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": "
|
|
63
|
+
"dataKey": "radius"
|
|
18
64
|
},
|
|
19
65
|
"xAxis": {
|
|
20
66
|
"label": "Planet",
|