@mui/x-charts 8.1.0 → 8.2.0
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/BarChart.js +1 -1
- package/BarChart/BarLabel/BarLabel.types.d.ts +1 -1
- package/BarChart/BarLabel/BarLabelPlot.d.ts +1 -1
- package/BarChart/BarLabel/barLabelClasses.d.ts +1 -1
- package/BarChart/BarLabel/index.d.ts +4 -4
- package/BarChart/checkScaleErrors.d.ts +3 -3
- package/BarChart/checkScaleErrors.js +4 -4
- package/BarChart/seriesConfig/getSeriesWithDefaultValues.d.ts +1 -1
- package/BarChart/seriesConfig/seriesProcessor.js +2 -2
- package/BarChart/seriesConfig/tooltip.d.ts +1 -1
- package/BarChart/types.d.ts +2 -2
- package/BarChart/useBarChartProps.d.ts +2 -2
- package/BarChart/useBarChartProps.js +20 -2
- package/CHANGELOG.md +126 -7
- package/ChartContainer/ChartContainer.js +1 -1
- package/ChartContainer/useChartContainerProps.d.ts +1 -1
- package/ChartDataProvider/useChartDataProviderProps.d.ts +2 -2
- package/ChartsAxisHighlight/ChartsXAxisHighlight.js +1 -1
- package/ChartsAxisHighlight/ChartsYAxisHighlight.js +1 -1
- package/ChartsGrid/ChartsHorizontalGrid.d.ts +2 -2
- package/ChartsGrid/ChartsVerticalGrid.d.ts +2 -2
- package/ChartsLabel/ChartsLabelMark.js +8 -4
- package/ChartsLabel/index.d.ts +4 -4
- package/ChartsLabel/labelClasses.d.ts +1 -1
- package/ChartsLabel/labelGradientClasses.d.ts +1 -1
- package/ChartsLabel/labelMarkClasses.d.ts +1 -1
- package/ChartsLegend/ChartsLegend.d.ts +2 -2
- package/ChartsLegend/ContinuousColorLegend.d.ts +1 -1
- package/ChartsLegend/PiecewiseColorLegend.d.ts +1 -1
- package/ChartsLegend/chartsLegend.types.d.ts +1 -1
- package/ChartsLegend/chartsLegendClasses.d.ts +2 -2
- package/ChartsLegend/continuousColorLegendClasses.d.ts +2 -2
- package/ChartsLegend/index.d.ts +4 -4
- package/ChartsLegend/piecewiseColorLegendClasses.d.ts +2 -2
- package/ChartsLegend/useAxis.d.ts +2 -2
- package/ChartsLocalizationProvider/ChartsLocalizationProvider.d.ts +1 -1
- package/ChartsLocalizationProvider/index.d.ts +1 -1
- package/ChartsOverlay/ChartsLoadingOverlay.d.ts +1 -1
- package/ChartsOverlay/ChartsNoDataOverlay.d.ts +1 -1
- package/ChartsOverlay/index.d.ts +1 -1
- package/ChartsReferenceLine/ChartsReferenceLine.js +2 -2
- package/ChartsReferenceLine/ChartsXReferenceLine.js +1 -1
- package/ChartsReferenceLine/ChartsYReferenceLine.js +1 -1
- package/ChartsText/index.d.ts +2 -2
- package/ChartsTooltip/ChartsTooltipContainer.js +1 -0
- package/ChartsTooltip/index.d.ts +3 -3
- package/ChartsTooltip/useAxisTooltip.d.ts +2 -2
- package/LineChart/AnimatedArea.d.ts +1 -1
- package/LineChart/AnimatedLine.d.ts +1 -1
- package/LineChart/AreaPlot.js +2 -2
- package/LineChart/LineChart.js +1 -1
- package/LineChart/LineHighlightPlot.js +1 -1
- package/LineChart/LinePlot.js +2 -2
- package/LineChart/MarkPlot.js +1 -1
- package/LineChart/index.d.ts +1 -1
- package/LineChart/seriesConfig/getSeriesWithDefaultValues.d.ts +1 -1
- package/LineChart/seriesConfig/seriesProcessor.js +2 -2
- package/LineChart/seriesConfig/tooltip.d.ts +1 -1
- package/LineChart/useLineChartProps.d.ts +2 -2
- package/PieChart/seriesConfig/getSeriesWithDefaultValues.d.ts +1 -1
- package/PieChart/seriesConfig/tooltip.d.ts +1 -1
- package/RadarChart/RadarGrid/index.d.ts +1 -1
- package/RadarChart/RadarSeriesPlot/index.d.ts +2 -2
- package/RadarChart/RadarSeriesPlot/useRadarSeriesData.d.ts +3 -3
- package/RadarChart/index.d.ts +2 -2
- package/RadarChart/seriesConfig/getSeriesWithDefaultValues.d.ts +1 -1
- package/RadarChart/seriesConfig/tooltip.d.ts +1 -1
- package/RadarChart/useRadarChartProps.d.ts +2 -2
- package/ScatterChart/ScatterChart.js +1 -1
- package/ScatterChart/ScatterMarker.types.d.ts +1 -1
- package/ScatterChart/seriesConfig/getSeriesWithDefaultValues.d.ts +1 -1
- package/ScatterChart/seriesConfig/seriesProcessor.js +1 -1
- package/ScatterChart/seriesConfig/tooltip.d.ts +1 -1
- package/ScatterChart/useScatterChartProps.d.ts +3 -3
- package/SparkLineChart/SparkLineChart.js +1 -1
- package/colorPalettes/categorical/blueberryTwilight.d.ts +4 -0
- package/colorPalettes/categorical/blueberryTwilight.js +10 -0
- package/colorPalettes/categorical/cheerfulFiesta.d.ts +4 -0
- package/colorPalettes/categorical/cheerfulFiesta.js +10 -0
- package/colorPalettes/categorical/mangoFusion.d.ts +4 -0
- package/colorPalettes/categorical/mangoFusion.js +10 -0
- package/colorPalettes/categorical/rainbowSurge.d.ts +4 -0
- package/colorPalettes/categorical/rainbowSurge.js +10 -0
- package/colorPalettes/index.d.ts +14 -1
- package/colorPalettes/index.js +147 -4
- package/colorPalettes/sequential/blue.d.ts +4 -0
- package/colorPalettes/sequential/blue.js +12 -0
- package/colorPalettes/sequential/cyan.d.ts +4 -0
- package/colorPalettes/sequential/cyan.js +12 -0
- package/colorPalettes/sequential/green.d.ts +4 -0
- package/colorPalettes/sequential/green.js +12 -0
- package/colorPalettes/sequential/orange.d.ts +4 -0
- package/colorPalettes/sequential/orange.js +12 -0
- package/colorPalettes/sequential/pink.d.ts +4 -0
- package/colorPalettes/sequential/pink.js +12 -0
- package/colorPalettes/sequential/purple.d.ts +4 -0
- package/colorPalettes/sequential/purple.js +12 -0
- package/colorPalettes/sequential/red.d.ts +4 -0
- package/colorPalettes/sequential/red.js +12 -0
- package/colorPalettes/sequential/strawberrySky.d.ts +4 -0
- package/colorPalettes/sequential/strawberrySky.js +10 -0
- package/colorPalettes/sequential/yellow.d.ts +4 -0
- package/colorPalettes/sequential/yellow.js +12 -0
- package/colorPalettes/types.d.ts +4 -0
- package/colorPalettes/types.js +5 -0
- package/context/ChartProvider/ChartContext.d.ts +1 -1
- package/context/ChartProvider/ChartProvider.d.ts +1 -1
- package/context/ChartProvider/ChartProvider.types.d.ts +6 -6
- package/context/ChartProvider/useChartContext.js +1 -1
- package/context/index.d.ts +1 -1
- package/esm/BarChart/BarChart.js +1 -1
- package/esm/BarChart/BarLabel/BarLabel.types.d.ts +1 -1
- package/esm/BarChart/BarLabel/BarLabelPlot.d.ts +1 -1
- package/esm/BarChart/BarLabel/barLabelClasses.d.ts +1 -1
- package/esm/BarChart/BarLabel/index.d.ts +4 -4
- package/esm/BarChart/checkScaleErrors.d.ts +3 -3
- package/esm/BarChart/checkScaleErrors.js +4 -4
- package/esm/BarChart/seriesConfig/getSeriesWithDefaultValues.d.ts +1 -1
- package/esm/BarChart/seriesConfig/seriesProcessor.js +2 -2
- package/esm/BarChart/seriesConfig/tooltip.d.ts +1 -1
- package/esm/BarChart/types.d.ts +2 -2
- package/esm/BarChart/useBarChartProps.d.ts +2 -2
- package/esm/BarChart/useBarChartProps.js +20 -2
- package/esm/ChartContainer/ChartContainer.js +1 -1
- package/esm/ChartContainer/useChartContainerProps.d.ts +1 -1
- package/esm/ChartDataProvider/useChartDataProviderProps.d.ts +2 -2
- package/esm/ChartsAxisHighlight/ChartsXAxisHighlight.js +1 -1
- package/esm/ChartsAxisHighlight/ChartsYAxisHighlight.js +1 -1
- package/esm/ChartsGrid/ChartsHorizontalGrid.d.ts +2 -2
- package/esm/ChartsGrid/ChartsVerticalGrid.d.ts +2 -2
- package/esm/ChartsLabel/ChartsLabelMark.js +8 -4
- package/esm/ChartsLabel/index.d.ts +4 -4
- package/esm/ChartsLabel/labelClasses.d.ts +1 -1
- package/esm/ChartsLabel/labelGradientClasses.d.ts +1 -1
- package/esm/ChartsLabel/labelMarkClasses.d.ts +1 -1
- package/esm/ChartsLegend/ChartsLegend.d.ts +2 -2
- package/esm/ChartsLegend/ContinuousColorLegend.d.ts +1 -1
- package/esm/ChartsLegend/PiecewiseColorLegend.d.ts +1 -1
- package/esm/ChartsLegend/chartsLegend.types.d.ts +1 -1
- package/esm/ChartsLegend/chartsLegendClasses.d.ts +2 -2
- package/esm/ChartsLegend/continuousColorLegendClasses.d.ts +2 -2
- package/esm/ChartsLegend/index.d.ts +4 -4
- package/esm/ChartsLegend/piecewiseColorLegendClasses.d.ts +2 -2
- package/esm/ChartsLegend/useAxis.d.ts +2 -2
- package/esm/ChartsLocalizationProvider/ChartsLocalizationProvider.d.ts +1 -1
- package/esm/ChartsLocalizationProvider/index.d.ts +1 -1
- package/esm/ChartsOverlay/ChartsLoadingOverlay.d.ts +1 -1
- package/esm/ChartsOverlay/ChartsNoDataOverlay.d.ts +1 -1
- package/esm/ChartsOverlay/index.d.ts +1 -1
- package/esm/ChartsReferenceLine/ChartsReferenceLine.js +2 -2
- package/esm/ChartsReferenceLine/ChartsXReferenceLine.js +1 -1
- package/esm/ChartsReferenceLine/ChartsYReferenceLine.js +1 -1
- package/esm/ChartsText/index.d.ts +2 -2
- package/esm/ChartsTooltip/ChartsTooltipContainer.js +1 -0
- package/esm/ChartsTooltip/index.d.ts +3 -3
- package/esm/ChartsTooltip/useAxisTooltip.d.ts +2 -2
- package/esm/LineChart/AnimatedArea.d.ts +1 -1
- package/esm/LineChart/AnimatedLine.d.ts +1 -1
- package/esm/LineChart/AreaPlot.js +2 -2
- package/esm/LineChart/LineChart.js +1 -1
- package/esm/LineChart/LineHighlightPlot.js +1 -1
- package/esm/LineChart/LinePlot.js +2 -2
- package/esm/LineChart/MarkPlot.js +1 -1
- package/esm/LineChart/index.d.ts +1 -1
- package/esm/LineChart/seriesConfig/getSeriesWithDefaultValues.d.ts +1 -1
- package/esm/LineChart/seriesConfig/seriesProcessor.js +2 -2
- package/esm/LineChart/seriesConfig/tooltip.d.ts +1 -1
- package/esm/LineChart/useLineChartProps.d.ts +2 -2
- package/esm/PieChart/seriesConfig/getSeriesWithDefaultValues.d.ts +1 -1
- package/esm/PieChart/seriesConfig/tooltip.d.ts +1 -1
- package/esm/RadarChart/RadarGrid/index.d.ts +1 -1
- package/esm/RadarChart/RadarSeriesPlot/index.d.ts +2 -2
- package/esm/RadarChart/RadarSeriesPlot/useRadarSeriesData.d.ts +3 -3
- package/esm/RadarChart/index.d.ts +2 -2
- package/esm/RadarChart/seriesConfig/getSeriesWithDefaultValues.d.ts +1 -1
- package/esm/RadarChart/seriesConfig/tooltip.d.ts +1 -1
- package/esm/RadarChart/useRadarChartProps.d.ts +2 -2
- package/esm/ScatterChart/ScatterChart.js +1 -1
- package/esm/ScatterChart/ScatterMarker.types.d.ts +1 -1
- package/esm/ScatterChart/seriesConfig/getSeriesWithDefaultValues.d.ts +1 -1
- package/esm/ScatterChart/seriesConfig/seriesProcessor.js +1 -1
- package/esm/ScatterChart/seriesConfig/tooltip.d.ts +1 -1
- package/esm/ScatterChart/useScatterChartProps.d.ts +3 -3
- package/esm/SparkLineChart/SparkLineChart.js +1 -1
- package/esm/colorPalettes/categorical/blueberryTwilight.d.ts +4 -0
- package/esm/colorPalettes/categorical/blueberryTwilight.js +3 -0
- package/esm/colorPalettes/categorical/cheerfulFiesta.d.ts +4 -0
- package/esm/colorPalettes/categorical/cheerfulFiesta.js +3 -0
- package/esm/colorPalettes/categorical/mangoFusion.d.ts +4 -0
- package/esm/colorPalettes/categorical/mangoFusion.js +3 -0
- package/esm/colorPalettes/categorical/rainbowSurge.d.ts +4 -0
- package/esm/colorPalettes/categorical/rainbowSurge.js +3 -0
- package/esm/colorPalettes/index.d.ts +14 -1
- package/esm/colorPalettes/index.js +20 -1
- package/esm/colorPalettes/sequential/blue.d.ts +4 -0
- package/esm/colorPalettes/sequential/blue.js +5 -0
- package/esm/colorPalettes/sequential/cyan.d.ts +4 -0
- package/esm/colorPalettes/sequential/cyan.js +5 -0
- package/esm/colorPalettes/sequential/green.d.ts +4 -0
- package/esm/colorPalettes/sequential/green.js +5 -0
- package/esm/colorPalettes/sequential/orange.d.ts +4 -0
- package/esm/colorPalettes/sequential/orange.js +5 -0
- package/esm/colorPalettes/sequential/pink.d.ts +4 -0
- package/esm/colorPalettes/sequential/pink.js +5 -0
- package/esm/colorPalettes/sequential/purple.d.ts +4 -0
- package/esm/colorPalettes/sequential/purple.js +5 -0
- package/esm/colorPalettes/sequential/red.d.ts +4 -0
- package/esm/colorPalettes/sequential/red.js +5 -0
- package/esm/colorPalettes/sequential/strawberrySky.d.ts +4 -0
- package/esm/colorPalettes/sequential/strawberrySky.js +3 -0
- package/esm/colorPalettes/sequential/yellow.d.ts +4 -0
- package/esm/colorPalettes/sequential/yellow.js +5 -0
- package/esm/colorPalettes/types.d.ts +4 -0
- package/esm/colorPalettes/types.js +1 -0
- package/esm/context/ChartProvider/ChartContext.d.ts +1 -1
- package/esm/context/ChartProvider/ChartProvider.d.ts +1 -1
- package/esm/context/ChartProvider/ChartProvider.types.d.ts +6 -6
- package/esm/context/ChartProvider/useChartContext.js +1 -1
- package/esm/context/index.d.ts +1 -1
- package/esm/hooks/animation/useAnimateArea.d.ts +1 -1
- package/esm/hooks/animation/useAnimateBar.d.ts +1 -1
- package/esm/hooks/animation/useAnimateBarLabel.d.ts +1 -1
- package/esm/hooks/animation/useAnimateLine.d.ts +1 -1
- package/esm/hooks/animation/useAnimatePieArc.d.ts +1 -1
- package/esm/hooks/animation/useAnimatePieArcLabel.d.ts +1 -1
- package/esm/hooks/useAxis.d.ts +6 -6
- package/esm/hooks/useChartsLocalization.d.ts +1 -1
- package/esm/hooks/useChartsLocalization.js +1 -1
- package/esm/hooks/useItemHighlightedGetter.d.ts +2 -2
- package/esm/hooks/useLegend.d.ts +1 -1
- package/esm/hooks/useSeries.d.ts +1 -1
- package/esm/hooks/useSvgRef.js +1 -1
- package/esm/hooks/useZAxis.d.ts +3 -3
- package/esm/index.js +1 -1
- package/esm/internals/createSeriesSelectorOfType.d.ts +1 -1
- package/esm/internals/createSeriesSelectorOfType.js +1 -1
- package/esm/internals/defaultizeMargin.d.ts +1 -1
- package/esm/internals/geometry.js +1 -1
- package/esm/internals/getPercentageValue.js +1 -1
- package/esm/internals/plugins/allPlugins.d.ts +1 -1
- package/esm/internals/plugins/corePlugins/corePlugins.d.ts +1 -1
- package/esm/internals/plugins/corePlugins/index.d.ts +1 -1
- package/esm/internals/plugins/corePlugins/useChartAnimation/index.d.ts +1 -1
- package/esm/internals/plugins/corePlugins/useChartAnimation/useChartAnimation.d.ts +1 -1
- package/esm/internals/plugins/corePlugins/useChartAnimation/useChartAnimation.selectors.d.ts +3 -3
- package/esm/internals/plugins/corePlugins/useChartAnimation/useChartAnimation.types.d.ts +1 -1
- package/esm/internals/plugins/corePlugins/useChartDimensions/index.d.ts +1 -1
- package/esm/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.d.ts +1 -1
- package/esm/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.js +2 -2
- package/esm/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.selectors.d.ts +142 -142
- package/esm/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.types.d.ts +1 -1
- package/esm/internals/plugins/corePlugins/useChartId/index.d.ts +1 -1
- package/esm/internals/plugins/corePlugins/useChartId/useChartId.selectors.d.ts +2 -2
- package/esm/internals/plugins/corePlugins/useChartSeries/index.d.ts +1 -1
- package/esm/internals/plugins/corePlugins/useChartSeries/processSeries.js +1 -1
- package/esm/internals/plugins/corePlugins/useChartSeries/useChartSeries.selectors.d.ts +20 -20
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/computeAxisValue.d.ts +3 -3
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/defaultizeAxis.d.ts +4 -5
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/defaultizeAxis.js +6 -6
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/getAxisValue.d.ts +3 -3
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/index.d.ts +1 -1
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisSize.selectors.d.ts +68 -68
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxis.js +1 -1
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxis.types.d.ts +18 -14
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisLayout.selectors.d.ts +26 -26
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.d.ts +892 -892
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianInteraction.selectors.d.ts +5 -5
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/zoom.types.d.ts +1 -1
- package/esm/internals/plugins/featurePlugins/useChartHighlight/index.d.ts +2 -2
- package/esm/internals/plugins/featurePlugins/useChartHighlight/useChartHighlight.selectors.d.ts +77 -77
- package/esm/internals/plugins/featurePlugins/useChartInteraction/index.d.ts +1 -1
- package/esm/internals/plugins/featurePlugins/useChartInteraction/useChartInteraction.selectors.d.ts +68 -68
- package/esm/internals/plugins/featurePlugins/useChartPolarAxis/computeAxisValue.d.ts +1 -1
- package/esm/internals/plugins/featurePlugins/useChartPolarAxis/defaultizeAxis.js +1 -1
- package/esm/internals/plugins/featurePlugins/useChartPolarAxis/getAxisIndex.js +1 -1
- package/esm/internals/plugins/featurePlugins/useChartPolarAxis/index.d.ts +1 -1
- package/esm/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.js +1 -1
- package/esm/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.selectors.d.ts +512 -512
- package/esm/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarInteraction.selectors.d.ts +3 -3
- package/esm/internals/plugins/featurePlugins/useChartVoronoi/index.d.ts +1 -1
- package/esm/internals/plugins/featurePlugins/useChartVoronoi/useChartVoronoi.selectors.d.ts +2 -2
- package/esm/internals/plugins/featurePlugins/useChartZAxis/index.d.ts +1 -1
- package/esm/internals/plugins/featurePlugins/useChartZAxis/useChartZAxis.js +1 -1
- package/esm/internals/plugins/featurePlugins/useChartZAxis/useChartZAxis.selectors.d.ts +10 -10
- package/esm/internals/plugins/models/chart.d.ts +3 -3
- package/esm/internals/plugins/models/helpers.d.ts +1 -1
- package/esm/internals/plugins/models/plugin.d.ts +2 -2
- package/esm/internals/plugins/models/seriesConfig/cartesianExtremumGetter.types.d.ts +3 -3
- package/esm/internals/plugins/models/seriesConfig/colorProcessor.types.d.ts +5 -5
- package/esm/internals/plugins/models/seriesConfig/getSeriesWithDefaultValues.types.d.ts +2 -2
- package/esm/internals/plugins/models/seriesConfig/legendGetter.types.d.ts +3 -3
- package/esm/internals/plugins/models/seriesConfig/polarExtremumGetter.types.d.ts +3 -3
- package/esm/internals/plugins/models/seriesConfig/seriesConfig.types.d.ts +6 -6
- package/esm/internals/plugins/models/seriesConfig/seriesProcessor.types.d.ts +3 -3
- package/esm/internals/plugins/models/seriesConfig/tooltipGetter.types.d.ts +4 -4
- package/esm/internals/plugins/utils/ChartStore.d.ts +2 -2
- package/esm/internals/stackSeries.d.ts +1 -1
- package/esm/internals/store/useChartModels.js +2 -2
- package/esm/internals/store/useCharts.d.ts +1 -1
- package/esm/internals/store/useStore.js +1 -1
- package/esm/locales/index.d.ts +1 -1
- package/esm/models/axis.d.ts +15 -3
- package/esm/models/axis.js +8 -0
- package/esm/models/index.d.ts +3 -3
- package/esm/models/seriesType/bar.d.ts +1 -1
- package/esm/models/seriesType/common.d.ts +2 -2
- package/esm/models/seriesType/line.d.ts +1 -1
- package/esm/models/seriesType/pie.d.ts +1 -1
- package/esm/themeAugmentation/components.js +1 -0
- package/esm/themeAugmentation/index.d.ts +3 -3
- package/esm/themeAugmentation/overrides.d.ts +3 -12
- package/esm/themeAugmentation/overrides.js +2 -0
- package/esm/themeAugmentation/props.d.ts +0 -7
- package/esm/themeAugmentation/props.js +2 -0
- package/hooks/animation/useAnimateArea.d.ts +1 -1
- package/hooks/animation/useAnimateBar.d.ts +1 -1
- package/hooks/animation/useAnimateBarLabel.d.ts +1 -1
- package/hooks/animation/useAnimateLine.d.ts +1 -1
- package/hooks/animation/useAnimatePieArc.d.ts +1 -1
- package/hooks/animation/useAnimatePieArcLabel.d.ts +1 -1
- package/hooks/useAxis.d.ts +6 -6
- package/hooks/useChartsLocalization.d.ts +1 -1
- package/hooks/useChartsLocalization.js +1 -1
- package/hooks/useItemHighlightedGetter.d.ts +2 -2
- package/hooks/useLegend.d.ts +1 -1
- package/hooks/useSeries.d.ts +1 -1
- package/hooks/useSvgRef.js +1 -1
- package/hooks/useZAxis.d.ts +3 -3
- package/index.js +1 -1
- package/internals/createSeriesSelectorOfType.d.ts +1 -1
- package/internals/createSeriesSelectorOfType.js +1 -1
- package/internals/defaultizeMargin.d.ts +1 -1
- package/internals/geometry.js +1 -1
- package/internals/getPercentageValue.js +1 -1
- package/internals/plugins/allPlugins.d.ts +1 -1
- package/internals/plugins/corePlugins/corePlugins.d.ts +1 -1
- package/internals/plugins/corePlugins/index.d.ts +1 -1
- package/internals/plugins/corePlugins/useChartAnimation/index.d.ts +1 -1
- package/internals/plugins/corePlugins/useChartAnimation/useChartAnimation.d.ts +1 -1
- package/internals/plugins/corePlugins/useChartAnimation/useChartAnimation.selectors.d.ts +3 -3
- package/internals/plugins/corePlugins/useChartAnimation/useChartAnimation.types.d.ts +1 -1
- package/internals/plugins/corePlugins/useChartDimensions/index.d.ts +1 -1
- package/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.d.ts +1 -1
- package/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.js +2 -2
- package/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.selectors.d.ts +142 -142
- package/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.types.d.ts +1 -1
- package/internals/plugins/corePlugins/useChartId/index.d.ts +1 -1
- package/internals/plugins/corePlugins/useChartId/useChartId.selectors.d.ts +2 -2
- package/internals/plugins/corePlugins/useChartSeries/index.d.ts +1 -1
- package/internals/plugins/corePlugins/useChartSeries/processSeries.js +1 -1
- package/internals/plugins/corePlugins/useChartSeries/useChartSeries.selectors.d.ts +20 -20
- package/internals/plugins/featurePlugins/useChartCartesianAxis/computeAxisValue.d.ts +3 -3
- package/internals/plugins/featurePlugins/useChartCartesianAxis/defaultizeAxis.d.ts +4 -5
- package/internals/plugins/featurePlugins/useChartCartesianAxis/defaultizeAxis.js +6 -6
- package/internals/plugins/featurePlugins/useChartCartesianAxis/getAxisValue.d.ts +3 -3
- package/internals/plugins/featurePlugins/useChartCartesianAxis/index.d.ts +1 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisSize.selectors.d.ts +68 -68
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxis.js +1 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxis.types.d.ts +18 -14
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisLayout.selectors.d.ts +26 -26
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.d.ts +892 -892
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianInteraction.selectors.d.ts +5 -5
- package/internals/plugins/featurePlugins/useChartCartesianAxis/zoom.types.d.ts +1 -1
- package/internals/plugins/featurePlugins/useChartHighlight/index.d.ts +2 -2
- package/internals/plugins/featurePlugins/useChartHighlight/useChartHighlight.selectors.d.ts +77 -77
- package/internals/plugins/featurePlugins/useChartInteraction/index.d.ts +1 -1
- package/internals/plugins/featurePlugins/useChartInteraction/useChartInteraction.selectors.d.ts +68 -68
- package/internals/plugins/featurePlugins/useChartPolarAxis/computeAxisValue.d.ts +1 -1
- package/internals/plugins/featurePlugins/useChartPolarAxis/defaultizeAxis.js +1 -1
- package/internals/plugins/featurePlugins/useChartPolarAxis/getAxisIndex.js +1 -1
- package/internals/plugins/featurePlugins/useChartPolarAxis/index.d.ts +1 -1
- package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.js +1 -1
- package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.selectors.d.ts +512 -512
- package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarInteraction.selectors.d.ts +3 -3
- package/internals/plugins/featurePlugins/useChartVoronoi/index.d.ts +1 -1
- package/internals/plugins/featurePlugins/useChartVoronoi/useChartVoronoi.selectors.d.ts +2 -2
- package/internals/plugins/featurePlugins/useChartZAxis/index.d.ts +1 -1
- package/internals/plugins/featurePlugins/useChartZAxis/useChartZAxis.js +1 -1
- package/internals/plugins/featurePlugins/useChartZAxis/useChartZAxis.selectors.d.ts +10 -10
- package/internals/plugins/models/chart.d.ts +3 -3
- package/internals/plugins/models/helpers.d.ts +1 -1
- package/internals/plugins/models/plugin.d.ts +2 -2
- package/internals/plugins/models/seriesConfig/cartesianExtremumGetter.types.d.ts +3 -3
- package/internals/plugins/models/seriesConfig/colorProcessor.types.d.ts +5 -5
- package/internals/plugins/models/seriesConfig/getSeriesWithDefaultValues.types.d.ts +2 -2
- package/internals/plugins/models/seriesConfig/legendGetter.types.d.ts +3 -3
- package/internals/plugins/models/seriesConfig/polarExtremumGetter.types.d.ts +3 -3
- package/internals/plugins/models/seriesConfig/seriesConfig.types.d.ts +6 -6
- package/internals/plugins/models/seriesConfig/seriesProcessor.types.d.ts +3 -3
- package/internals/plugins/models/seriesConfig/tooltipGetter.types.d.ts +4 -4
- package/internals/plugins/utils/ChartStore.d.ts +2 -2
- package/internals/stackSeries.d.ts +1 -1
- package/internals/store/useChartModels.js +2 -2
- package/internals/store/useCharts.d.ts +1 -1
- package/internals/store/useStore.js +1 -1
- package/locales/index.d.ts +1 -1
- package/models/axis.d.ts +15 -3
- package/models/axis.js +8 -0
- package/models/index.d.ts +3 -3
- package/models/seriesType/bar.d.ts +1 -1
- package/models/seriesType/common.d.ts +2 -2
- package/models/seriesType/line.d.ts +1 -1
- package/models/seriesType/pie.d.ts +1 -1
- package/package.json +2 -2
- package/themeAugmentation/components.js +5 -0
- package/themeAugmentation/index.d.ts +3 -3
- package/themeAugmentation/overrides.d.ts +3 -12
- package/themeAugmentation/overrides.js +5 -0
- package/themeAugmentation/props.d.ts +0 -7
- package/themeAugmentation/props.js +5 -0
- package/colorPalettes/colorPalettes.d.ts +0 -16
- package/colorPalettes/colorPalettes.js +0 -22
- package/esm/colorPalettes/colorPalettes.d.ts +0 -16
- package/esm/colorPalettes/colorPalettes.js +0 -12
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ChartRootSelector } from "../../utils/selectors.js";
|
|
2
2
|
import { UseChartVoronoiSignature } from "./useChartVoronoi.types.js";
|
|
3
|
-
export declare const selectorChartsVoronoiIsVoronoiEnabled: ((state: import("../../corePlugins/useChartId/useChartId.types").UseChartIdState & import("../../corePlugins/useChartDimensions/useChartDimensions.types").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types").UseChartSeriesState<keyof import("
|
|
4
|
-
cacheKey: import("../../models").ChartStateCacheKey;
|
|
3
|
+
export declare const selectorChartsVoronoiIsVoronoiEnabled: ((state: import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & import("./useChartVoronoi.types.js").UseChartVoronoiState & Partial<{}> & {
|
|
4
|
+
cacheKey: import("../../models/index.js").ChartStateCacheKey;
|
|
5
5
|
}) => boolean | undefined) & {
|
|
6
6
|
clearCache: () => void;
|
|
7
7
|
resultsCount: () => number;
|
|
@@ -42,7 +42,7 @@ function getZAxisState(zAxis, dataset) {
|
|
|
42
42
|
return;
|
|
43
43
|
}
|
|
44
44
|
if (dataset === undefined) {
|
|
45
|
-
throw new Error('MUI X: z-axis uses `dataKey` but no `dataset` is provided.');
|
|
45
|
+
throw new Error('MUI X Charts: z-axis uses `dataKey` but no `dataset` is provided.');
|
|
46
46
|
}
|
|
47
47
|
zAxisLookup[defaultizedId] = processColorMap(addDefaultId(_extends({}, axisConfig, {
|
|
48
48
|
data: dataset.map(d => d[dataKey])
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { ChartState } from "../../models/chart.js";
|
|
2
2
|
import { UseChartZAxisSignature } from "./useChartZAxis.types.js";
|
|
3
|
-
export declare const selectorChartZAxis: ((state: import("../../corePlugins/useChartId/useChartId.types").UseChartIdState & import("../../corePlugins/useChartDimensions/useChartDimensions.types").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types").UseChartSeriesState<keyof import("
|
|
4
|
-
cacheKey: import("../../models").ChartStateCacheKey;
|
|
3
|
+
export declare const selectorChartZAxis: ((state: import("../../corePlugins/useChartId/useChartId.types.js").UseChartIdState & import("../../corePlugins/useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../../corePlugins/useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../../corePlugins/useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & import("./useChartZAxis.types.js").UseChartZAxisState & Partial<{}> & {
|
|
4
|
+
cacheKey: import("../../models/index.js").ChartStateCacheKey;
|
|
5
5
|
}) => {
|
|
6
6
|
axis: {
|
|
7
|
-
[axisId: string]: import("
|
|
7
|
+
[axisId: string]: import("../../../index.js").ZAxisDefaultized;
|
|
8
8
|
};
|
|
9
|
-
axisIds: import("
|
|
9
|
+
axisIds: import("../../../index.js").AxisId[];
|
|
10
10
|
}) & {
|
|
11
11
|
clearCache: () => void;
|
|
12
12
|
resultsCount: () => number;
|
|
@@ -14,15 +14,15 @@ export declare const selectorChartZAxis: ((state: import("../../corePlugins/useC
|
|
|
14
14
|
} & {
|
|
15
15
|
resultFunc: (resultFuncArgs_0: ChartState<[UseChartZAxisSignature]>) => {
|
|
16
16
|
axis: {
|
|
17
|
-
[axisId: string]: import("
|
|
17
|
+
[axisId: string]: import("../../../index.js").ZAxisDefaultized;
|
|
18
18
|
};
|
|
19
|
-
axisIds: import("
|
|
19
|
+
axisIds: import("../../../index.js").AxisId[];
|
|
20
20
|
};
|
|
21
21
|
memoizedResultFunc: ((resultFuncArgs_0: ChartState<[UseChartZAxisSignature]>) => {
|
|
22
22
|
axis: {
|
|
23
|
-
[axisId: string]: import("
|
|
23
|
+
[axisId: string]: import("../../../index.js").ZAxisDefaultized;
|
|
24
24
|
};
|
|
25
|
-
axisIds: import("
|
|
25
|
+
axisIds: import("../../../index.js").AxisId[];
|
|
26
26
|
}) & {
|
|
27
27
|
clearCache: () => void;
|
|
28
28
|
resultsCount: () => number;
|
|
@@ -30,9 +30,9 @@ export declare const selectorChartZAxis: ((state: import("../../corePlugins/useC
|
|
|
30
30
|
};
|
|
31
31
|
lastResult: () => {
|
|
32
32
|
axis: {
|
|
33
|
-
[axisId: string]: import("
|
|
33
|
+
[axisId: string]: import("../../../index.js").ZAxisDefaultized;
|
|
34
34
|
};
|
|
35
|
-
axisIds: import("
|
|
35
|
+
axisIds: import("../../../index.js").AxisId[];
|
|
36
36
|
};
|
|
37
37
|
dependencies: [(state: ChartState<[UseChartZAxisSignature]>) => ChartState<[UseChartZAxisSignature]>];
|
|
38
38
|
recomputations: () => number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { ChartAnyPluginSignature } from
|
|
2
|
-
import type { MergeSignaturesProperty } from
|
|
3
|
-
import type { ChartCorePluginSignatures } from
|
|
1
|
+
import type { ChartAnyPluginSignature } from "./plugin.js";
|
|
2
|
+
import type { MergeSignaturesProperty } from "./helpers.js";
|
|
3
|
+
import type { ChartCorePluginSignatures } from "../corePlugins/index.js";
|
|
4
4
|
export type ChartInstance<TSignatures extends readonly ChartAnyPluginSignature[], TOptionalSignatures extends readonly ChartAnyPluginSignature[] = []> = MergeSignaturesProperty<[...ChartCorePluginSignatures, ...TSignatures], 'instance'> & Partial<MergeSignaturesProperty<TOptionalSignatures, 'instance'>>;
|
|
5
5
|
export type ChartPublicAPI<TSignatures extends readonly ChartAnyPluginSignature[], TOptionalSignatures extends readonly ChartAnyPluginSignature[] = []> = MergeSignaturesProperty<[...ChartCorePluginSignatures, ...TSignatures], 'publicAPI'> & Partial<MergeSignaturesProperty<TOptionalSignatures, 'instance'>>;
|
|
6
6
|
export type ChartStateCacheKey = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ChartAnyPluginSignature, ChartPlugin } from
|
|
1
|
+
import type { ChartAnyPluginSignature, ChartPlugin } from "./plugin.js";
|
|
2
2
|
type IsAny<T> = 0 extends 1 & T ? true : false;
|
|
3
3
|
export type OptionalIfEmpty<A extends string, B> = keyof B extends never ? Partial<Record<A, B>> : IsAny<B> extends true ? Partial<Record<A, B>> : Record<A, B>;
|
|
4
4
|
export type MergeSignaturesProperty<TSignatures extends readonly any[], TProperty extends keyof ChartAnyPluginSignature> = TSignatures extends readonly [plugin: infer P, ...otherPlugin: infer R] ? P extends ChartAnyPluginSignature ? P[TProperty] & MergeSignaturesProperty<R, TProperty> : {} : {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import type { MergeSignaturesProperty, OptionalIfEmpty } from
|
|
3
|
-
import type { ChartCorePluginSignatures } from
|
|
2
|
+
import type { MergeSignaturesProperty, OptionalIfEmpty } from "./helpers.js";
|
|
3
|
+
import type { ChartCorePluginSignatures } from "../corePlugins/index.js";
|
|
4
4
|
import { ChartStore } from "../utils/ChartStore.js";
|
|
5
5
|
import { ChartSeriesConfig } from "./seriesConfig/index.js";
|
|
6
6
|
export interface ChartPluginOptions<TSignature extends ChartAnyPluginSignature> {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { CartesianChartSeriesType, ChartSeriesDefaultized } from
|
|
2
|
-
import type { AxisConfig, AxisId } from
|
|
3
|
-
import type { SeriesId } from
|
|
1
|
+
import type { CartesianChartSeriesType, ChartSeriesDefaultized } from "../../../../models/seriesType/config.js";
|
|
2
|
+
import type { AxisConfig, AxisId } from "../../../../models/axis.js";
|
|
3
|
+
import type { SeriesId } from "../../../../models/seriesType/common.js";
|
|
4
4
|
type CartesianExtremumGetterParams<TSeriesType extends CartesianChartSeriesType> = {
|
|
5
5
|
series: Record<SeriesId, ChartSeriesDefaultized<TSeriesType>>;
|
|
6
6
|
axis: AxisConfig;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { DefaultizedSeriesType } from
|
|
3
|
-
import type { ZAxisDefaultized } from
|
|
4
|
-
import type { ChartSeriesType } from
|
|
1
|
+
import type { ComputedXAxis, ComputedYAxis } from "../../../../models/axis.js";
|
|
2
|
+
import type { DefaultizedSeriesType } from "../../../../models/seriesType/index.js";
|
|
3
|
+
import type { ZAxisDefaultized } from "../../../../models/z-axis.js";
|
|
4
|
+
import type { ChartSeriesType } from "../../../../models/seriesType/config.js";
|
|
5
5
|
/**
|
|
6
6
|
* Map data index to a color.
|
|
7
7
|
* If dataIndex is not defined, it falls back to the series color when defined.
|
|
@@ -11,4 +11,4 @@ export type ColorGetter<TSeriesType extends ChartSeriesType> = TSeriesType exten
|
|
|
11
11
|
* Transforms charts config to a color getter.
|
|
12
12
|
* If dataIndex is not defined, it falls back to the series color.
|
|
13
13
|
*/
|
|
14
|
-
export type ColorProcessor<TSeriesType extends ChartSeriesType> = (series: DefaultizedSeriesType<TSeriesType>, xAxis?:
|
|
14
|
+
export type ColorProcessor<TSeriesType extends ChartSeriesType> = (series: DefaultizedSeriesType<TSeriesType>, xAxis?: ComputedXAxis, yAxis?: ComputedYAxis, zAxis?: ZAxisDefaultized) => ColorGetter<TSeriesType>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { ChartSeries, ChartSeriesType } from
|
|
2
|
-
import type { AllSeriesType } from
|
|
1
|
+
import type { ChartSeries, ChartSeriesType } from "../../../../models/seriesType/config.js";
|
|
2
|
+
import type { AllSeriesType } from "../../../../models/seriesType/index.js";
|
|
3
3
|
export type GetSeriesWithDefaultValues<T extends ChartSeriesType> = (series: AllSeriesType<T>, seriesIndex: number, colors: string[]) => ChartSeries<T>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { LegendItemParams } from
|
|
2
|
-
import type { ChartSeriesType } from
|
|
3
|
-
import type { SeriesProcessorResult } from
|
|
1
|
+
import type { LegendItemParams } from "../../../../ChartsLegend/index.js";
|
|
2
|
+
import type { ChartSeriesType } from "../../../../models/seriesType/config.js";
|
|
3
|
+
import type { SeriesProcessorResult } from "./seriesProcessor.types.js";
|
|
4
4
|
export type LegendGetter<T extends ChartSeriesType> = (series: SeriesProcessorResult<T>) => LegendItemParams[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { PolarChartSeriesType, ChartSeriesDefaultized } from
|
|
2
|
-
import type { AxisConfig } from
|
|
3
|
-
import type { SeriesId } from
|
|
1
|
+
import type { PolarChartSeriesType, ChartSeriesDefaultized } from "../../../../models/seriesType/config.js";
|
|
2
|
+
import type { AxisConfig } from "../../../../models/axis.js";
|
|
3
|
+
import type { SeriesId } from "../../../../models/seriesType/common.js";
|
|
4
4
|
type PolarExtremumGetterParams<TSeriesType extends PolarChartSeriesType> = {
|
|
5
5
|
series: Record<SeriesId, ChartSeriesDefaultized<TSeriesType>>;
|
|
6
6
|
axis: AxisConfig;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type { SeriesProcessor } from
|
|
2
|
-
import type { CartesianChartSeriesType, ChartSeriesType, PolarChartSeriesType } from
|
|
3
|
-
import type { ColorProcessor } from
|
|
4
|
-
import type { CartesianExtremumGetter } from
|
|
5
|
-
import type { LegendGetter } from
|
|
6
|
-
import type { AxisTooltipGetter, TooltipGetter } from
|
|
1
|
+
import type { SeriesProcessor } from "./seriesProcessor.types.js";
|
|
2
|
+
import type { CartesianChartSeriesType, ChartSeriesType, PolarChartSeriesType } from "../../../../models/seriesType/config.js";
|
|
3
|
+
import type { ColorProcessor } from "./colorProcessor.types.js";
|
|
4
|
+
import type { CartesianExtremumGetter } from "./cartesianExtremumGetter.types.js";
|
|
5
|
+
import type { LegendGetter } from "./legendGetter.types.js";
|
|
6
|
+
import type { AxisTooltipGetter, TooltipGetter } from "./tooltipGetter.types.js";
|
|
7
7
|
import { PolarExtremumGetter } from "./polarExtremumGetter.types.js";
|
|
8
8
|
import { GetSeriesWithDefaultValues } from "./getSeriesWithDefaultValues.types.js";
|
|
9
9
|
export type ChartSeriesTypeConfig<TSeriesType extends ChartSeriesType> = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { ChartSeriesDefaultized, ChartSeriesType, ChartsSeriesConfig, DatasetType } from
|
|
2
|
-
import type { SeriesId } from
|
|
3
|
-
import type { StackingGroupsType } from
|
|
1
|
+
import type { ChartSeriesDefaultized, ChartSeriesType, ChartsSeriesConfig, DatasetType } from "../../../../models/seriesType/config.js";
|
|
2
|
+
import type { SeriesId } from "../../../../models/seriesType/common.js";
|
|
3
|
+
import type { StackingGroupsType } from "../../../stackSeries.js";
|
|
4
4
|
export type SeriesProcessorParams<TSeriesType extends ChartSeriesType> = {
|
|
5
5
|
series: Record<SeriesId, ChartsSeriesConfig[TSeriesType]['seriesInput']>;
|
|
6
6
|
seriesOrder: SeriesId[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { ChartItemIdentifier, ChartSeriesDefaultized, ChartSeriesType, ChartsSeriesConfig } from
|
|
1
|
+
import type { ChartItemIdentifier, ChartSeriesDefaultized, ChartSeriesType, ChartsSeriesConfig } from "../../../../models/seriesType/config.js";
|
|
2
2
|
import { SeriesId } from "../../../../models/seriesType/common.js";
|
|
3
|
-
import {
|
|
3
|
+
import { AxisId, ChartsRotationAxisProps, ChartsRadiusAxisProps, PolarAxisDefaultized, ComputedXAxis, ComputedYAxis } from "../../../../models/axis.js";
|
|
4
4
|
import { ChartsLabelMarkProps } from "../../../../ChartsLabel/ChartsLabelMark.js";
|
|
5
5
|
import { ColorGetter } from "./colorProcessor.types.js";
|
|
6
6
|
export interface ItemTooltip<T extends ChartSeriesType> {
|
|
@@ -50,8 +50,8 @@ export type ItemTooltipWithMultipleValues<T extends 'radar' = 'radar'> = Pick<It
|
|
|
50
50
|
}[];
|
|
51
51
|
};
|
|
52
52
|
export interface TooltipGetterAxesConfig {
|
|
53
|
-
x?:
|
|
54
|
-
y?:
|
|
53
|
+
x?: ComputedXAxis;
|
|
54
|
+
y?: ComputedYAxis;
|
|
55
55
|
rotation?: PolarAxisDefaultized<any, any, ChartsRotationAxisProps>;
|
|
56
56
|
radius?: PolarAxisDefaultized<any, any, ChartsRadiusAxisProps>;
|
|
57
57
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ChartState } from
|
|
2
|
-
import type { ChartAnyPluginSignature } from
|
|
1
|
+
import type { ChartState } from "../models/chart.js";
|
|
2
|
+
import type { ChartAnyPluginSignature } from "../models/plugin.js";
|
|
3
3
|
type Listener<T> = (value: T) => void;
|
|
4
4
|
export type StoreUpdater<TSignatures extends readonly ChartAnyPluginSignature[], TOptionalSignatures extends readonly ChartAnyPluginSignature[] = []> = (prevState: ChartState<TSignatures, TOptionalSignatures>) => ChartState<TSignatures, TOptionalSignatures>;
|
|
5
5
|
export declare class ChartStore<TSignatures extends readonly ChartAnyPluginSignature[], TOptionalSignatures extends readonly ChartAnyPluginSignature[] = []> {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Series } from '@mui/x-charts-vendor/d3-shape';
|
|
2
|
-
import type { StackOffsetType, StackOrderType } from
|
|
2
|
+
import type { StackOffsetType, StackOrderType } from "../models/stacking.js";
|
|
3
3
|
import { SeriesId, StackableSeriesType } from "../models/seriesType/common.js";
|
|
4
4
|
type FormatterParams<T> = {
|
|
5
5
|
series: Record<SeriesId, T>;
|
|
@@ -45,7 +45,7 @@ export const useChartModels = (plugins, props) => {
|
|
|
45
45
|
/* eslint-disable react-hooks/rules-of-hooks, react-hooks/exhaustive-deps, react-compiler/react-compiler */
|
|
46
46
|
React.useEffect(() => {
|
|
47
47
|
if (model.isControlled !== (controlled !== undefined)) {
|
|
48
|
-
console.error([`MUI X: A component is changing the ${model.isControlled ? '' : 'un'}controlled ${modelName} state of Chart to be ${model.isControlled ? 'un' : ''}controlled.`, 'Elements should not switch from uncontrolled to controlled (or vice versa).', `Decide between using a controlled or uncontrolled ${modelName} ` + 'element for the lifetime of the component.', "The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.", 'More info: https://fb.me/react-controlled-components'].join('\n'));
|
|
48
|
+
console.error([`MUI X Charts: A component is changing the ${model.isControlled ? '' : 'un'}controlled ${modelName} state of Chart to be ${model.isControlled ? 'un' : ''}controlled.`, 'Elements should not switch from uncontrolled to controlled (or vice versa).', `Decide between using a controlled or uncontrolled ${modelName} ` + 'element for the lifetime of the component.', "The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.", 'More info: https://fb.me/react-controlled-components'].join('\n'));
|
|
49
49
|
}
|
|
50
50
|
}, [controlled]);
|
|
51
51
|
const {
|
|
@@ -53,7 +53,7 @@ export const useChartModels = (plugins, props) => {
|
|
|
53
53
|
} = React.useRef(newDefaultValue);
|
|
54
54
|
React.useEffect(() => {
|
|
55
55
|
if (!model.isControlled && defaultValue !== newDefaultValue) {
|
|
56
|
-
console.error([`MUI X: A component is changing the default ${modelName} state of an uncontrolled Chart after being initialized. ` + `To suppress this warning opt to use a controlled Chart.`].join('\n'));
|
|
56
|
+
console.error([`MUI X Charts: A component is changing the default ${modelName} state of an uncontrolled Chart after being initialized. ` + `To suppress this warning opt to use a controlled Chart.`].join('\n'));
|
|
57
57
|
}
|
|
58
58
|
}, [JSON.stringify(newDefaultValue)]);
|
|
59
59
|
});
|
|
@@ -16,7 +16,7 @@ import { ChartSeriesConfig } from "../plugins/models/seriesConfig/index.js";
|
|
|
16
16
|
*/
|
|
17
17
|
export declare function useCharts<TSeriesType extends ChartSeriesType, TSignatures extends readonly ChartAnyPluginSignature[]>(inPlugins: ConvertSignaturesIntoPlugins<TSignatures>, props: Partial<UseChartBaseProps<TSignatures>>, seriesConfig: ChartSeriesConfig<TSeriesType>): {
|
|
18
18
|
contextValue: {
|
|
19
|
-
store: ChartStore<readonly [import("
|
|
19
|
+
store: ChartStore<readonly [import("../index.js").UseChartIdSignature, import("../index.js").UseChartDimensionsSignature, import("../index.js").UseChartSeriesSignature, import("../plugins/corePlugins/useChartAnimation/index.js").UseChartAnimationSignature, ...TSignatures]> & UseChartInteractionState;
|
|
20
20
|
publicAPI: ChartPublicAPI<TSignatures>;
|
|
21
21
|
instance: ChartInstance<TSignatures>;
|
|
22
22
|
svgRef: React.RefObject<SVGSVGElement | null>;
|
|
@@ -3,7 +3,7 @@ import { useChartContext } from "../../context/ChartProvider/index.js";
|
|
|
3
3
|
export function useStore() {
|
|
4
4
|
const context = useChartContext();
|
|
5
5
|
if (!context) {
|
|
6
|
-
throw new Error(['MUI X: Could not find the charts context.', 'It looks like you rendered your component outside of a ChartContainer parent component.'].join('\n'));
|
|
6
|
+
throw new Error(['MUI X Charts: Could not find the charts context.', 'It looks like you rendered your component outside of a ChartContainer parent component.'].join('\n'));
|
|
7
7
|
}
|
|
8
8
|
return context.store;
|
|
9
9
|
}
|
package/esm/locales/index.d.ts
CHANGED
package/esm/models/axis.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import type { ScaleBand, ScaleLinear, ScaleLogarithmic, ScaleOrdinal, ScalePoint
|
|
|
2
2
|
import { SxProps } from '@mui/system/styleFunctionSx';
|
|
3
3
|
import { type MakeOptional, MakeRequired } from '@mui/x-internals/types';
|
|
4
4
|
import { ChartsAxisClasses } from "../ChartsAxis/axisClasses.js";
|
|
5
|
-
import type { TickParams } from
|
|
5
|
+
import type { TickParams } from "../hooks/useTicks.js";
|
|
6
6
|
import { ChartsTextProps } from "../ChartsText/index.js";
|
|
7
7
|
import { ContinuousColorConfig, OrdinalColorConfig, PiecewiseColorConfig } from "./colorMapping.js";
|
|
8
8
|
export type AxisId = string | number;
|
|
@@ -289,7 +289,9 @@ export type AxisValueFormatterContext<S extends ScaleName = ScaleName> = {
|
|
|
289
289
|
*/
|
|
290
290
|
type CommonAxisConfig<S extends ScaleName = ScaleName, V = any> = {
|
|
291
291
|
/**
|
|
292
|
-
*
|
|
292
|
+
* ID used to identify the axis.
|
|
293
|
+
*
|
|
294
|
+
* The ID must be unique across all axes in this chart.
|
|
293
295
|
*/
|
|
294
296
|
id: AxisId;
|
|
295
297
|
/**
|
|
@@ -368,7 +370,7 @@ export type PolarAxisDefaultized<S extends ScaleName = ScaleName, V = any, AxisP
|
|
|
368
370
|
*/
|
|
369
371
|
triggerTooltip?: boolean;
|
|
370
372
|
};
|
|
371
|
-
export type
|
|
373
|
+
export type ComputedAxis<S extends ScaleName = ScaleName, V = any, AxisProps extends ChartsAxisProps = ChartsXAxisProps | ChartsYAxisProps> = MakeRequired<Omit<AxisConfig<S, V, AxisProps>, 'scaleType'>, 'offset'> & AxisScaleConfig[S] & AxisScaleComputedConfig[S] & {
|
|
372
374
|
/**
|
|
373
375
|
* An indication of the expected number of ticks.
|
|
374
376
|
*/
|
|
@@ -378,6 +380,8 @@ export type AxisDefaultized<S extends ScaleName = ScaleName, V = any, AxisProps
|
|
|
378
380
|
*/
|
|
379
381
|
triggerTooltip?: boolean;
|
|
380
382
|
} & (AxisProps extends ChartsXAxisProps ? MakeRequired<AxisSideConfig<AxisProps>, 'height'> : AxisProps extends ChartsYAxisProps ? MakeRequired<AxisSideConfig<AxisProps>, 'width'> : AxisSideConfig<AxisProps>);
|
|
383
|
+
export type ComputedXAxis<S extends ScaleName = ScaleName, V = any> = ComputedAxis<S, V, ChartsXAxisProps>;
|
|
384
|
+
export type ComputedYAxis<S extends ScaleName = ScaleName, V = any> = ComputedAxis<S, V, ChartsYAxisProps>;
|
|
381
385
|
export declare function isBandScaleConfig(scaleConfig: AxisConfig<ScaleName>): scaleConfig is AxisConfig<'band'> & {
|
|
382
386
|
scaleType: 'band';
|
|
383
387
|
};
|
|
@@ -405,4 +409,12 @@ export type XAxis<S extends ScaleName = ScaleName, V = any> = S extends ScaleNam
|
|
|
405
409
|
export type YAxis<S extends ScaleName = ScaleName, V = any> = S extends ScaleName ? MakeOptional<AxisConfig<S, V, ChartsYAxisProps>, 'id'> : never;
|
|
406
410
|
export type RotationAxis<S extends ScaleName = ScaleName, V = any> = S extends ScaleName ? AxisConfig<S, V, ChartsRotationAxisProps> : never;
|
|
407
411
|
export type RadiusAxis<S extends 'linear' = 'linear', V = any> = S extends 'linear' ? AxisConfig<S, V, ChartsRadiusAxisProps> : never;
|
|
412
|
+
/**
|
|
413
|
+
* The x-axis configuration with missing values filled with default values.
|
|
414
|
+
*/
|
|
415
|
+
export type DefaultedXAxis<S extends ScaleName = ScaleName, V = any> = AxisConfig<S, V, ChartsXAxisProps>;
|
|
416
|
+
/**
|
|
417
|
+
* The y-axis configuration with missing values filled with default values.
|
|
418
|
+
*/
|
|
419
|
+
export type DefaultedYAxis<S extends ScaleName = ScaleName, V = any> = AxisConfig<S, V, ChartsYAxisProps>;
|
|
408
420
|
export {};
|
package/esm/models/axis.js
CHANGED
|
@@ -20,4 +20,12 @@ export function isPointScaleConfig(scaleConfig) {
|
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
22
|
* The data format returned by onAxisClick.
|
|
23
|
+
*/
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* The x-axis configuration with missing values filled with default values.
|
|
27
|
+
*/
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* The y-axis configuration with missing values filled with default values.
|
|
23
31
|
*/
|
package/esm/models/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export * from "./seriesType/index.js";
|
|
2
2
|
export * from "./stacking.js";
|
|
3
|
-
export type { AxisConfig, ChartsYAxisProps, ChartsXAxisProps, ScaleName, ContinuousScaleName, ChartsAxisData, XAxis, YAxis, RadiusAxis, RotationAxis } from
|
|
3
|
+
export type { AxisConfig, ChartsYAxisProps, ChartsXAxisProps, ScaleName, ContinuousScaleName, ChartsAxisData, XAxis, YAxis, RadiusAxis, RotationAxis } from "./axis.js";
|
|
4
4
|
export type { PropsFromSlot } from '@mui/x-internals/slots';
|
|
5
|
-
export type { Position } from
|
|
6
|
-
export type { CurveType } from
|
|
5
|
+
export type { Position } from "./position.js";
|
|
6
|
+
export type { CurveType } from "./curve.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DefaultizedProps } from '@mui/x-internals/types';
|
|
2
|
-
import type { StackOffsetType } from
|
|
2
|
+
import type { StackOffsetType } from "../stacking.js";
|
|
3
3
|
import { CartesianSeriesType, CommonSeriesType, CommonDefaultizedProps, StackableSeriesType } from "./common.js";
|
|
4
4
|
export interface BarSeriesType extends CommonSeriesType<number | null>, CartesianSeriesType, StackableSeriesType {
|
|
5
5
|
type: 'bar';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { ChartsLabelMarkProps } from
|
|
1
|
+
import type { ChartsLabelMarkProps } from "../../ChartsLabel/index.js";
|
|
2
2
|
import { HighlightScope } from "../../internals/plugins/featurePlugins/useChartHighlight/highlightConfig.types.js";
|
|
3
|
-
import type { StackOffsetType, StackOrderType } from
|
|
3
|
+
import type { StackOffsetType, StackOrderType } from "../stacking.js";
|
|
4
4
|
export type SeriesId = number | string;
|
|
5
5
|
export type SeriesValueFormatterContext = {
|
|
6
6
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DefaultizedProps } from '@mui/x-internals/types';
|
|
2
|
-
import type { StackOffsetType } from
|
|
2
|
+
import type { StackOffsetType } from "../stacking.js";
|
|
3
3
|
import { CartesianSeriesType, CommonDefaultizedProps, CommonSeriesType, SeriesId, StackableSeriesType } from "./common.js";
|
|
4
4
|
import { CurveType } from "../curve.js";
|
|
5
5
|
export interface ShowMarkParams<AxisValue = number | Date> {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PieArcDatum as D3PieArcDatum } from '@mui/x-charts-vendor/d3-shape';
|
|
2
2
|
import { DefaultizedProps } from '@mui/x-internals/types';
|
|
3
3
|
import { CommonDefaultizedProps, CommonSeriesType, SeriesId } from "./common.js";
|
|
4
|
-
import type { ChartsLabelMarkProps } from
|
|
4
|
+
import type { ChartsLabelMarkProps } from "../../ChartsLabel/index.js";
|
|
5
5
|
export type PieItemId = string | number;
|
|
6
6
|
export type PieValueType = {
|
|
7
7
|
/**
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export type * from
|
|
2
|
-
export type * from
|
|
3
|
-
export type * from
|
|
1
|
+
export type * from "./overrides.js";
|
|
2
|
+
export type * from "./props.js";
|
|
3
|
+
export type * from "./components.js";
|
|
@@ -5,30 +5,21 @@ import { ChartsGridClassKey } from "../ChartsGrid/index.js";
|
|
|
5
5
|
import { ChartsTooltipClassKey } from "../ChartsTooltip/index.js";
|
|
6
6
|
import { AreaElementClassKey, LineElementClassKey, MarkElementClassKey } from "../LineChart/index.js";
|
|
7
7
|
export interface ChartsComponentNameToClassKey {
|
|
8
|
-
MuiChartsAxis: 'root';
|
|
9
|
-
MuiChartsXAxis: 'root';
|
|
10
|
-
MuiChartsYAxis: 'root';
|
|
11
|
-
|
|
8
|
+
MuiChartsAxis: 'root';
|
|
9
|
+
MuiChartsXAxis: 'root';
|
|
10
|
+
MuiChartsYAxis: 'root';
|
|
12
11
|
MuiChartsAxisHighlight: ChartsAxisHighlightClassKey;
|
|
13
12
|
MuiChartsLegend: 'root';
|
|
14
13
|
MuiChartsGrid: ChartsGridClassKey;
|
|
15
14
|
MuiChartsTooltip: ChartsTooltipClassKey;
|
|
16
15
|
MuiChartsSurface: 'root';
|
|
17
|
-
|
|
18
|
-
// BarChart components
|
|
19
16
|
MuiBarElement: BarElementClassKey;
|
|
20
17
|
MuiBarLabel: BarLabelClassKey;
|
|
21
|
-
|
|
22
|
-
// LineChart components
|
|
23
18
|
MuiAreaElement: AreaElementClassKey;
|
|
24
19
|
MuiLineElement: LineElementClassKey;
|
|
25
20
|
MuiMarkElement: MarkElementClassKey;
|
|
26
|
-
|
|
27
|
-
// ScatterChart components
|
|
28
21
|
}
|
|
29
22
|
declare module '@mui/material/styles' {
|
|
30
23
|
interface ComponentNameToClassKey extends ChartsComponentNameToClassKey {}
|
|
31
24
|
}
|
|
32
|
-
|
|
33
|
-
// disable automatic export
|
|
34
25
|
export {};
|
|
@@ -17,20 +17,13 @@ export interface ChartsComponentsPropsList {
|
|
|
17
17
|
MuiChartsLocalizationProvider: ChartsLocalizationProviderProps;
|
|
18
18
|
MuiChartsTooltip: ChartsTooltipProps;
|
|
19
19
|
MuiChartsSurface: ChartsSurfaceProps;
|
|
20
|
-
|
|
21
|
-
// BarChart components
|
|
22
20
|
MuiBarChart: BarChartProps;
|
|
23
21
|
MuiBarLabel: BarLabelProps;
|
|
24
|
-
// LineChart components
|
|
25
22
|
MuiLineChart: LineChartProps;
|
|
26
|
-
// ScatterChart components
|
|
27
23
|
MuiScatterChart: ScatterChartProps;
|
|
28
|
-
// PieChart components
|
|
29
24
|
MuiPieChart: PieChartProps;
|
|
30
25
|
}
|
|
31
26
|
declare module '@mui/material/styles' {
|
|
32
27
|
interface ComponentsPropsList extends ChartsComponentsPropsList {}
|
|
33
28
|
}
|
|
34
|
-
|
|
35
|
-
// disable automatic export
|
|
36
29
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import type { AnimatedAreaProps } from
|
|
2
|
+
import type { AnimatedAreaProps } from "../../LineChart/index.js";
|
|
3
3
|
type UseAnimateAreaParams = Pick<AnimatedAreaProps, 'd' | 'skipAnimation'> & {
|
|
4
4
|
ref?: React.Ref<SVGPathElement>;
|
|
5
5
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import type { BarProps } from
|
|
2
|
+
import type { BarProps } from "../../BarChart/AnimatedBarElement.js";
|
|
3
3
|
type UseAnimateBarParams = Pick<BarProps, 'x' | 'y' | 'xOrigin' | 'yOrigin' | 'width' | 'height' | 'skipAnimation' | 'layout'> & {
|
|
4
4
|
ref?: React.Ref<SVGRectElement>;
|
|
5
5
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import type { BarLabelProps } from
|
|
2
|
+
import type { BarLabelProps } from "../../BarChart/index.js";
|
|
3
3
|
type UseAnimateBarLabelParams = Pick<BarLabelProps, 'xOrigin' | 'yOrigin' | 'x' | 'y' | 'width' | 'height' | 'layout' | 'skipAnimation'> & {
|
|
4
4
|
ref?: React.Ref<SVGTextElement>;
|
|
5
5
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import type { AnimatedLineProps } from
|
|
2
|
+
import type { AnimatedLineProps } from "../../LineChart/index.js";
|
|
3
3
|
type UseAnimateLineParams = Pick<AnimatedLineProps, 'd' | 'skipAnimation'> & {
|
|
4
4
|
ref?: React.Ref<SVGPathElement>;
|
|
5
5
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import type { PieArcProps } from
|
|
2
|
+
import type { PieArcProps } from "../../PieChart/index.js";
|
|
3
3
|
type UseAnimatePieArcParams = Pick<PieArcProps, 'startAngle' | 'endAngle' | 'cornerRadius' | 'paddingAngle' | 'innerRadius' | 'outerRadius' | 'skipAnimation'> & {
|
|
4
4
|
ref?: React.Ref<SVGPathElement>;
|
|
5
5
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import type { PieArcLabelProps } from
|
|
2
|
+
import type { PieArcLabelProps } from "../../PieChart/index.js";
|
|
3
3
|
type UseAnimatePieArcLabelParams = Pick<PieArcLabelProps, 'startAngle' | 'endAngle' | 'cornerRadius' | 'paddingAngle' | 'innerRadius' | 'outerRadius' | 'skipAnimation'> & {
|
|
4
4
|
ref?: React.Ref<SVGTextElement>;
|
|
5
5
|
};
|
package/hooks/useAxis.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ import { AxisId, ChartsRadiusAxisProps, ChartsRotationAxisProps, PolarAxisDefaul
|
|
|
10
10
|
* @returns `{ xAxis, xAxisIds }` - The x-axes and their IDs.
|
|
11
11
|
*/
|
|
12
12
|
export declare function useXAxes(): {
|
|
13
|
-
xAxis: import("../internals").
|
|
13
|
+
xAxis: import("../internals/index.js").ComputedAxisConfig<import("../index.js").ChartsXAxisProps>;
|
|
14
14
|
xAxisIds: string[];
|
|
15
15
|
};
|
|
16
16
|
/**
|
|
@@ -24,7 +24,7 @@ export declare function useXAxes(): {
|
|
|
24
24
|
* @returns `{ yAxis, yAxisIds }` - The y-axes and their IDs.
|
|
25
25
|
*/
|
|
26
26
|
export declare function useYAxes(): {
|
|
27
|
-
yAxis: import("../internals").
|
|
27
|
+
yAxis: import("../internals/index.js").ComputedAxisConfig<import("../index.js").ChartsYAxisProps>;
|
|
28
28
|
yAxisIds: string[];
|
|
29
29
|
};
|
|
30
30
|
/**
|
|
@@ -32,19 +32,19 @@ export declare function useYAxes(): {
|
|
|
32
32
|
* @param {AxisId | undefined} axisId - If provided returns the x axis with axisId, else returns the values for the default x axis.
|
|
33
33
|
* @returns The X axis.
|
|
34
34
|
*/
|
|
35
|
-
export declare function useXAxis(axisId?: AxisId): import("../internals").
|
|
35
|
+
export declare function useXAxis(axisId?: AxisId): import("../internals/index.js").ComputedAxis<keyof import("../internals/index.js").AxisScaleConfig, any, import("../index.js").ChartsXAxisProps>;
|
|
36
36
|
/**
|
|
37
37
|
* Get the Y axis.
|
|
38
38
|
* @param {AxisId | undefined} axisId - If provided returns the y axis with axisId, else returns the values for the default y axis.
|
|
39
39
|
* @returns The Y axis.
|
|
40
40
|
*/
|
|
41
|
-
export declare function useYAxis(axisId?: AxisId): import("../internals").
|
|
41
|
+
export declare function useYAxis(axisId?: AxisId): import("../internals/index.js").ComputedAxis<keyof import("../internals/index.js").AxisScaleConfig, any, import("../index.js").ChartsYAxisProps>;
|
|
42
42
|
export declare function useRotationAxes(): {
|
|
43
|
-
rotationAxis: import("../internals/plugins/featurePlugins/useChartPolarAxis/computeAxisValue").DefaultizedAxisConfig<ChartsRotationAxisProps>;
|
|
43
|
+
rotationAxis: import("../internals/plugins/featurePlugins/useChartPolarAxis/computeAxisValue.js").DefaultizedAxisConfig<ChartsRotationAxisProps>;
|
|
44
44
|
rotationAxisIds: string[];
|
|
45
45
|
};
|
|
46
46
|
export declare function useRadiusAxes(): {
|
|
47
|
-
radiusAxis: import("../internals/plugins/featurePlugins/useChartPolarAxis/computeAxisValue").DefaultizedAxisConfig<ChartsRadiusAxisProps>;
|
|
47
|
+
radiusAxis: import("../internals/plugins/featurePlugins/useChartPolarAxis/computeAxisValue.js").DefaultizedAxisConfig<ChartsRadiusAxisProps>;
|
|
48
48
|
radiusAxisIds: string[];
|
|
49
49
|
};
|
|
50
50
|
export declare function useRotationAxis(identifier?: number | string): PolarAxisDefaultized<ScaleName, any, ChartsRotationAxisProps> | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const useChartsLocalization: () => import("../ChartsLocalizationProvider/ChartsLocalizationProvider").ChartsLocalizationContextValue;
|
|
1
|
+
export declare const useChartsLocalization: () => import("../ChartsLocalizationProvider/ChartsLocalizationProvider.js").ChartsLocalizationContextValue;
|
|
@@ -10,7 +10,7 @@ var _ChartsLocalizationProvider = require("../ChartsLocalizationProvider/ChartsL
|
|
|
10
10
|
const useChartsLocalization = () => {
|
|
11
11
|
const localization = React.useContext(_ChartsLocalizationProvider.ChartsLocalizationContext);
|
|
12
12
|
if (localization === null) {
|
|
13
|
-
throw new Error(['MUI X: Can not find the charts localization context.', 'It looks like you forgot to wrap your component in ChartsLocalizationProvider.', 'This can also happen if you are bundling multiple versions of the `@mui/x-charts` package'].join('\n'));
|
|
13
|
+
throw new Error(['MUI X Charts: Can not find the charts localization context.', 'It looks like you forgot to wrap your component in ChartsLocalizationProvider.', 'This can also happen if you are bundling multiple versions of the `@mui/x-charts` package'].join('\n'));
|
|
14
14
|
}
|
|
15
15
|
return localization;
|
|
16
16
|
};
|