@mui/x-charts 8.0.0-alpha.13 → 8.0.0-alpha.14
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/BarChart/BarPlot.js +10 -7
- package/BarChart/checkScaleErrors.d.ts +4 -1
- package/BarChart/checkScaleErrors.js +7 -1
- package/BarChart/seriesConfig/extremums.d.ts +1 -1
- package/BarChart/seriesConfig/getSeriesWithDefaultValues.d.ts +3 -0
- package/{internals/defaultizeColor.js → BarChart/seriesConfig/getSeriesWithDefaultValues.js} +6 -11
- package/BarChart/seriesConfig/index.js +3 -1
- package/CHANGELOG.md +131 -0
- package/ChartContainer/ChartContainer.d.ts +1 -1
- package/ChartContainer/ChartContainer.js +107 -0
- package/ChartContainer/useChartContainerProps.d.ts +1 -1
- package/ChartContainer/useChartContainerProps.js +6 -2
- package/ChartDataProvider/useChartDataProviderProps.d.ts +1 -1
- package/ChartsXAxis/ChartsXAxis.js +38 -8
- package/ChartsYAxis/ChartsYAxis.js +12 -7
- package/LineChart/LinePlot.js +2 -1
- package/LineChart/seriesConfig/extremums.d.ts +1 -1
- package/LineChart/seriesConfig/getSeriesWithDefaultValues.d.ts +3 -0
- package/LineChart/seriesConfig/getSeriesWithDefaultValues.js +15 -0
- package/LineChart/seriesConfig/index.js +3 -1
- package/PieChart/seriesConfig/getSeriesWithDefaultValues.d.ts +3 -0
- package/PieChart/seriesConfig/getSeriesWithDefaultValues.js +18 -0
- package/PieChart/seriesConfig/index.js +3 -1
- package/RadarChart/RadarChart.d.ts +24 -0
- package/RadarChart/RadarChart.js +150 -0
- package/RadarChart/RadarDataProvider/RadarDataProvider.d.ts +24 -0
- package/RadarChart/RadarDataProvider/RadarDataProvider.js +168 -0
- package/RadarChart/RadarDataProvider/index.d.ts +1 -0
- package/RadarChart/RadarDataProvider/index.js +16 -0
- package/RadarChart/RadarDataProvider/radar.types.d.ts +32 -0
- package/RadarChart/RadarGrid/RadarGrid.d.ts +13 -0
- package/RadarChart/RadarGrid/RadarGrid.js +51 -0
- package/RadarChart/RadarGrid/index.d.ts +1 -0
- package/RadarChart/RadarGrid/index.js +16 -0
- package/RadarChart/RadarGrid/useRadarGridData.d.ts +10 -0
- package/RadarChart/RadarGrid/useRadarGridData.js +35 -0
- package/RadarChart/RadarSeriesPlot/RadarSeriesArea.d.ts +7 -0
- package/RadarChart/RadarSeriesPlot/RadarSeriesArea.js +46 -0
- package/RadarChart/RadarSeriesPlot/RadarSeriesMarks.d.ts +7 -0
- package/RadarChart/RadarSeriesPlot/RadarSeriesMarks.js +45 -0
- package/RadarChart/RadarSeriesPlot/RadarSeriesPlot.d.ts +7 -0
- package/RadarChart/RadarSeriesPlot/RadarSeriesPlot.js +48 -0
- package/RadarChart/RadarSeriesPlot/RadarSeriesPlot.types.d.ts +12 -0
- package/RadarChart/RadarSeriesPlot/getAreaPath.d.ts +4 -0
- package/RadarChart/RadarSeriesPlot/getAreaPath.js +9 -0
- package/RadarChart/RadarSeriesPlot/index.d.ts +4 -0
- package/RadarChart/RadarSeriesPlot/index.js +38 -0
- package/RadarChart/RadarSeriesPlot/useRadarSeriesData.d.ts +27 -0
- package/RadarChart/RadarSeriesPlot/useRadarSeriesData.js +67 -0
- package/RadarChart/index.d.ts +6 -0
- package/RadarChart/index.js +47 -0
- package/RadarChart/seriesConfig/extremums.d.ts +3 -0
- package/RadarChart/seriesConfig/extremums.js +26 -0
- package/RadarChart/seriesConfig/formatter.d.ts +3 -0
- package/RadarChart/seriesConfig/formatter.js +18 -0
- package/RadarChart/seriesConfig/getColor.d.ts +3 -0
- package/RadarChart/seriesConfig/getColor.js +10 -0
- package/RadarChart/seriesConfig/getSeriesWithDefaultValues.d.ts +3 -0
- package/RadarChart/seriesConfig/getSeriesWithDefaultValues.js +15 -0
- package/RadarChart/seriesConfig/index.d.ts +2 -0
- package/RadarChart/seriesConfig/index.js +22 -0
- package/RadarChart/seriesConfig/legend.d.ts +3 -0
- package/RadarChart/seriesConfig/legend.js +28 -0
- package/RadarChart/seriesConfig/tooltip.d.ts +3 -0
- package/RadarChart/seriesConfig/tooltip.js +31 -0
- package/RadarChart/useRadarChartProps.d.ts +23 -0
- package/RadarChart/useRadarChartProps.js +74 -0
- package/ScatterChart/seriesConfig/extremums.d.ts +1 -1
- package/ScatterChart/seriesConfig/getSeriesWithDefaultValues.d.ts +3 -0
- package/ScatterChart/seriesConfig/getSeriesWithDefaultValues.js +15 -0
- package/ScatterChart/seriesConfig/index.js +3 -1
- package/SparkLineChart/SparkLineChart.d.ts +1 -1
- package/constants/index.d.ts +3 -6
- package/constants/index.js +6 -7
- package/esm/BarChart/BarPlot.js +10 -7
- package/esm/BarChart/checkScaleErrors.d.ts +4 -1
- package/esm/BarChart/checkScaleErrors.js +7 -1
- package/esm/BarChart/seriesConfig/extremums.d.ts +1 -1
- package/esm/BarChart/seriesConfig/getSeriesWithDefaultValues.d.ts +3 -0
- package/esm/BarChart/seriesConfig/getSeriesWithDefaultValues.js +8 -0
- package/esm/BarChart/seriesConfig/index.js +3 -1
- package/esm/ChartContainer/ChartContainer.d.ts +1 -1
- package/esm/ChartContainer/ChartContainer.js +107 -0
- package/esm/ChartContainer/useChartContainerProps.d.ts +1 -1
- package/esm/ChartContainer/useChartContainerProps.js +6 -2
- package/esm/ChartDataProvider/useChartDataProviderProps.d.ts +1 -1
- package/esm/ChartsXAxis/ChartsXAxis.js +38 -8
- package/esm/ChartsYAxis/ChartsYAxis.js +13 -8
- package/esm/LineChart/LinePlot.js +2 -1
- package/esm/LineChart/seriesConfig/extremums.d.ts +1 -1
- package/esm/LineChart/seriesConfig/getSeriesWithDefaultValues.d.ts +3 -0
- package/esm/LineChart/seriesConfig/getSeriesWithDefaultValues.js +8 -0
- package/esm/LineChart/seriesConfig/index.js +3 -1
- package/esm/PieChart/seriesConfig/getSeriesWithDefaultValues.d.ts +3 -0
- package/esm/PieChart/seriesConfig/getSeriesWithDefaultValues.js +11 -0
- package/esm/PieChart/seriesConfig/index.js +3 -1
- package/esm/RadarChart/RadarChart.d.ts +24 -0
- package/esm/RadarChart/RadarChart.js +144 -0
- package/esm/RadarChart/RadarDataProvider/RadarDataProvider.d.ts +24 -0
- package/esm/RadarChart/RadarDataProvider/RadarDataProvider.js +162 -0
- package/esm/RadarChart/RadarDataProvider/index.d.ts +1 -0
- package/esm/RadarChart/RadarDataProvider/index.js +1 -0
- package/esm/RadarChart/RadarDataProvider/radar.types.d.ts +32 -0
- package/esm/RadarChart/RadarGrid/RadarGrid.d.ts +13 -0
- package/esm/RadarChart/RadarGrid/RadarGrid.js +44 -0
- package/esm/RadarChart/RadarGrid/index.d.ts +1 -0
- package/esm/RadarChart/RadarGrid/index.js +1 -0
- package/esm/RadarChart/RadarGrid/useRadarGridData.d.ts +10 -0
- package/esm/RadarChart/RadarGrid/useRadarGridData.js +29 -0
- package/esm/RadarChart/RadarSeriesPlot/RadarSeriesArea.d.ts +7 -0
- package/esm/RadarChart/RadarSeriesPlot/RadarSeriesArea.js +39 -0
- package/esm/RadarChart/RadarSeriesPlot/RadarSeriesMarks.d.ts +7 -0
- package/esm/RadarChart/RadarSeriesPlot/RadarSeriesMarks.js +38 -0
- package/esm/RadarChart/RadarSeriesPlot/RadarSeriesPlot.d.ts +7 -0
- package/esm/RadarChart/RadarSeriesPlot/RadarSeriesPlot.js +41 -0
- package/esm/RadarChart/RadarSeriesPlot/RadarSeriesPlot.types.d.ts +12 -0
- package/esm/RadarChart/RadarSeriesPlot/getAreaPath.d.ts +4 -0
- package/esm/RadarChart/RadarSeriesPlot/getAreaPath.js +3 -0
- package/esm/RadarChart/RadarSeriesPlot/index.d.ts +4 -0
- package/esm/RadarChart/RadarSeriesPlot/index.js +3 -0
- package/esm/RadarChart/RadarSeriesPlot/useRadarSeriesData.d.ts +27 -0
- package/esm/RadarChart/RadarSeriesPlot/useRadarSeriesData.js +60 -0
- package/esm/RadarChart/index.d.ts +6 -0
- package/esm/RadarChart/index.js +4 -0
- package/esm/RadarChart/seriesConfig/extremums.d.ts +3 -0
- package/esm/RadarChart/seriesConfig/extremums.js +18 -0
- package/esm/RadarChart/seriesConfig/formatter.d.ts +3 -0
- package/esm/RadarChart/seriesConfig/formatter.js +12 -0
- package/esm/RadarChart/seriesConfig/getColor.d.ts +3 -0
- package/esm/RadarChart/seriesConfig/getColor.js +4 -0
- package/esm/RadarChart/seriesConfig/getSeriesWithDefaultValues.d.ts +3 -0
- package/esm/RadarChart/seriesConfig/getSeriesWithDefaultValues.js +8 -0
- package/esm/RadarChart/seriesConfig/index.d.ts +2 -0
- package/esm/RadarChart/seriesConfig/index.js +15 -0
- package/esm/RadarChart/seriesConfig/legend.d.ts +3 -0
- package/esm/RadarChart/seriesConfig/legend.js +22 -0
- package/esm/RadarChart/seriesConfig/tooltip.d.ts +3 -0
- package/esm/RadarChart/seriesConfig/tooltip.js +25 -0
- package/esm/RadarChart/useRadarChartProps.d.ts +23 -0
- package/esm/RadarChart/useRadarChartProps.js +67 -0
- package/esm/ScatterChart/seriesConfig/extremums.d.ts +1 -1
- package/esm/ScatterChart/seriesConfig/getSeriesWithDefaultValues.d.ts +3 -0
- package/esm/ScatterChart/seriesConfig/getSeriesWithDefaultValues.js +8 -0
- package/esm/ScatterChart/seriesConfig/index.js +3 -1
- package/esm/SparkLineChart/SparkLineChart.d.ts +1 -1
- package/esm/constants/index.d.ts +3 -6
- package/esm/constants/index.js +5 -6
- package/esm/hooks/useAxis.d.ts +11 -1
- package/esm/hooks/useAxis.js +41 -0
- package/esm/hooks/useRadarSeries.d.ts +35 -0
- package/esm/hooks/useRadarSeries.js +42 -0
- package/esm/hooks/useScale.d.ts +3 -1
- package/esm/hooks/useScale.js +9 -1
- package/esm/hooks/useTicks.js +17 -11
- package/esm/index.d.ts +1 -0
- package/esm/index.js +2 -1
- package/esm/internals/clampAngle.d.ts +2 -0
- package/esm/internals/clampAngle.js +4 -0
- package/esm/internals/components/AxisSharedComponents.js +2 -2
- package/esm/internals/configInit.d.ts +11 -4
- package/esm/internals/configInit.js +22 -4
- package/esm/internals/index.d.ts +5 -0
- package/esm/internals/index.js +5 -0
- package/esm/internals/invertTextAnchor.d.ts +2 -0
- package/esm/internals/invertTextAnchor.js +10 -0
- package/esm/internals/isPolar.d.ts +7 -0
- package/esm/internals/isPolar.js +7 -0
- package/esm/internals/plugins/allPlugins.d.ts +3 -2
- package/esm/internals/plugins/allPlugins.js +2 -1
- package/esm/internals/plugins/corePlugins/useChartSeries/processSeries.js +7 -13
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/computeAxisValue.js +5 -2
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/defaultizeAxis.d.ts +2 -2
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/defaultizeAxis.js +59 -19
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/index.d.ts +1 -1
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/index.js +1 -1
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxis.js +5 -5
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxis.types.d.ts +0 -18
- package/esm/internals/plugins/featurePlugins/useChartInteraction/useChartInteraction.selectors.d.ts +10 -10
- package/esm/internals/plugins/featurePlugins/useChartPolarAxis/computeAxisValue.d.ts +27 -0
- package/esm/internals/plugins/featurePlugins/useChartPolarAxis/computeAxisValue.js +133 -0
- package/esm/internals/plugins/featurePlugins/useChartPolarAxis/defaultizeAxis.d.ts +5 -0
- package/esm/internals/plugins/featurePlugins/useChartPolarAxis/defaultizeAxis.js +24 -0
- package/esm/internals/plugins/featurePlugins/useChartPolarAxis/getAxisExtremum.d.ts +5 -0
- package/esm/internals/plugins/featurePlugins/useChartPolarAxis/getAxisExtremum.js +21 -0
- package/esm/internals/plugins/featurePlugins/useChartPolarAxis/index.d.ts +3 -0
- package/esm/internals/plugins/featurePlugins/useChartPolarAxis/index.js +2 -0
- package/esm/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.d.ts +3 -0
- package/esm/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.js +57 -0
- package/esm/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.selectors.d.ts +1453 -0
- package/esm/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.selectors.js +26 -0
- package/esm/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.types.d.ts +55 -0
- package/esm/internals/plugins/models/seriesConfig/getSeriesWithDefaultValues.types.d.ts +3 -0
- package/esm/internals/plugins/models/seriesConfig/getSeriesWithDefaultValues.types.js +1 -0
- package/esm/internals/plugins/models/seriesConfig/index.d.ts +4 -2
- package/esm/internals/plugins/models/seriesConfig/index.js +4 -2
- package/esm/internals/plugins/models/seriesConfig/polarExtremumGetter.types.d.ts +16 -0
- package/esm/internals/plugins/models/seriesConfig/polarExtremumGetter.types.js +1 -0
- package/esm/internals/plugins/models/seriesConfig/seriesConfig.types.d.ts +8 -2
- package/esm/internals/stackSeries.d.ts +4 -6
- package/esm/models/axis.d.ts +27 -12
- package/esm/models/axis.js +4 -0
- package/esm/models/seriesType/config.d.ts +19 -9
- package/esm/models/seriesType/index.d.ts +1 -0
- package/esm/models/seriesType/index.js +1 -0
- package/esm/models/seriesType/radar.d.ts +24 -0
- package/esm/models/seriesType/radar.js +1 -0
- package/hooks/useAxis.d.ts +11 -1
- package/hooks/useAxis.js +45 -0
- package/hooks/useRadarSeries.d.ts +35 -0
- package/hooks/useRadarSeries.js +48 -0
- package/hooks/useScale.d.ts +3 -1
- package/hooks/useScale.js +10 -0
- package/hooks/useTicks.js +17 -11
- package/index.d.ts +1 -0
- package/index.js +12 -1
- package/internals/clampAngle.d.ts +2 -0
- package/internals/clampAngle.js +10 -0
- package/internals/components/AxisSharedComponents.js +2 -2
- package/internals/configInit.d.ts +11 -4
- package/internals/configInit.js +23 -5
- package/internals/index.d.ts +5 -0
- package/internals/index.js +60 -0
- package/internals/invertTextAnchor.d.ts +2 -0
- package/internals/invertTextAnchor.js +16 -0
- package/internals/isPolar.d.ts +7 -0
- package/internals/isPolar.js +14 -0
- package/internals/plugins/allPlugins.d.ts +3 -2
- package/internals/plugins/allPlugins.js +2 -1
- package/internals/plugins/corePlugins/useChartSeries/processSeries.js +7 -14
- package/internals/plugins/featurePlugins/useChartCartesianAxis/computeAxisValue.js +5 -2
- package/internals/plugins/featurePlugins/useChartCartesianAxis/defaultizeAxis.d.ts +2 -2
- package/internals/plugins/featurePlugins/useChartCartesianAxis/defaultizeAxis.js +60 -19
- package/internals/plugins/featurePlugins/useChartCartesianAxis/index.d.ts +1 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/index.js +10 -3
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxis.js +4 -4
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxis.types.d.ts +0 -18
- package/internals/plugins/featurePlugins/useChartInteraction/useChartInteraction.selectors.d.ts +10 -10
- package/internals/plugins/featurePlugins/useChartPolarAxis/computeAxisValue.d.ts +27 -0
- package/internals/plugins/featurePlugins/useChartPolarAxis/computeAxisValue.js +140 -0
- package/internals/plugins/featurePlugins/useChartPolarAxis/defaultizeAxis.d.ts +5 -0
- package/internals/plugins/featurePlugins/useChartPolarAxis/defaultizeAxis.js +31 -0
- package/internals/plugins/featurePlugins/useChartPolarAxis/getAxisExtremum.d.ts +5 -0
- package/internals/plugins/featurePlugins/useChartPolarAxis/getAxisExtremum.js +28 -0
- package/internals/plugins/featurePlugins/useChartPolarAxis/index.d.ts +3 -0
- package/internals/plugins/featurePlugins/useChartPolarAxis/index.js +27 -0
- package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.d.ts +3 -0
- package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.js +65 -0
- package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.selectors.d.ts +1453 -0
- package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.selectors.js +33 -0
- package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.types.d.ts +55 -0
- package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.types.js +5 -0
- package/internals/plugins/models/seriesConfig/cartesianExtremumGetter.types.js +5 -0
- package/internals/plugins/models/seriesConfig/getSeriesWithDefaultValues.types.d.ts +3 -0
- package/internals/plugins/models/seriesConfig/getSeriesWithDefaultValues.types.js +5 -0
- package/internals/plugins/models/seriesConfig/index.d.ts +4 -2
- package/internals/plugins/models/seriesConfig/index.js +26 -4
- package/internals/plugins/models/seriesConfig/polarExtremumGetter.types.d.ts +16 -0
- package/internals/plugins/models/seriesConfig/polarExtremumGetter.types.js +5 -0
- package/internals/plugins/models/seriesConfig/seriesConfig.types.d.ts +8 -2
- package/internals/stackSeries.d.ts +4 -6
- package/models/axis.d.ts +27 -12
- package/models/axis.js +4 -0
- package/models/seriesType/config.d.ts +19 -9
- package/models/seriesType/index.d.ts +1 -0
- package/models/seriesType/index.js +12 -0
- package/models/seriesType/radar.d.ts +24 -0
- package/models/seriesType/radar.js +5 -0
- package/modern/BarChart/BarPlot.js +10 -7
- package/modern/BarChart/checkScaleErrors.d.ts +4 -1
- package/modern/BarChart/checkScaleErrors.js +7 -1
- package/modern/BarChart/seriesConfig/extremums.d.ts +1 -1
- package/modern/BarChart/seriesConfig/getSeriesWithDefaultValues.d.ts +3 -0
- package/modern/BarChart/seriesConfig/getSeriesWithDefaultValues.js +8 -0
- package/modern/BarChart/seriesConfig/index.js +3 -1
- package/modern/ChartContainer/ChartContainer.d.ts +1 -1
- package/modern/ChartContainer/ChartContainer.js +107 -0
- package/modern/ChartContainer/useChartContainerProps.d.ts +1 -1
- package/modern/ChartContainer/useChartContainerProps.js +6 -2
- package/modern/ChartDataProvider/useChartDataProviderProps.d.ts +1 -1
- package/modern/ChartsXAxis/ChartsXAxis.js +38 -8
- package/modern/ChartsYAxis/ChartsYAxis.js +13 -8
- package/modern/LineChart/LinePlot.js +2 -1
- package/modern/LineChart/seriesConfig/extremums.d.ts +1 -1
- package/modern/LineChart/seriesConfig/getSeriesWithDefaultValues.d.ts +3 -0
- package/modern/LineChart/seriesConfig/getSeriesWithDefaultValues.js +8 -0
- package/modern/LineChart/seriesConfig/index.js +3 -1
- package/modern/PieChart/seriesConfig/getSeriesWithDefaultValues.d.ts +3 -0
- package/modern/PieChart/seriesConfig/getSeriesWithDefaultValues.js +11 -0
- package/modern/PieChart/seriesConfig/index.js +3 -1
- package/modern/RadarChart/RadarChart.d.ts +24 -0
- package/modern/RadarChart/RadarChart.js +144 -0
- package/modern/RadarChart/RadarDataProvider/RadarDataProvider.d.ts +24 -0
- package/modern/RadarChart/RadarDataProvider/RadarDataProvider.js +162 -0
- package/modern/RadarChart/RadarDataProvider/index.d.ts +1 -0
- package/modern/RadarChart/RadarDataProvider/index.js +1 -0
- package/modern/RadarChart/RadarDataProvider/radar.types.d.ts +32 -0
- package/modern/RadarChart/RadarDataProvider/radar.types.js +1 -0
- package/modern/RadarChart/RadarGrid/RadarGrid.d.ts +13 -0
- package/modern/RadarChart/RadarGrid/RadarGrid.js +44 -0
- package/modern/RadarChart/RadarGrid/index.d.ts +1 -0
- package/modern/RadarChart/RadarGrid/index.js +1 -0
- package/modern/RadarChart/RadarGrid/useRadarGridData.d.ts +10 -0
- package/modern/RadarChart/RadarGrid/useRadarGridData.js +29 -0
- package/modern/RadarChart/RadarSeriesPlot/RadarSeriesArea.d.ts +7 -0
- package/modern/RadarChart/RadarSeriesPlot/RadarSeriesArea.js +39 -0
- package/modern/RadarChart/RadarSeriesPlot/RadarSeriesMarks.d.ts +7 -0
- package/modern/RadarChart/RadarSeriesPlot/RadarSeriesMarks.js +38 -0
- package/modern/RadarChart/RadarSeriesPlot/RadarSeriesPlot.d.ts +7 -0
- package/modern/RadarChart/RadarSeriesPlot/RadarSeriesPlot.js +41 -0
- package/modern/RadarChart/RadarSeriesPlot/RadarSeriesPlot.types.d.ts +12 -0
- package/modern/RadarChart/RadarSeriesPlot/RadarSeriesPlot.types.js +1 -0
- package/modern/RadarChart/RadarSeriesPlot/getAreaPath.d.ts +4 -0
- package/modern/RadarChart/RadarSeriesPlot/getAreaPath.js +3 -0
- package/modern/RadarChart/RadarSeriesPlot/index.d.ts +4 -0
- package/modern/RadarChart/RadarSeriesPlot/index.js +3 -0
- package/modern/RadarChart/RadarSeriesPlot/useRadarSeriesData.d.ts +27 -0
- package/modern/RadarChart/RadarSeriesPlot/useRadarSeriesData.js +60 -0
- package/modern/RadarChart/index.d.ts +6 -0
- package/modern/RadarChart/index.js +4 -0
- package/modern/RadarChart/seriesConfig/extremums.d.ts +3 -0
- package/modern/RadarChart/seriesConfig/extremums.js +18 -0
- package/modern/RadarChart/seriesConfig/formatter.d.ts +3 -0
- package/modern/RadarChart/seriesConfig/formatter.js +12 -0
- package/modern/RadarChart/seriesConfig/getColor.d.ts +3 -0
- package/modern/RadarChart/seriesConfig/getColor.js +4 -0
- package/modern/RadarChart/seriesConfig/getSeriesWithDefaultValues.d.ts +3 -0
- package/modern/RadarChart/seriesConfig/getSeriesWithDefaultValues.js +8 -0
- package/modern/RadarChart/seriesConfig/index.d.ts +2 -0
- package/modern/RadarChart/seriesConfig/index.js +15 -0
- package/modern/RadarChart/seriesConfig/legend.d.ts +3 -0
- package/modern/RadarChart/seriesConfig/legend.js +22 -0
- package/modern/RadarChart/seriesConfig/tooltip.d.ts +3 -0
- package/modern/RadarChart/seriesConfig/tooltip.js +25 -0
- package/modern/RadarChart/useRadarChartProps.d.ts +23 -0
- package/modern/RadarChart/useRadarChartProps.js +67 -0
- package/modern/ScatterChart/seriesConfig/extremums.d.ts +1 -1
- package/modern/ScatterChart/seriesConfig/getSeriesWithDefaultValues.d.ts +3 -0
- package/modern/ScatterChart/seriesConfig/getSeriesWithDefaultValues.js +8 -0
- package/modern/ScatterChart/seriesConfig/index.js +3 -1
- package/modern/SparkLineChart/SparkLineChart.d.ts +1 -1
- package/modern/constants/index.d.ts +3 -6
- package/modern/constants/index.js +5 -6
- package/modern/hooks/useAxis.d.ts +11 -1
- package/modern/hooks/useAxis.js +41 -0
- package/modern/hooks/useRadarSeries.d.ts +35 -0
- package/modern/hooks/useRadarSeries.js +42 -0
- package/modern/hooks/useScale.d.ts +3 -1
- package/modern/hooks/useScale.js +9 -1
- package/modern/hooks/useTicks.js +17 -11
- package/modern/index.d.ts +1 -0
- package/modern/index.js +2 -1
- package/modern/internals/clampAngle.d.ts +2 -0
- package/modern/internals/clampAngle.js +4 -0
- package/modern/internals/components/AxisSharedComponents.js +2 -2
- package/modern/internals/configInit.d.ts +11 -4
- package/modern/internals/configInit.js +22 -4
- package/modern/internals/index.d.ts +5 -0
- package/modern/internals/index.js +5 -0
- package/modern/internals/invertTextAnchor.d.ts +2 -0
- package/modern/internals/invertTextAnchor.js +10 -0
- package/modern/internals/isPolar.d.ts +7 -0
- package/modern/internals/isPolar.js +7 -0
- package/modern/internals/plugins/allPlugins.d.ts +3 -2
- package/modern/internals/plugins/allPlugins.js +2 -1
- package/modern/internals/plugins/corePlugins/useChartSeries/processSeries.js +7 -13
- package/modern/internals/plugins/featurePlugins/useChartCartesianAxis/computeAxisValue.js +5 -2
- package/modern/internals/plugins/featurePlugins/useChartCartesianAxis/defaultizeAxis.d.ts +2 -2
- package/modern/internals/plugins/featurePlugins/useChartCartesianAxis/defaultizeAxis.js +59 -19
- package/modern/internals/plugins/featurePlugins/useChartCartesianAxis/index.d.ts +1 -1
- package/modern/internals/plugins/featurePlugins/useChartCartesianAxis/index.js +1 -1
- package/modern/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxis.js +5 -5
- package/modern/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxis.types.d.ts +0 -18
- package/modern/internals/plugins/featurePlugins/useChartInteraction/useChartInteraction.selectors.d.ts +10 -10
- package/modern/internals/plugins/featurePlugins/useChartPolarAxis/computeAxisValue.d.ts +27 -0
- package/modern/internals/plugins/featurePlugins/useChartPolarAxis/computeAxisValue.js +133 -0
- package/modern/internals/plugins/featurePlugins/useChartPolarAxis/defaultizeAxis.d.ts +5 -0
- package/modern/internals/plugins/featurePlugins/useChartPolarAxis/defaultizeAxis.js +24 -0
- package/modern/internals/plugins/featurePlugins/useChartPolarAxis/getAxisExtremum.d.ts +5 -0
- package/modern/internals/plugins/featurePlugins/useChartPolarAxis/getAxisExtremum.js +21 -0
- package/modern/internals/plugins/featurePlugins/useChartPolarAxis/index.d.ts +3 -0
- package/modern/internals/plugins/featurePlugins/useChartPolarAxis/index.js +2 -0
- package/modern/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.d.ts +3 -0
- package/modern/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.js +57 -0
- package/modern/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.selectors.d.ts +1453 -0
- package/modern/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.selectors.js +26 -0
- package/modern/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.types.d.ts +55 -0
- package/modern/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.types.js +1 -0
- package/modern/internals/plugins/models/seriesConfig/cartesianExtremumGetter.types.js +1 -0
- package/modern/internals/plugins/models/seriesConfig/getSeriesWithDefaultValues.types.d.ts +3 -0
- package/modern/internals/plugins/models/seriesConfig/getSeriesWithDefaultValues.types.js +1 -0
- package/modern/internals/plugins/models/seriesConfig/index.d.ts +4 -2
- package/modern/internals/plugins/models/seriesConfig/index.js +4 -2
- package/modern/internals/plugins/models/seriesConfig/polarExtremumGetter.types.d.ts +16 -0
- package/modern/internals/plugins/models/seriesConfig/polarExtremumGetter.types.js +1 -0
- package/modern/internals/plugins/models/seriesConfig/seriesConfig.types.d.ts +8 -2
- package/modern/internals/stackSeries.d.ts +4 -6
- package/modern/models/axis.d.ts +27 -12
- package/modern/models/axis.js +4 -0
- package/modern/models/seriesType/config.d.ts +19 -9
- package/modern/models/seriesType/index.d.ts +1 -0
- package/modern/models/seriesType/index.js +1 -0
- package/modern/models/seriesType/radar.d.ts +24 -0
- package/modern/models/seriesType/radar.js +1 -0
- package/package.json +1 -1
- package/tsconfig.build.tsbuildinfo +1 -1
- package/context/PolarProvider/Polar.types.d.ts +0 -43
- package/context/PolarProvider/PolarContext.d.ts +0 -4
- package/context/PolarProvider/PolarContext.js +0 -20
- package/context/PolarProvider/PolarProvider.d.ts +0 -0
- package/context/PolarProvider/PolarProvider.js +0 -62
- package/context/PolarProvider/getAxisExtremum.d.ts +0 -0
- package/context/PolarProvider/getAxisExtremum.js +0 -49
- package/context/PolarProvider/index.d.ts +0 -0
- package/context/PolarProvider/index.js +0 -1
- package/context/PolarProvider/usePolarContext.d.ts +0 -0
- package/context/PolarProvider/usePolarContext.js +0 -12
- package/esm/context/PolarProvider/Polar.types.d.ts +0 -43
- package/esm/context/PolarProvider/PolarContext.d.ts +0 -4
- package/esm/context/PolarProvider/PolarContext.js +0 -13
- package/esm/context/PolarProvider/PolarProvider.d.ts +0 -0
- package/esm/context/PolarProvider/PolarProvider.js +0 -61
- package/esm/context/PolarProvider/getAxisExtremum.d.ts +0 -0
- package/esm/context/PolarProvider/getAxisExtremum.js +0 -48
- package/esm/context/PolarProvider/index.d.ts +0 -0
- package/esm/context/PolarProvider/index.js +0 -0
- package/esm/context/PolarProvider/usePolarContext.d.ts +0 -0
- package/esm/context/PolarProvider/usePolarContext.js +0 -11
- package/esm/internals/defaultizeColor.d.ts +0 -107
- package/esm/internals/defaultizeColor.js +0 -13
- package/internals/defaultizeColor.d.ts +0 -107
- package/modern/context/PolarProvider/Polar.types.d.ts +0 -43
- package/modern/context/PolarProvider/PolarContext.d.ts +0 -4
- package/modern/context/PolarProvider/PolarContext.js +0 -13
- package/modern/context/PolarProvider/PolarProvider.d.ts +0 -0
- package/modern/context/PolarProvider/PolarProvider.js +0 -61
- package/modern/context/PolarProvider/getAxisExtremum.d.ts +0 -0
- package/modern/context/PolarProvider/getAxisExtremum.js +0 -48
- package/modern/context/PolarProvider/index.d.ts +0 -0
- package/modern/context/PolarProvider/index.js +0 -0
- package/modern/context/PolarProvider/usePolarContext.d.ts +0 -0
- package/modern/context/PolarProvider/usePolarContext.js +0 -11
- package/modern/internals/defaultizeColor.d.ts +0 -107
- package/modern/internals/defaultizeColor.js +0 -13
- /package/{context/PolarProvider/Polar.types.js → RadarChart/RadarDataProvider/radar.types.js} +0 -0
- /package/{internals/plugins/models/seriesConfig/extremumGetter.types.js → RadarChart/RadarSeriesPlot/RadarSeriesPlot.types.js} +0 -0
- /package/esm/{context/PolarProvider/Polar.types.js → RadarChart/RadarDataProvider/radar.types.js} +0 -0
- /package/esm/{internals/plugins/models/seriesConfig/extremumGetter.types.js → RadarChart/RadarSeriesPlot/RadarSeriesPlot.types.js} +0 -0
- /package/{modern/context/PolarProvider/Polar.types.js → esm/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.types.js} +0 -0
- /package/esm/internals/plugins/models/seriesConfig/{extremumGetter.types.d.ts → cartesianExtremumGetter.types.d.ts} +0 -0
- /package/{modern/internals/plugins/models/seriesConfig/extremumGetter.types.js → esm/internals/plugins/models/seriesConfig/cartesianExtremumGetter.types.js} +0 -0
- /package/internals/plugins/models/seriesConfig/{extremumGetter.types.d.ts → cartesianExtremumGetter.types.d.ts} +0 -0
- /package/modern/internals/plugins/models/seriesConfig/{extremumGetter.types.d.ts → cartesianExtremumGetter.types.d.ts} +0 -0
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.selectorChartRotationAxis = exports.selectorChartRawRotationAxis = exports.selectorChartRawRadiusAxis = exports.selectorChartRadiusAxis = exports.selectorChartPolarAxisState = void 0;
|
|
7
|
+
var _useChartDimensions = require("../../corePlugins/useChartDimensions");
|
|
8
|
+
var _useChartSeries = require("../../corePlugins/useChartSeries");
|
|
9
|
+
var _selectors = require("../../utils/selectors");
|
|
10
|
+
var _computeAxisValue = require("./computeAxisValue");
|
|
11
|
+
const selectorChartPolarAxisState = state => state.polarAxis;
|
|
12
|
+
exports.selectorChartPolarAxisState = selectorChartPolarAxisState;
|
|
13
|
+
const selectorChartRawRotationAxis = exports.selectorChartRawRotationAxis = (0, _selectors.createSelector)(selectorChartPolarAxisState, axis => axis?.rotation);
|
|
14
|
+
const selectorChartRawRadiusAxis = exports.selectorChartRawRadiusAxis = (0, _selectors.createSelector)(selectorChartPolarAxisState, axis => axis?.radius);
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* The only interesting selectors that merge axis data and zoom if provided.
|
|
18
|
+
*/
|
|
19
|
+
|
|
20
|
+
const selectorChartRotationAxis = exports.selectorChartRotationAxis = (0, _selectors.createSelector)([selectorChartRawRotationAxis, _useChartDimensions.selectorChartDrawingArea, _useChartSeries.selectorChartSeriesProcessed, _useChartSeries.selectorChartSeriesConfig], (axis, drawingArea, formattedSeries, seriesConfig) => (0, _computeAxisValue.computeAxisValue)({
|
|
21
|
+
drawingArea,
|
|
22
|
+
formattedSeries,
|
|
23
|
+
axis,
|
|
24
|
+
seriesConfig,
|
|
25
|
+
axisDirection: 'rotation'
|
|
26
|
+
}));
|
|
27
|
+
const selectorChartRadiusAxis = exports.selectorChartRadiusAxis = (0, _selectors.createSelector)([selectorChartRawRadiusAxis, _useChartDimensions.selectorChartDrawingArea, _useChartSeries.selectorChartSeriesProcessed, _useChartSeries.selectorChartSeriesConfig], (axis, drawingArea, formattedSeries, seriesConfig) => (0, _computeAxisValue.computeAxisValue)({
|
|
28
|
+
drawingArea,
|
|
29
|
+
formattedSeries,
|
|
30
|
+
axis,
|
|
31
|
+
seriesConfig,
|
|
32
|
+
axisDirection: 'radius'
|
|
33
|
+
}));
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { ChartPluginSignature } from "../../models/index.js";
|
|
2
|
+
import { ChartSeriesType, DatasetType } from "../../../../models/seriesType/config.js";
|
|
3
|
+
import { ScaleName, AxisId, AxisConfig, ChartsRotationAxisProps, ChartsRadiusAxisProps } from "../../../../models/axis.js";
|
|
4
|
+
import { UseChartSeriesSignature } from "../../corePlugins/useChartSeries/index.js";
|
|
5
|
+
import { DefaultizedAxisConfig } from "../useChartCartesianAxis/index.js";
|
|
6
|
+
export type PolarAxisState = {
|
|
7
|
+
/**
|
|
8
|
+
* Mapping from rotation-axis key to scaling configuration.
|
|
9
|
+
*/
|
|
10
|
+
rotationAxis: DefaultizedAxisConfig<ChartsRotationAxisProps>;
|
|
11
|
+
/**
|
|
12
|
+
* Mapping from radius-axis key to scaling configuration.
|
|
13
|
+
*/
|
|
14
|
+
radiusAxis: DefaultizedAxisConfig<ChartsRadiusAxisProps>;
|
|
15
|
+
/**
|
|
16
|
+
* The rotation-axes IDs sorted by order they were provided.
|
|
17
|
+
*/
|
|
18
|
+
rotationAxisIds: AxisId[];
|
|
19
|
+
/**
|
|
20
|
+
* The radius-axes IDs sorted by order they were provided.
|
|
21
|
+
*/
|
|
22
|
+
radiusAxisIds: AxisId[];
|
|
23
|
+
};
|
|
24
|
+
export interface UseChartPolarAxisParameters {
|
|
25
|
+
/**
|
|
26
|
+
* The configuration of the rotation-axes.
|
|
27
|
+
* If not provided, a default axis config is used.
|
|
28
|
+
* An array of [[AxisConfig]] objects.
|
|
29
|
+
*/
|
|
30
|
+
rotationAxis?: AxisConfig<ScaleName, any, ChartsRotationAxisProps>[];
|
|
31
|
+
/**
|
|
32
|
+
* The configuration of the radial-axes.
|
|
33
|
+
* If not provided, a default axis config is used.
|
|
34
|
+
* An array of [[AxisConfig]] objects.
|
|
35
|
+
*/
|
|
36
|
+
radiusAxis?: AxisConfig<'linear', any, ChartsRadiusAxisProps>[];
|
|
37
|
+
/**
|
|
38
|
+
* An array of objects that can be used to populate series and axes data using their `dataKey` property.
|
|
39
|
+
*/
|
|
40
|
+
dataset?: Readonly<DatasetType>;
|
|
41
|
+
}
|
|
42
|
+
export type UseChartPolarAxisDefaultizedParameters = UseChartPolarAxisParameters & {};
|
|
43
|
+
export interface UseChartPolarAxisState {
|
|
44
|
+
polarAxis: {
|
|
45
|
+
rotation: AxisConfig<ScaleName, any, ChartsRotationAxisProps>[];
|
|
46
|
+
radius: AxisConfig<'linear', any, ChartsRadiusAxisProps>[];
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
export interface UseChartPolarAxisInstance {}
|
|
50
|
+
export type UseChartPolarAxisSignature<SeriesType extends ChartSeriesType = ChartSeriesType> = ChartPluginSignature<{
|
|
51
|
+
params: UseChartPolarAxisParameters;
|
|
52
|
+
defaultizedParams: UseChartPolarAxisDefaultizedParameters;
|
|
53
|
+
state: UseChartPolarAxisState;
|
|
54
|
+
dependencies: [UseChartSeriesSignature<SeriesType>];
|
|
55
|
+
}>;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { ChartSeries, ChartSeriesType } from '../../../../models/seriesType/config';
|
|
2
|
+
import type { AllSeriesType } from '../../../../models/seriesType';
|
|
3
|
+
export type GetSeriesWithDefaultValues<T extends ChartSeriesType> = (series: AllSeriesType<T>, seriesIndex: number, colors: string[]) => ChartSeries<T>;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
export * from "./colorProcessor.types.js";
|
|
2
|
-
export * from "./
|
|
2
|
+
export * from "./cartesianExtremumGetter.types.js";
|
|
3
|
+
export * from "./polarExtremumGetter.types.js";
|
|
3
4
|
export * from "./seriesConfig.types.js";
|
|
4
5
|
export * from "./seriesProcessor.types.js";
|
|
5
6
|
export * from "./tooltipGetter.types.js";
|
|
6
|
-
export * from "./legendGetter.types.js";
|
|
7
|
+
export * from "./legendGetter.types.js";
|
|
8
|
+
export * from "./getSeriesWithDefaultValues.types.js";
|
|
@@ -14,14 +14,25 @@ Object.keys(_colorProcessor).forEach(function (key) {
|
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
16
|
});
|
|
17
|
-
var
|
|
18
|
-
Object.keys(
|
|
17
|
+
var _cartesianExtremumGetter = require("./cartesianExtremumGetter.types");
|
|
18
|
+
Object.keys(_cartesianExtremumGetter).forEach(function (key) {
|
|
19
19
|
if (key === "default" || key === "__esModule") return;
|
|
20
|
-
if (key in exports && exports[key] ===
|
|
20
|
+
if (key in exports && exports[key] === _cartesianExtremumGetter[key]) return;
|
|
21
21
|
Object.defineProperty(exports, key, {
|
|
22
22
|
enumerable: true,
|
|
23
23
|
get: function () {
|
|
24
|
-
return
|
|
24
|
+
return _cartesianExtremumGetter[key];
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
});
|
|
28
|
+
var _polarExtremumGetter = require("./polarExtremumGetter.types");
|
|
29
|
+
Object.keys(_polarExtremumGetter).forEach(function (key) {
|
|
30
|
+
if (key === "default" || key === "__esModule") return;
|
|
31
|
+
if (key in exports && exports[key] === _polarExtremumGetter[key]) return;
|
|
32
|
+
Object.defineProperty(exports, key, {
|
|
33
|
+
enumerable: true,
|
|
34
|
+
get: function () {
|
|
35
|
+
return _polarExtremumGetter[key];
|
|
25
36
|
}
|
|
26
37
|
});
|
|
27
38
|
});
|
|
@@ -68,4 +79,15 @@ Object.keys(_legendGetter).forEach(function (key) {
|
|
|
68
79
|
return _legendGetter[key];
|
|
69
80
|
}
|
|
70
81
|
});
|
|
82
|
+
});
|
|
83
|
+
var _getSeriesWithDefaultValues = require("./getSeriesWithDefaultValues.types");
|
|
84
|
+
Object.keys(_getSeriesWithDefaultValues).forEach(function (key) {
|
|
85
|
+
if (key === "default" || key === "__esModule") return;
|
|
86
|
+
if (key in exports && exports[key] === _getSeriesWithDefaultValues[key]) return;
|
|
87
|
+
Object.defineProperty(exports, key, {
|
|
88
|
+
enumerable: true,
|
|
89
|
+
get: function () {
|
|
90
|
+
return _getSeriesWithDefaultValues[key];
|
|
91
|
+
}
|
|
92
|
+
});
|
|
71
93
|
});
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { PolarChartSeriesType, ChartSeriesDefaultized } from '../../../../models/seriesType/config';
|
|
2
|
+
import type { AxisConfig } from '../../../../models/axis';
|
|
3
|
+
import type { SeriesId } from '../../../../models/seriesType/common';
|
|
4
|
+
type PolarExtremumGetterParams<TSeriesType extends PolarChartSeriesType> = {
|
|
5
|
+
series: Record<SeriesId, ChartSeriesDefaultized<TSeriesType>>;
|
|
6
|
+
axis: AxisConfig;
|
|
7
|
+
axisIndex: number;
|
|
8
|
+
isDefaultAxis: boolean;
|
|
9
|
+
};
|
|
10
|
+
export type PolarExtremumGetterResult = [number, number];
|
|
11
|
+
export type PolarExtremumGetter<TSeriesType extends PolarChartSeriesType> = (params: PolarExtremumGetterParams<TSeriesType>) => PolarExtremumGetterResult;
|
|
12
|
+
export type PolarExtremumFilter = (value: {
|
|
13
|
+
x: number | Date | string | null;
|
|
14
|
+
y: number | Date | string | null;
|
|
15
|
+
}, dataIndex: number) => boolean;
|
|
16
|
+
export {};
|
|
@@ -1,16 +1,22 @@
|
|
|
1
1
|
import type { SeriesProcessor } from './seriesProcessor.types';
|
|
2
|
-
import type { CartesianChartSeriesType, ChartSeriesType } from '../../../../models/seriesType/config';
|
|
2
|
+
import type { CartesianChartSeriesType, ChartSeriesType, PolarChartSeriesType } from '../../../../models/seriesType/config';
|
|
3
3
|
import type { ColorProcessor } from './colorProcessor.types';
|
|
4
|
-
import type { CartesianExtremumGetter } from './
|
|
4
|
+
import type { CartesianExtremumGetter } from './cartesianExtremumGetter.types';
|
|
5
5
|
import type { LegendGetter } from './legendGetter.types';
|
|
6
6
|
import type { TooltipGetter } from './tooltipGetter.types';
|
|
7
|
+
import { PolarExtremumGetter } from "./polarExtremumGetter.types.js";
|
|
8
|
+
import { GetSeriesWithDefaultValues } from "./getSeriesWithDefaultValues.types.js";
|
|
7
9
|
export type ChartSeriesTypeConfig<TSeriesType extends ChartSeriesType> = {
|
|
8
10
|
seriesProcessor: SeriesProcessor<TSeriesType>;
|
|
9
11
|
colorProcessor: ColorProcessor<TSeriesType>;
|
|
10
12
|
legendGetter: LegendGetter<TSeriesType>;
|
|
11
13
|
tooltipGetter: TooltipGetter<TSeriesType>;
|
|
14
|
+
getSeriesWithDefaultValues: GetSeriesWithDefaultValues<TSeriesType>;
|
|
12
15
|
} & (TSeriesType extends CartesianChartSeriesType ? {
|
|
13
16
|
xExtremumGetter: CartesianExtremumGetter<TSeriesType>;
|
|
14
17
|
yExtremumGetter: CartesianExtremumGetter<TSeriesType>;
|
|
18
|
+
} : {}) & (TSeriesType extends PolarChartSeriesType ? {
|
|
19
|
+
rotationExtremumGetter: PolarExtremumGetter<TSeriesType>;
|
|
20
|
+
radiusExtremumGetter: PolarExtremumGetter<TSeriesType>;
|
|
15
21
|
} : {});
|
|
16
22
|
export type ChartSeriesConfig<TSeriesType extends ChartSeriesType> = { [Key in TSeriesType]: ChartSeriesTypeConfig<Key> };
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import { Series } from '@mui/x-charts-vendor/d3-shape';
|
|
2
|
-
import type { BarSeriesType, LineSeriesType } from '../models/seriesType';
|
|
3
2
|
import type { StackOffsetType, StackOrderType } from '../models/stacking';
|
|
4
|
-
import { SeriesId } from "../models/seriesType/common.js";
|
|
5
|
-
type
|
|
6
|
-
|
|
7
|
-
series: StackableSeries;
|
|
3
|
+
import { SeriesId, StackableSeriesType } from "../models/seriesType/common.js";
|
|
4
|
+
type FormatterParams<T> = {
|
|
5
|
+
series: Record<SeriesId, T>;
|
|
8
6
|
seriesOrder: SeriesId[];
|
|
9
7
|
defaultStrategy?: {
|
|
10
8
|
stackOrder?: StackOrderType;
|
|
@@ -23,5 +21,5 @@ export declare const StackOffset: { [key in StackOffsetType]: (series: Series<an
|
|
|
23
21
|
* @param series the object of all bars series
|
|
24
22
|
* @returns an array of groups, including the ids, the stacking order, and the stacking offset.
|
|
25
23
|
*/
|
|
26
|
-
export declare const getStackingGroups: (params: FormatterParams) => StackingGroupsType;
|
|
24
|
+
export declare const getStackingGroups: <T extends StackableSeriesType>(params: FormatterParams<T>) => StackingGroupsType;
|
|
27
25
|
export {};
|
package/models/axis.d.ts
CHANGED
|
@@ -280,7 +280,10 @@ export type AxisValueFormatterContext<S extends ScaleName = ScaleName> = {
|
|
|
280
280
|
*/
|
|
281
281
|
scale: AxisScaleConfig[S]['scale'];
|
|
282
282
|
};
|
|
283
|
-
|
|
283
|
+
/**
|
|
284
|
+
* Config that is shared between cartesian and polar axes.
|
|
285
|
+
*/
|
|
286
|
+
type CommonAxisConfig<S extends ScaleName = ScaleName, V = any> = {
|
|
284
287
|
/**
|
|
285
288
|
* Id used to identify the axis.
|
|
286
289
|
*/
|
|
@@ -318,31 +321,43 @@ export type AxisConfig<S extends ScaleName = ScaleName, V = any, AxisProps exten
|
|
|
318
321
|
* If `true`, Reverse the axis scaleBand.
|
|
319
322
|
*/
|
|
320
323
|
reverse?: boolean;
|
|
321
|
-
/**
|
|
322
|
-
* The offset of the axis in pixels. It can be used to move the axis from its default position.
|
|
323
|
-
* X-axis: A top axis will move up, and a bottom axis will move down.
|
|
324
|
-
* Y-axis: A left axis will move left, and a right axis will move right.
|
|
325
|
-
* @default 0
|
|
326
|
-
*/
|
|
327
|
-
offset?: number;
|
|
328
324
|
/**
|
|
329
325
|
* Defines the axis scale domain based on the min/max values of series linked to it.
|
|
330
326
|
* - 'nice': Rounds the domain at human friendly values.
|
|
331
|
-
* - 'strict': Set the domain to the min/max value provided. No
|
|
327
|
+
* - 'strict': Set the domain to the min/max value provided. No extra space is added.
|
|
332
328
|
* - function: Receives the calculated extremums as parameters, and should return the axis domain.
|
|
333
329
|
*/
|
|
334
330
|
domainLimit?: 'nice' | 'strict' | ((min: number, max: number) => {
|
|
335
331
|
min: number;
|
|
336
332
|
max: number;
|
|
337
333
|
});
|
|
338
|
-
}
|
|
334
|
+
};
|
|
335
|
+
export type PolarAxisConfig<S extends ScaleName = ScaleName, V = any, AxisProps extends ChartsAxisProps = ChartsRotationAxisProps | ChartsRadiusAxisProps> = {
|
|
336
|
+
/**
|
|
337
|
+
* The offset of the axis in pixels. It can be used to move the axis from its default position.
|
|
338
|
+
* X-axis: A top axis will move up, and a bottom axis will move down.
|
|
339
|
+
* Y-axis: A left axis will move left, and a right axis will move right.
|
|
340
|
+
* @default 0
|
|
341
|
+
*/
|
|
342
|
+
offset?: number;
|
|
343
|
+
} & CommonAxisConfig<S, V> & Omit<Partial<AxisProps>, 'axisId'> & Partial<Omit<AxisScaleConfig[S], 'scale'>> & AxisConfigExtension;
|
|
344
|
+
export type AxisConfig<S extends ScaleName = ScaleName, V = any, AxisProps extends ChartsAxisProps = ChartsXAxisProps | ChartsYAxisProps> = {
|
|
345
|
+
/**
|
|
346
|
+
* The offset of the axis in pixels. It can be used to move the axis from its default position.
|
|
347
|
+
* X-axis: A top axis will move up, and a bottom axis will move down.
|
|
348
|
+
* Y-axis: A left axis will move left, and a right axis will move right.
|
|
349
|
+
* @default 0
|
|
350
|
+
*/
|
|
351
|
+
offset?: number;
|
|
352
|
+
} & CommonAxisConfig<S, V> & Omit<Partial<AxisProps>, 'axisId'> & Partial<Omit<AxisScaleConfig[S], 'scale'>> & AxisSideConfig<AxisProps> & TickParams & AxisConfigExtension;
|
|
339
353
|
export interface AxisConfigExtension {}
|
|
340
|
-
export type
|
|
354
|
+
export type PolarAxisDefaultized<S extends ScaleName = ScaleName, V = any, AxisProps extends ChartsAxisProps = ChartsRotationAxisProps | ChartsRadiusAxisProps> = Omit<PolarAxisConfig<S, V, AxisProps>, 'scaleType'> & AxisScaleConfig[S] & AxisScaleComputedConfig[S];
|
|
355
|
+
export type AxisDefaultized<S extends ScaleName = ScaleName, V = any, AxisProps extends ChartsAxisProps = ChartsXAxisProps | ChartsYAxisProps> = MakeRequired<Omit<AxisConfig<S, V, AxisProps>, 'scaleType'>, 'offset'> & AxisScaleConfig[S] & AxisScaleComputedConfig[S] & {
|
|
341
356
|
/**
|
|
342
357
|
* An indication of the expected number of ticks.
|
|
343
358
|
*/
|
|
344
359
|
tickNumber: number;
|
|
345
|
-
};
|
|
360
|
+
} & (AxisProps extends ChartsXAxisProps ? MakeRequired<AxisSideConfig<AxisProps>, 'height'> : AxisProps extends ChartsYAxisProps ? MakeRequired<AxisSideConfig<AxisProps>, 'width'> : AxisSideConfig<AxisProps>);
|
|
346
361
|
export declare function isBandScaleConfig(scaleConfig: AxisConfig<ScaleName>): scaleConfig is AxisConfig<'band'> & {
|
|
347
362
|
scaleType: 'band';
|
|
348
363
|
};
|
package/models/axis.js
CHANGED
|
@@ -10,6 +10,10 @@ exports.isPointScaleConfig = isPointScaleConfig;
|
|
|
10
10
|
* shouldn't be provided by the user.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
+
/**
|
|
14
|
+
* Config that is shared between cartesian and polar axes.
|
|
15
|
+
*/
|
|
16
|
+
|
|
13
17
|
function isBandScaleConfig(scaleConfig) {
|
|
14
18
|
return scaleConfig.scaleType === 'band';
|
|
15
19
|
}
|
|
@@ -3,6 +3,7 @@ import { ScatterSeriesType, DefaultizedScatterSeriesType, ScatterItemIdentifier,
|
|
|
3
3
|
import { LineSeriesType, DefaultizedLineSeriesType, LineItemIdentifier } from "./line.js";
|
|
4
4
|
import { BarItemIdentifier, BarSeriesType, DefaultizedBarSeriesType } from "./bar.js";
|
|
5
5
|
import { PieSeriesType, DefaultizedPieSeriesType, PieItemIdentifier, PieValueType, DefaultizedPieValueType } from "./pie.js";
|
|
6
|
+
import { DefaultizedRadarSeriesType, RadarItemIdentifier, RadarSeriesType } from "./radar.js";
|
|
6
7
|
export interface ChartsSeriesConfig {
|
|
7
8
|
bar: {
|
|
8
9
|
/**
|
|
@@ -22,7 +23,7 @@ export interface ChartsSeriesConfig {
|
|
|
22
23
|
itemIdentifier: BarItemIdentifier;
|
|
23
24
|
valueType: number | null;
|
|
24
25
|
canBeStacked: true;
|
|
25
|
-
|
|
26
|
+
axisType: 'cartesian';
|
|
26
27
|
};
|
|
27
28
|
line: {
|
|
28
29
|
seriesInput: DefaultizedProps<LineSeriesType, 'id'> & {
|
|
@@ -33,7 +34,7 @@ export interface ChartsSeriesConfig {
|
|
|
33
34
|
itemIdentifier: LineItemIdentifier;
|
|
34
35
|
valueType: number | null;
|
|
35
36
|
canBeStacked: true;
|
|
36
|
-
|
|
37
|
+
axisType: 'cartesian';
|
|
37
38
|
};
|
|
38
39
|
scatter: {
|
|
39
40
|
seriesInput: DefaultizedProps<ScatterSeriesType, 'id'> & {
|
|
@@ -43,7 +44,7 @@ export interface ChartsSeriesConfig {
|
|
|
43
44
|
seriesProp: ScatterSeriesType;
|
|
44
45
|
valueType: ScatterValueType;
|
|
45
46
|
itemIdentifier: ScatterItemIdentifier;
|
|
46
|
-
|
|
47
|
+
axisType: 'cartesian';
|
|
47
48
|
};
|
|
48
49
|
pie: {
|
|
49
50
|
seriesInput: Omit<DefaultizedProps<PieSeriesType, 'id'>, 'data'> & {
|
|
@@ -56,19 +57,28 @@ export interface ChartsSeriesConfig {
|
|
|
56
57
|
itemIdentifier: PieItemIdentifier;
|
|
57
58
|
valueType: DefaultizedPieValueType;
|
|
58
59
|
};
|
|
60
|
+
radar: {
|
|
61
|
+
seriesInput: DefaultizedProps<RadarSeriesType, 'id'> & {
|
|
62
|
+
color: string;
|
|
63
|
+
};
|
|
64
|
+
series: DefaultizedRadarSeriesType;
|
|
65
|
+
seriesProp: RadarSeriesType;
|
|
66
|
+
itemIdentifier: RadarItemIdentifier;
|
|
67
|
+
valueType: number;
|
|
68
|
+
axisType: 'polar';
|
|
69
|
+
};
|
|
59
70
|
}
|
|
60
71
|
export type ChartSeriesType = keyof ChartsSeriesConfig;
|
|
61
72
|
export type CartesianChartSeriesType = keyof Pick<ChartsSeriesConfig, { [Key in ChartSeriesType]: ChartsSeriesConfig[Key] extends {
|
|
62
|
-
|
|
73
|
+
axisType: 'cartesian';
|
|
74
|
+
} ? Key : never }[ChartSeriesType]>;
|
|
75
|
+
export type PolarChartSeriesType = keyof Pick<ChartsSeriesConfig, { [Key in ChartSeriesType]: ChartsSeriesConfig[Key] extends {
|
|
76
|
+
axisType: 'polar';
|
|
63
77
|
} ? Key : never }[ChartSeriesType]>;
|
|
64
78
|
export type StackableChartSeriesType = keyof Pick<ChartsSeriesConfig, { [Key in ChartSeriesType]: ChartsSeriesConfig[Key] extends {
|
|
65
79
|
canBeStacked: true;
|
|
66
80
|
} ? Key : never }[ChartSeriesType]>;
|
|
67
|
-
export type ChartSeries<T extends ChartSeriesType> = ChartsSeriesConfig[T]
|
|
68
|
-
canBeStacked: true;
|
|
69
|
-
} ? ChartsSeriesConfig[T]['seriesInput'] & {
|
|
70
|
-
stackedData: [number, number][];
|
|
71
|
-
} : ChartsSeriesConfig[T]['seriesInput'];
|
|
81
|
+
export type ChartSeries<T extends ChartSeriesType> = ChartsSeriesConfig[T]['seriesInput'];
|
|
72
82
|
export type ChartSeriesDefaultized<T extends ChartSeriesType> = ChartsSeriesConfig[T] extends {
|
|
73
83
|
canBeStacked: true;
|
|
74
84
|
} ? ChartsSeriesConfig[T]['series'] & {
|
|
@@ -10,6 +10,7 @@ export * from "./line.js";
|
|
|
10
10
|
export * from "./bar.js";
|
|
11
11
|
export * from "./scatter.js";
|
|
12
12
|
export * from "./pie.js";
|
|
13
|
+
export * from "./radar.js";
|
|
13
14
|
export type { AllSeriesType, CartesianSeriesType, DefaultizedSeriesType, DefaultizedCartesianSeriesType, StackableSeriesType };
|
|
14
15
|
export declare function isDefaultizedBarSeries(series: DefaultizedSeriesType): series is DefaultizedBarSeriesType;
|
|
15
16
|
export declare function isBarSeries(series: AllSeriesType): series is BarSeriesType;
|
|
@@ -57,6 +57,18 @@ Object.keys(_pie).forEach(function (key) {
|
|
|
57
57
|
}
|
|
58
58
|
});
|
|
59
59
|
});
|
|
60
|
+
var _radar = require("./radar");
|
|
61
|
+
Object.keys(_radar).forEach(function (key) {
|
|
62
|
+
if (key === "default" || key === "__esModule") return;
|
|
63
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
64
|
+
if (key in exports && exports[key] === _radar[key]) return;
|
|
65
|
+
Object.defineProperty(exports, key, {
|
|
66
|
+
enumerable: true,
|
|
67
|
+
get: function () {
|
|
68
|
+
return _radar[key];
|
|
69
|
+
}
|
|
70
|
+
});
|
|
71
|
+
});
|
|
60
72
|
// Series definition
|
|
61
73
|
|
|
62
74
|
// item identifier
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { DefaultizedProps } from '@mui/x-internals/types';
|
|
2
|
+
import { CommonDefaultizedProps, CommonSeriesType, SeriesId } from "./common.js";
|
|
3
|
+
export interface RadarSeriesType extends CommonSeriesType<number> {
|
|
4
|
+
type: 'radar';
|
|
5
|
+
data: number[];
|
|
6
|
+
/**
|
|
7
|
+
* The label to display on the tooltip or the legend. It can be a string or a function.
|
|
8
|
+
*/
|
|
9
|
+
label?: string | ((location: 'tooltip' | 'legend') => string);
|
|
10
|
+
/**
|
|
11
|
+
* If `true` show marks at value position.
|
|
12
|
+
*/
|
|
13
|
+
showMark?: boolean;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* An object that allows to identify either a radar series or a radar point (if dataIndex is defined).
|
|
17
|
+
* Used for item interaction
|
|
18
|
+
*/
|
|
19
|
+
export type RadarItemIdentifier = {
|
|
20
|
+
type: 'radar';
|
|
21
|
+
seriesId: SeriesId;
|
|
22
|
+
dataIndex?: number;
|
|
23
|
+
};
|
|
24
|
+
export interface DefaultizedRadarSeriesType extends DefaultizedProps<RadarSeriesType, CommonDefaultizedProps | 'color'> {}
|
|
@@ -79,7 +79,7 @@ const useAggregatedData = () => {
|
|
|
79
79
|
const xAxisConfig = xAxis[xAxisId];
|
|
80
80
|
const yAxisConfig = yAxis[yAxisId];
|
|
81
81
|
const verticalLayout = series[seriesId].layout === 'vertical';
|
|
82
|
-
checkScaleErrors(verticalLayout, seriesId, xAxisId, xAxis, yAxisId, yAxis);
|
|
82
|
+
checkScaleErrors(verticalLayout, seriesId, series[seriesId], xAxisId, xAxis, yAxisId, yAxis);
|
|
83
83
|
const baseScaleConfig = verticalLayout ? xAxisConfig : yAxisConfig;
|
|
84
84
|
const xScale = xAxisConfig.scale;
|
|
85
85
|
const yScale = yAxisConfig.scale;
|
|
@@ -95,9 +95,12 @@ const useAggregatedData = () => {
|
|
|
95
95
|
});
|
|
96
96
|
const barOffset = groupIndex * (barWidth + offset);
|
|
97
97
|
const {
|
|
98
|
-
stackedData
|
|
98
|
+
stackedData,
|
|
99
|
+
data: currentSeriesData,
|
|
100
|
+
layout
|
|
99
101
|
} = series[seriesId];
|
|
100
|
-
return
|
|
102
|
+
return baseScaleConfig.data.map((baseValue, dataIndex) => {
|
|
103
|
+
const values = stackedData[dataIndex];
|
|
101
104
|
const valueCoordinates = values.map(v => verticalLayout ? yScale(v) : xScale(v));
|
|
102
105
|
const minValueCoord = Math.round(Math.min(...valueCoordinates));
|
|
103
106
|
const maxValueCoord = Math.round(Math.max(...valueCoordinates));
|
|
@@ -105,15 +108,15 @@ const useAggregatedData = () => {
|
|
|
105
108
|
const result = {
|
|
106
109
|
seriesId,
|
|
107
110
|
dataIndex,
|
|
108
|
-
layout
|
|
109
|
-
x: verticalLayout ? xScale(
|
|
110
|
-
y: verticalLayout ? minValueCoord : yScale(
|
|
111
|
+
layout,
|
|
112
|
+
x: verticalLayout ? xScale(baseValue) + barOffset : minValueCoord,
|
|
113
|
+
y: verticalLayout ? minValueCoord : yScale(baseValue) + barOffset,
|
|
111
114
|
xOrigin: xScale(0),
|
|
112
115
|
yOrigin: yScale(0),
|
|
113
116
|
height: verticalLayout ? maxValueCoord - minValueCoord : barWidth,
|
|
114
117
|
width: verticalLayout ? barWidth : maxValueCoord - minValueCoord,
|
|
115
118
|
color: colorGetter(dataIndex),
|
|
116
|
-
value:
|
|
119
|
+
value: currentSeriesData[dataIndex],
|
|
117
120
|
maskId: `${chartId}_${stackId || seriesId}_${groupIndex}_${dataIndex}`
|
|
118
121
|
};
|
|
119
122
|
if (result.x > xMax || result.x + result.width < xMin || result.y > yMax || result.y + result.height < yMin) {
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { AxisDefaultized, AxisId } from "../models/axis.js";
|
|
2
|
+
import { DefaultizedBarSeriesType } from "../models/seriesType/bar.js";
|
|
2
3
|
import { SeriesId } from "../models/seriesType/common.js";
|
|
3
|
-
export declare function checkScaleErrors(verticalLayout: boolean, seriesId: SeriesId,
|
|
4
|
+
export declare function checkScaleErrors(verticalLayout: boolean, seriesId: SeriesId, series: DefaultizedBarSeriesType & {
|
|
5
|
+
stackedData: [number, number][];
|
|
6
|
+
}, xAxisId: AxisId, xAxis: {
|
|
4
7
|
[axisId: AxisId]: AxisDefaultized;
|
|
5
8
|
}, yAxisId: AxisId, yAxis: {
|
|
6
9
|
[axisId: AxisId]: AxisDefaultized;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { warnOnce } from '@mui/x-internals/warning';
|
|
1
2
|
import { DEFAULT_X_AXIS_KEY, DEFAULT_Y_AXIS_KEY } from "../constants/index.js";
|
|
2
3
|
import { isBandScaleConfig, isPointScaleConfig } from "../models/axis.js";
|
|
3
4
|
const getAxisMessage = (axisDirection, axisId) => {
|
|
@@ -6,7 +7,7 @@ const getAxisMessage = (axisDirection, axisId) => {
|
|
|
6
7
|
const axisDefaultKey = axisDirection === 'x' ? DEFAULT_X_AXIS_KEY : DEFAULT_Y_AXIS_KEY;
|
|
7
8
|
return axisId === axisDefaultKey ? `The first \`${axisIdName}\`` : `The ${axisName} with id "${axisId}"`;
|
|
8
9
|
};
|
|
9
|
-
export function checkScaleErrors(verticalLayout, seriesId, xAxisId, xAxis, yAxisId, yAxis) {
|
|
10
|
+
export function checkScaleErrors(verticalLayout, seriesId, series, xAxisId, xAxis, yAxisId, yAxis) {
|
|
10
11
|
const xAxisConfig = xAxis[xAxisId];
|
|
11
12
|
const yAxisConfig = yAxis[yAxisId];
|
|
12
13
|
const discreteAxisConfig = verticalLayout ? xAxisConfig : yAxisConfig;
|
|
@@ -24,4 +25,9 @@ export function checkScaleErrors(verticalLayout, seriesId, xAxisId, xAxis, yAxis
|
|
|
24
25
|
if (isBandScaleConfig(continuousAxisConfig) || isPointScaleConfig(continuousAxisConfig)) {
|
|
25
26
|
throw new Error(`MUI X: ${getAxisMessage(continuousAxisDirection, continuousAxisId)} should be a continuous type to display the bar series of id "${seriesId}".`);
|
|
26
27
|
}
|
|
28
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
29
|
+
if (discreteAxisConfig.data.length < series.stackedData.length) {
|
|
30
|
+
warnOnce([`MUI X: ${getAxisMessage(discreteAxisDirection, discreteAxisId)} has less data (${discreteAxisConfig.data.length} values) than the bar series of id "${seriesId}" (${series.stackedData.length} values).`, 'The axis data should have at least the same length than the series using it.'], 'error');
|
|
31
|
+
}
|
|
32
|
+
}
|
|
27
33
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { CartesianExtremumGetter } from "../../internals/plugins/models/seriesConfig/
|
|
1
|
+
import { CartesianExtremumGetter } from "../../internals/plugins/models/seriesConfig/index.js";
|
|
2
2
|
export declare const getExtremumX: CartesianExtremumGetter<'bar'>;
|
|
3
3
|
export declare const getExtremumY: CartesianExtremumGetter<'bar'>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
|
+
const getSeriesWithDefaultValues = (seriesData, seriesIndex, colors) => {
|
|
3
|
+
return _extends({
|
|
4
|
+
id: seriesData.id ?? `auto-generated-id-${seriesIndex}`,
|
|
5
|
+
color: colors[seriesIndex % colors.length]
|
|
6
|
+
}, seriesData);
|
|
7
|
+
};
|
|
8
|
+
export default getSeriesWithDefaultValues;
|
|
@@ -3,11 +3,13 @@ import seriesProcessor from "./seriesProcessor.js";
|
|
|
3
3
|
import legendGetter from "./legend.js";
|
|
4
4
|
import getColor from "./getColor.js";
|
|
5
5
|
import tooltipGetter from "./tooltip.js";
|
|
6
|
+
import getSeriesWithDefaultValues from "./getSeriesWithDefaultValues.js";
|
|
6
7
|
export const seriesConfig = {
|
|
7
8
|
seriesProcessor,
|
|
8
9
|
colorProcessor: getColor,
|
|
9
10
|
legendGetter,
|
|
10
11
|
tooltipGetter,
|
|
11
12
|
xExtremumGetter: getExtremumX,
|
|
12
|
-
yExtremumGetter: getExtremumY
|
|
13
|
+
yExtremumGetter: getExtremumY,
|
|
14
|
+
getSeriesWithDefaultValues
|
|
13
15
|
};
|
|
@@ -3,7 +3,7 @@ import { ChartSeriesType } from "../models/seriesType/config.js";
|
|
|
3
3
|
import { ChartDataProviderProps } from "../ChartDataProvider/index.js";
|
|
4
4
|
import { ChartsSurfaceProps } from "../ChartsSurface/index.js";
|
|
5
5
|
import { AllPluginSignatures } from "../internals/plugins/allPlugins.js";
|
|
6
|
-
import { ChartAnyPluginSignature } from "../internals/plugins/models/
|
|
6
|
+
import { ChartAnyPluginSignature } from "../internals/plugins/models/plugin.js";
|
|
7
7
|
export type ChartContainerProps<SeriesType extends ChartSeriesType = ChartSeriesType, TSignatures extends readonly ChartAnyPluginSignature[] = AllPluginSignatures<SeriesType>> = Omit<ChartDataProviderProps<SeriesType, TSignatures>, 'children'> & ChartsSurfaceProps;
|
|
8
8
|
/**
|
|
9
9
|
* It sets up the data providers as well as the `<svg>` for the chart.
|