@mui/x-charts 8.1.0 → 8.3.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 +233 -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/ChartsClipPath/ChartsClipPath.d.ts +8 -0
- package/ChartsClipPath/ChartsClipPath.js +8 -0
- 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/AppearingMask.js +1 -2
- package/LineChart/AreaPlot.js +2 -2
- package/LineChart/CircleMarkElement.d.ts +10 -0
- package/LineChart/CircleMarkElement.js +5 -15
- package/LineChart/LineChart.js +1 -1
- package/LineChart/LineHighlightPlot.js +1 -1
- package/LineChart/LinePlot.js +2 -2
- package/LineChart/MarkElement.d.ts +10 -0
- package/LineChart/MarkElement.js +15 -15
- package/LineChart/MarkPlot.js +19 -3
- 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/PieArcLabel.js +3 -4
- 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.d.ts +19 -0
- package/SparkLineChart/SparkLineChart.js +53 -16
- package/Toolbar/Toolbar.d.ts +5 -0
- package/Toolbar/Toolbar.js +34 -0
- package/Toolbar/ToolbarButton.d.ts +5 -0
- package/Toolbar/ToolbarButton.js +27 -0
- package/Toolbar/index.d.ts +2 -0
- package/Toolbar/index.js +27 -0
- 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/ChartsClipPath/ChartsClipPath.d.ts +8 -0
- package/esm/ChartsClipPath/ChartsClipPath.js +8 -0
- 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/AppearingMask.js +1 -2
- package/esm/LineChart/AreaPlot.js +2 -2
- package/esm/LineChart/CircleMarkElement.d.ts +10 -0
- package/esm/LineChart/CircleMarkElement.js +5 -15
- package/esm/LineChart/LineChart.js +1 -1
- package/esm/LineChart/LineHighlightPlot.js +1 -1
- package/esm/LineChart/LinePlot.js +2 -2
- package/esm/LineChart/MarkElement.d.ts +10 -0
- package/esm/LineChart/MarkElement.js +15 -15
- package/esm/LineChart/MarkPlot.js +20 -4
- 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/PieArcLabel.js +3 -4
- 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.d.ts +19 -0
- package/esm/SparkLineChart/SparkLineChart.js +53 -16
- package/esm/Toolbar/Toolbar.d.ts +5 -0
- package/esm/Toolbar/Toolbar.js +27 -0
- package/esm/Toolbar/ToolbarButton.d.ts +5 -0
- package/esm/Toolbar/ToolbarButton.js +20 -0
- package/esm/Toolbar/index.d.ts +2 -0
- package/esm/Toolbar/index.js +2 -0
- 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 +11 -2
- package/esm/hooks/animation/useAnimatePieArcLabel.js +4 -4
- 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.d.ts +2 -1
- package/esm/index.js +3 -2
- package/esm/internals/constants.d.ts +4 -0
- package/esm/internals/constants.js +5 -0
- package/esm/internals/createSeriesSelectorOfType.d.ts +1 -1
- package/esm/internals/createSeriesSelectorOfType.js +1 -1
- package/esm/internals/createSvgIcon.d.ts +3 -0
- package/esm/internals/createSvgIcon.js +2 -0
- 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/index.d.ts +4 -1
- package/esm/internals/index.js +4 -1
- package/esm/internals/material/index.d.ts +4 -0
- package/esm/internals/material/index.js +7 -0
- package/esm/internals/plugins/allPlugins.d.ts +1 -1
- package/esm/internals/plugins/corePlugins/corePlugins.d.ts +6 -4
- package/esm/internals/plugins/corePlugins/corePlugins.js +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 +177 -142
- package/esm/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.selectors.js +1 -1
- 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 +6 -7
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/defaultizeAxis.d.ts +12 -5
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/defaultizeAxis.js +22 -10
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/defaultizeZoom.js +7 -2
- 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/useChartAxisSize.selectors.js +5 -4
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxis.js +1 -1
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxis.types.d.ts +20 -15
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisLayout.selectors.d.ts +26 -26
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.d.ts +1051 -892
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.js +2 -1
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianInteraction.selectors.d.ts +5 -5
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/zoom.types.d.ts +11 -1
- package/esm/internals/plugins/featurePlugins/useChartHighlight/index.d.ts +2 -2
- package/esm/internals/plugins/featurePlugins/useChartHighlight/useChartHighlight.js +28 -13
- 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 -2
- package/esm/internals/plugins/models/plugin.d.ts +2 -32
- 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/useCharts.d.ts +2 -2
- package/esm/internals/store/useCharts.js +11 -12
- package/esm/internals/store/useStore.js +1 -1
- package/esm/locales/enUS.d.ts +2 -0
- package/esm/locales/enUS.js +3 -1
- package/esm/locales/frFR.d.ts +2 -0
- package/esm/locales/frFR.js +2 -0
- package/esm/locales/index.d.ts +1 -1
- package/esm/locales/utils/chartsLocaleTextApi.d.ts +8 -0
- package/esm/locales/utils/getChartsLocalization.d.ts +2 -0
- package/esm/models/axis.d.ts +22 -3
- package/esm/models/axis.js +12 -0
- package/esm/models/index.d.ts +4 -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/models/slots/chartsBaseSlotProps.d.ts +13 -0
- package/esm/models/slots/chartsBaseSlotProps.js +1 -0
- package/esm/models/slots/chartsBaseSlots.d.ts +5 -0
- package/esm/models/slots/chartsBaseSlots.js +1 -0
- package/esm/models/slots/chartsIconSlots.d.ts +1 -0
- package/esm/models/slots/chartsIconSlots.js +1 -0
- package/esm/models/slots/index.d.ts +3 -0
- package/esm/models/slots/index.js +3 -0
- 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 +11 -2
- package/hooks/animation/useAnimatePieArcLabel.js +4 -4
- 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.d.ts +2 -1
- package/index.js +12 -1
- package/internals/constants.d.ts +4 -0
- package/internals/constants.js +11 -0
- package/internals/createSeriesSelectorOfType.d.ts +1 -1
- package/internals/createSeriesSelectorOfType.js +1 -1
- package/internals/createSvgIcon.d.ts +3 -0
- package/internals/createSvgIcon.js +8 -0
- package/internals/defaultizeMargin.d.ts +1 -1
- package/internals/geometry.js +1 -1
- package/internals/getPercentageValue.js +1 -1
- package/internals/index.d.ts +4 -1
- package/internals/index.js +36 -0
- package/internals/material/index.d.ts +4 -0
- package/internals/material/index.js +14 -0
- package/internals/plugins/allPlugins.d.ts +1 -1
- package/internals/plugins/corePlugins/corePlugins.d.ts +6 -4
- package/internals/plugins/corePlugins/corePlugins.js +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 +177 -142
- package/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.selectors.js +2 -2
- 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 +6 -7
- package/internals/plugins/featurePlugins/useChartCartesianAxis/defaultizeAxis.d.ts +12 -5
- package/internals/plugins/featurePlugins/useChartCartesianAxis/defaultizeAxis.js +27 -15
- package/internals/plugins/featurePlugins/useChartCartesianAxis/defaultizeZoom.js +7 -2
- 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/useChartAxisSize.selectors.js +5 -4
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxis.js +1 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxis.types.d.ts +20 -15
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisLayout.selectors.d.ts +26 -26
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.d.ts +1051 -892
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.js +3 -2
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianInteraction.selectors.d.ts +5 -5
- package/internals/plugins/featurePlugins/useChartCartesianAxis/zoom.types.d.ts +11 -1
- package/internals/plugins/featurePlugins/useChartHighlight/index.d.ts +2 -2
- package/internals/plugins/featurePlugins/useChartHighlight/useChartHighlight.js +28 -13
- 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 -2
- package/internals/plugins/models/plugin.d.ts +2 -32
- 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/useCharts.d.ts +2 -2
- package/internals/store/useCharts.js +11 -12
- package/internals/store/useStore.js +1 -1
- package/locales/enUS.d.ts +2 -0
- package/locales/enUS.js +3 -1
- package/locales/frFR.d.ts +2 -0
- package/locales/frFR.js +2 -0
- package/locales/index.d.ts +1 -1
- package/locales/utils/chartsLocaleTextApi.d.ts +8 -0
- package/locales/utils/getChartsLocalization.d.ts +2 -0
- package/models/axis.d.ts +22 -3
- package/models/axis.js +12 -0
- package/models/index.d.ts +4 -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/models/slots/chartsBaseSlotProps.d.ts +13 -0
- package/models/slots/chartsBaseSlotProps.js +5 -0
- package/models/slots/chartsBaseSlots.d.ts +5 -0
- package/models/slots/chartsBaseSlots.js +5 -0
- package/models/slots/chartsIconSlots.d.ts +1 -0
- package/models/slots/chartsIconSlots.js +5 -0
- package/models/slots/index.d.ts +3 -0
- package/models/slots/index.js +38 -0
- package/package.json +5 -5
- 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
- package/esm/internals/store/useChartModels.d.ts +0 -7
- package/esm/internals/store/useChartModels.js +0 -64
- package/internals/store/useChartModels.d.ts +0 -7
- package/internals/store/useChartModels.js +0 -73
package/BarChart/BarChart.js
CHANGED
|
@@ -175,7 +175,7 @@ process.env.NODE_ENV !== "production" ? BarChart.propTypes = {
|
|
|
175
175
|
* The function called for onClick events.
|
|
176
176
|
* The second argument contains information about all line/bar elements at the current mouse position.
|
|
177
177
|
* @param {MouseEvent} event The mouse event recorded on the `<svg/>` element.
|
|
178
|
-
* @param {null |
|
|
178
|
+
* @param {null | ChartsAxisData} data The data about the clicked axis and items associated with it.
|
|
179
179
|
*/
|
|
180
180
|
onAxisClick: _propTypes.default.func,
|
|
181
181
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { BarLabel } from "./BarLabel.js";
|
|
2
|
-
export type { BarLabelProps } from
|
|
2
|
+
export type { BarLabelProps } from "./BarLabel.js";
|
|
3
3
|
export { barLabelClasses, getBarLabelUtilityClass } from "./barLabelClasses.js";
|
|
4
|
-
export type { BarLabelSlotProps, BarLabelSlots } from
|
|
5
|
-
export type { BarLabelOwnerState, BarItem, BarLabelContext } from
|
|
6
|
-
export type { BarLabelClasses, BarLabelClassKey } from
|
|
4
|
+
export type { BarLabelSlotProps, BarLabelSlots } from "./BarLabelItem.js";
|
|
5
|
+
export type { BarLabelOwnerState, BarItem, BarLabelContext } from "./BarLabel.types.js";
|
|
6
|
+
export type { BarLabelClasses, BarLabelClassKey } from "./barLabelClasses.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AxisId, ComputedXAxis, ComputedYAxis } from "../models/axis.js";
|
|
2
2
|
import { DefaultizedBarSeriesType } from "../models/seriesType/bar.js";
|
|
3
3
|
import { SeriesId } from "../models/seriesType/common.js";
|
|
4
4
|
export declare function checkScaleErrors(verticalLayout: boolean, seriesId: SeriesId, series: DefaultizedBarSeriesType & {
|
|
5
5
|
stackedData: [number, number][];
|
|
6
6
|
}, xAxisId: AxisId, xAxis: {
|
|
7
|
-
[axisId: AxisId]:
|
|
7
|
+
[axisId: AxisId]: ComputedXAxis;
|
|
8
8
|
}, yAxisId: AxisId, yAxis: {
|
|
9
|
-
[axisId: AxisId]:
|
|
9
|
+
[axisId: AxisId]: ComputedYAxis;
|
|
10
10
|
}): void;
|
|
@@ -23,17 +23,17 @@ function checkScaleErrors(verticalLayout, seriesId, series, xAxisId, xAxis, yAxi
|
|
|
23
23
|
const discreteAxisDirection = verticalLayout ? 'x' : 'y';
|
|
24
24
|
const continuousAxisDirection = verticalLayout ? 'y' : 'x';
|
|
25
25
|
if (!(0, _axis.isBandScaleConfig)(discreteAxisConfig)) {
|
|
26
|
-
throw new Error(`MUI X: ${getAxisMessage(discreteAxisDirection, discreteAxisId)} should be of type "band" to display the bar series of id "${seriesId}".`);
|
|
26
|
+
throw new Error(`MUI X Charts: ${getAxisMessage(discreteAxisDirection, discreteAxisId)} should be of type "band" to display the bar series of id "${seriesId}".`);
|
|
27
27
|
}
|
|
28
28
|
if (discreteAxisConfig.data === undefined) {
|
|
29
|
-
throw new Error(`MUI X: ${getAxisMessage(discreteAxisDirection, discreteAxisId)} should have data property.`);
|
|
29
|
+
throw new Error(`MUI X Charts: ${getAxisMessage(discreteAxisDirection, discreteAxisId)} should have data property.`);
|
|
30
30
|
}
|
|
31
31
|
if ((0, _axis.isBandScaleConfig)(continuousAxisConfig) || (0, _axis.isPointScaleConfig)(continuousAxisConfig)) {
|
|
32
|
-
throw new Error(`MUI X: ${getAxisMessage(continuousAxisDirection, continuousAxisId)} should be a continuous type to display the bar series of id "${seriesId}".`);
|
|
32
|
+
throw new Error(`MUI X Charts: ${getAxisMessage(continuousAxisDirection, continuousAxisId)} should be a continuous type to display the bar series of id "${seriesId}".`);
|
|
33
33
|
}
|
|
34
34
|
if (process.env.NODE_ENV !== 'production') {
|
|
35
35
|
if (discreteAxisConfig.data.length < series.stackedData.length) {
|
|
36
|
-
(0, _warning.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');
|
|
36
|
+
(0, _warning.warnOnce)([`MUI X Charts: ${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');
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
39
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { GetSeriesWithDefaultValues } from
|
|
1
|
+
import type { GetSeriesWithDefaultValues } from "../../internals/plugins/models/seriesConfig/index.js";
|
|
2
2
|
declare const getSeriesWithDefaultValues: GetSeriesWithDefaultValues<'bar'>;
|
|
3
3
|
export default getSeriesWithDefaultValues;
|
|
@@ -32,7 +32,7 @@ const seriesProcessor = (params, dataset) => {
|
|
|
32
32
|
}
|
|
33
33
|
});
|
|
34
34
|
} else if (dataset === undefined) {
|
|
35
|
-
throw new Error([`MUI X: bar series with id='${id}' has no data.`, 'Either provide a data property to the series or use the dataset prop.'].join('\n'));
|
|
35
|
+
throw new Error([`MUI X Charts: bar series with id='${id}' has no data.`, 'Either provide a data property to the series or use the dataset prop.'].join('\n'));
|
|
36
36
|
}
|
|
37
37
|
});
|
|
38
38
|
const completedSeries = {};
|
|
@@ -60,7 +60,7 @@ const seriesProcessor = (params, dataset) => {
|
|
|
60
60
|
if (typeof value !== 'number') {
|
|
61
61
|
if (process.env.NODE_ENV !== 'production') {
|
|
62
62
|
if (value !== null) {
|
|
63
|
-
(0, _warning.warnOnce)([`MUI X: your dataset key "${dataKey}" is used for plotting bars, but contains nonnumerical elements.`, 'Bar plots only support numbers and null values.']);
|
|
63
|
+
(0, _warning.warnOnce)([`MUI X Charts: your dataset key "${dataKey}" is used for plotting bars, but contains nonnumerical elements.`, 'Bar plots only support numbers and null values.']);
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
66
|
return 0;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AxisTooltipGetter, TooltipGetter } from
|
|
1
|
+
import type { AxisTooltipGetter, TooltipGetter } from "../../internals/plugins/models/index.js";
|
|
2
2
|
declare const tooltipGetter: TooltipGetter<'bar'>;
|
|
3
3
|
export declare const axisTooltipGetter: AxisTooltipGetter<'bar', 'x' | 'y'>;
|
|
4
4
|
export default tooltipGetter;
|
package/BarChart/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { BarSeriesType } from
|
|
2
|
-
import type { SeriesId } from
|
|
1
|
+
import type { BarSeriesType } from "../models/index.js";
|
|
2
|
+
import type { SeriesId } from "../models/seriesType/common.js";
|
|
3
3
|
export type AnimationData = {
|
|
4
4
|
x: number;
|
|
5
5
|
y: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import type { BarChartProps } from
|
|
2
|
+
import type { BarChartProps } from "./BarChart.js";
|
|
3
3
|
import { ChartContainerProps } from "../ChartContainer/index.js";
|
|
4
4
|
import { BarPlotProps } from "./BarPlot.js";
|
|
5
5
|
import { ChartsGridProps } from "../ChartsGrid/index.js";
|
|
@@ -8,7 +8,7 @@ import { ChartsOverlayProps } from "../ChartsOverlay/index.js";
|
|
|
8
8
|
import { ChartsAxisProps } from "../ChartsAxis/index.js";
|
|
9
9
|
import { ChartsAxisHighlightProps } from "../ChartsAxisHighlight/index.js";
|
|
10
10
|
import { ChartsLegendSlotExtension } from "../ChartsLegend/index.js";
|
|
11
|
-
import type { ChartsWrapperProps } from
|
|
11
|
+
import type { ChartsWrapperProps } from "../internals/components/ChartsWrapper/index.js";
|
|
12
12
|
import { BarChartPluginsSignatures } from "./BarChart.plugins.js";
|
|
13
13
|
/**
|
|
14
14
|
* A helper function that extracts BarChartProps from the input props
|
|
@@ -70,6 +70,24 @@ const useBarChartProps = props => {
|
|
|
70
70
|
}, s, {
|
|
71
71
|
layout: hasHorizontalSeries ? 'horizontal' : 'vertical'
|
|
72
72
|
})), [hasHorizontalSeries, series]);
|
|
73
|
+
const defaultXAxis = hasHorizontalSeries ? undefined : defaultBandXAxis;
|
|
74
|
+
const processedXAxis = React.useMemo(() => {
|
|
75
|
+
if (!xAxis) {
|
|
76
|
+
return defaultXAxis;
|
|
77
|
+
}
|
|
78
|
+
return hasHorizontalSeries ? xAxis : xAxis.map(axis => (0, _extends2.default)({
|
|
79
|
+
scaleType: 'band'
|
|
80
|
+
}, axis));
|
|
81
|
+
}, [defaultXAxis, hasHorizontalSeries, xAxis]);
|
|
82
|
+
const defaultYAxis = hasHorizontalSeries ? defaultBandYAxis : undefined;
|
|
83
|
+
const processedYAxis = React.useMemo(() => {
|
|
84
|
+
if (!yAxis) {
|
|
85
|
+
return defaultYAxis;
|
|
86
|
+
}
|
|
87
|
+
return hasHorizontalSeries ? yAxis.map(axis => (0, _extends2.default)({
|
|
88
|
+
scaleType: 'band'
|
|
89
|
+
}, axis)) : yAxis;
|
|
90
|
+
}, [defaultYAxis, hasHorizontalSeries, yAxis]);
|
|
73
91
|
const chartContainerProps = (0, _extends2.default)({}, rest, {
|
|
74
92
|
series: seriesWithDefault,
|
|
75
93
|
width,
|
|
@@ -77,8 +95,8 @@ const useBarChartProps = props => {
|
|
|
77
95
|
margin,
|
|
78
96
|
colors,
|
|
79
97
|
dataset,
|
|
80
|
-
xAxis:
|
|
81
|
-
yAxis:
|
|
98
|
+
xAxis: processedXAxis,
|
|
99
|
+
yAxis: processedYAxis,
|
|
82
100
|
highlightedItem,
|
|
83
101
|
onHighlightChange,
|
|
84
102
|
disableAxisListener: slotProps?.tooltip?.trigger !== 'axis' && axisHighlight?.x === 'none' && axisHighlight?.y === 'none',
|
package/CHANGELOG.md
CHANGED
|
@@ -5,13 +5,235 @@
|
|
|
5
5
|
All notable changes to this project will be documented in this file.
|
|
6
6
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
7
7
|
|
|
8
|
+
## 8.3.0
|
|
9
|
+
|
|
10
|
+
_May 8, 2025_
|
|
11
|
+
|
|
12
|
+
We'd like to offer a big thanks to the 11 contributors who made this release possible. Here are some highlights ✨:
|
|
13
|
+
|
|
14
|
+
- 🎨 Added new styling options and shapes for `<FunnelChart />`, including `variant`, `borderRadius`, `pyramid`, and `step-pyramid` curves.
|
|
15
|
+
- 📚 Documentation improvements
|
|
16
|
+
- 🐞 Bugfixes
|
|
17
|
+
|
|
18
|
+
Special thanks go out to this community member for a valuable contribution:
|
|
19
|
+
@ptuukkan.
|
|
20
|
+
Team members who have contributed to this release:
|
|
21
|
+
@alexfauquette, @arminmeh, @bernardobelchior, @flaviendelangle, @Janpot, @JCQuintas, @LukasTy, @MBilalShafi, @rita-codes, @romgrk.
|
|
22
|
+
|
|
23
|
+
### Data Grid
|
|
24
|
+
|
|
25
|
+
#### `@mui/x-data-grid@8.3.0`
|
|
26
|
+
|
|
27
|
+
- [DataGrid] Fix cell editing of computed columns with data source (#17684) @ptuukkan
|
|
28
|
+
- [DataGrid] Fix lazy loading crash with `isRowSelectable` prop (#17629) @MBilalShafi
|
|
29
|
+
- [DataGrid] Fix: use CSS nonce (#17726) @romgrk
|
|
30
|
+
- [DataGrid] Ignore `preProcessEditCellProps` for non-editable columns when starting a row update (#17732) @arminmeh
|
|
31
|
+
- [DataGrid] Avoid applying row selection propagation on filtered rows (#17739) @MBilalShafi
|
|
32
|
+
|
|
33
|
+
#### `@mui/x-data-grid-pro@8.3.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
34
|
+
|
|
35
|
+
Same changes as in `@mui/x-data-grid@8.3.0`.
|
|
36
|
+
|
|
37
|
+
#### `@mui/x-data-grid-premium@8.3.0` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
38
|
+
|
|
39
|
+
Same changes as in `@mui/x-data-grid-pro@8.3.0`.
|
|
40
|
+
|
|
41
|
+
### Date and Time Pickers
|
|
42
|
+
|
|
43
|
+
#### `@mui/x-date-pickers@8.3.0`
|
|
44
|
+
|
|
45
|
+
- [DateTimePicker] Fix focus behavior on desktop variant (#17719) @LukasTy
|
|
46
|
+
- [pickers] Avoid `DigitalClock` stealing focus from a Picker open button on close (#17686) @LukasTy
|
|
47
|
+
|
|
48
|
+
#### `@mui/x-date-pickers-pro@8.3.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
49
|
+
|
|
50
|
+
Same changes as in `@mui/x-date-pickers@8.3.0`, plus:
|
|
51
|
+
|
|
52
|
+
- [DateRangePicker] Fix to reset range position after closing mobile Picker (#17631) @LukasTy
|
|
53
|
+
|
|
54
|
+
### Charts
|
|
55
|
+
|
|
56
|
+
- The `<FunnelChart />` series now accepts a `variant='outlined'` prop for a simpler style.
|
|
57
|
+
<img width="398" alt="Screenshot 2025-05-06 at 20 36 12" src="https://github.com/user-attachments/assets/00fef14f-9026-421e-a4b6-7e081adce1e8" />
|
|
58
|
+
|
|
59
|
+
- Add a `borderRadius` property to `<FunnelChart />`. All funnels have `8px` as a default value.
|
|
60
|
+
<img width="386" alt="Screenshot 2025-05-06 at 14 00 20" src="https://github.com/user-attachments/assets/4f4cc0e7-01ce-4ed6-a0e1-a387f78def23" />
|
|
61
|
+
|
|
62
|
+
- Add a `pyramid` curve to `<FunnelChart />`, which allows creation of a pyramid-shaped funnel.
|
|
63
|
+
<img width="344" alt="Screenshot 2025-05-06 at 14 32 59" src="https://github.com/user-attachments/assets/0b2896e0-0478-4766-bb1b-258a4977a751" />
|
|
64
|
+
|
|
65
|
+
- Add a `step-pyramid` curve to `<FunnelChart />`, which creates a stepped-pyramid like shape.
|
|
66
|
+
<img width="344" alt="Screenshot 2025-05-06 at 14 33 03" src="https://github.com/user-attachments/assets/894f0ab3-7898-40fe-b0df-560feea4085a" />
|
|
67
|
+
|
|
68
|
+
#### `@mui/x-charts@8.3.0`
|
|
69
|
+
|
|
70
|
+
- [charts] Add charts toolbar with zoom options (#17615) @bernardobelchior
|
|
71
|
+
- [charts] Add zoom slider (#17496) @bernardobelchior
|
|
72
|
+
- [charts] Cleanup compiler warnings (#17360) @alexfauquette
|
|
73
|
+
- [charts] Fix `<PieArcLabel />` not taking `arcLabelRadius` into account (#17655) @bernardobelchior
|
|
74
|
+
- [charts] Fix spark line not having clip path (#17501) @bernardobelchior
|
|
75
|
+
- [charts] Fix type issue with ESM (#17624) @alexfauquette
|
|
76
|
+
- [charts] Improve `<MarkElement />` performance (#17546) @bernardobelchior
|
|
77
|
+
- [charts] Rename `materialSlots` internal constant (#17710) @bernardobelchior
|
|
78
|
+
- [charts] Update zoom slider design (#17682) @bernardobelchior
|
|
79
|
+
- [charts] Fix zoom being documented as available for heatmap (#17657) @bernardobelchior
|
|
80
|
+
|
|
81
|
+
#### `@mui/x-charts-pro@8.3.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
82
|
+
|
|
83
|
+
Same changes as in `@mui/x-charts@8.3.0`, plus:
|
|
84
|
+
|
|
85
|
+
- [charts-pro] Add `pyramid` curve to `<FunnelChart />` (#17665) @JCQuintas
|
|
86
|
+
- [charts-pro] Add `variant='outlined'` to `<FunnelChart />` series (#17661) @JCQuintas
|
|
87
|
+
- [charts-pro] Add a `borderRadius` property to `<FunnelChart />` (#17660) @JCQuintas
|
|
88
|
+
|
|
89
|
+
### Tree View
|
|
90
|
+
|
|
91
|
+
#### `@mui/x-tree-view@8.3.0`
|
|
92
|
+
|
|
93
|
+
- [tree view] Bug fix - Escape does not cancel Drag n Drop (#17735) @rita-codes
|
|
94
|
+
- [tree view] Fix keyboard navigation error (#17685) @rita-codes
|
|
95
|
+
- [tree view] Continue cleaning the plugin system (#17386) @flaviendelangle
|
|
96
|
+
|
|
97
|
+
#### `@mui/x-tree-view-pro@8.3.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
98
|
+
|
|
99
|
+
Same changes as in `@mui/x-tree-view@8.3.0`.
|
|
100
|
+
|
|
101
|
+
### Docs
|
|
102
|
+
|
|
103
|
+
- [charts] Add population pyramid demo (#17652) @bernardobelchior
|
|
104
|
+
- [charts] Fix randomised argos test (#17658) @JCQuintas
|
|
105
|
+
- [docs] Make preview messaging consistent in charts @bernardobelchior
|
|
106
|
+
|
|
107
|
+
### Core
|
|
108
|
+
|
|
109
|
+
- [code-infra] Avoid `node` types in the built packages (#17533) @LukasTy
|
|
110
|
+
- [code-infra] Add `pkg.pr.new` publishing (#17402) @Janpot
|
|
111
|
+
- [code-infra] Normalize author package in org @oliviertassinari
|
|
112
|
+
- [code-infra] Remove required checkout step (#17729) @JCQuintas
|
|
113
|
+
- [docs-infra] Normalize netlify.toml in org @oliviertassinari
|
|
114
|
+
|
|
115
|
+
## 8.2.0
|
|
116
|
+
|
|
117
|
+
_May 1, 2025_
|
|
118
|
+
|
|
119
|
+
We'd like to offer a big thanks to the 14 contributors who made this release possible. Here are some highlights ✨:
|
|
120
|
+
|
|
121
|
+
- 📊 `<FunnelChart/>` now uses the `strawberrySky` sequential color palette by default.
|
|
122
|
+
<img width="481" alt="Screenshot 2025-04-29 at 13 55 21" src="https://github.com/user-attachments/assets/182085d1-a7ce-4e4d-9d8d-a4fe87f27167" />
|
|
123
|
+
- 📊 Add API to export a chart as an image: `apiRef.exportAsImage` — [Learn more](https://mui.com/x/react-charts/export/#export-as-image).
|
|
124
|
+
|
|
125
|
+
Special thanks go out to the community members for their valuable contributions:
|
|
126
|
+
@federico-ntr, @nusr.
|
|
127
|
+
Following are all team members who have contributed to this release:
|
|
128
|
+
@alexfauquette, @arminmeh, @bernardobelchior, @hasdfa, @Janpot, @JCQuintas, @KenanYusuf, @LukasTy, @MBilalShafi, @michelengelen, @oliviertassinari, @romgrk.
|
|
129
|
+
|
|
130
|
+
<!--/ HIGHLIGHT_ABOVE_SEPARATOR /-->
|
|
131
|
+
|
|
132
|
+
### Data Grid
|
|
133
|
+
|
|
134
|
+
#### `@mui/x-data-grid@8.2.0`
|
|
135
|
+
|
|
136
|
+
- [DataGrid] Fix panel alignment (#17625) @KenanYusuf
|
|
137
|
+
- [DataGrid] Fix theme `defaultProps` causing unwanted re-renders (#17490) @KenanYusuf
|
|
138
|
+
- [DataGrid] Fix circular reference error (#17591) @romgrk
|
|
139
|
+
- [DataGrid] Fix `<GridEditInputCell />` break input (#16773) @nusr
|
|
140
|
+
|
|
141
|
+
#### `@mui/x-data-grid-pro@8.2.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
142
|
+
|
|
143
|
+
Same changes as in `@mui/x-data-grid@8.2.0`, plus:
|
|
144
|
+
|
|
145
|
+
- [DataGridPro] Use intersection observer to trigger server-side infinite loading (#17369) @arminmeh
|
|
146
|
+
|
|
147
|
+
#### `@mui/x-data-grid-premium@8.2.0` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
148
|
+
|
|
149
|
+
Same changes as in `@mui/x-data-grid-pro@8.2.0`.
|
|
150
|
+
|
|
151
|
+
### Date and Time Pickers
|
|
152
|
+
|
|
153
|
+
#### `@mui/x-date-pickers@8.2.0`
|
|
154
|
+
|
|
155
|
+
- [l10n] Improve Italian (it-IT) locale (#17600) @federico-ntr
|
|
156
|
+
- [pickers] Refactor owner state typing (#17517) @LukasTy
|
|
157
|
+
|
|
158
|
+
#### `@mui/x-date-pickers-pro@8.2.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
159
|
+
|
|
160
|
+
Same changes as in `@mui/x-date-pickers@8.2.0`.
|
|
161
|
+
|
|
162
|
+
### Charts
|
|
163
|
+
|
|
164
|
+
#### `@mui/x-charts@8.2.0`
|
|
165
|
+
|
|
166
|
+
- [charts] Add library name to errors (#17547) @bernardobelchior
|
|
167
|
+
- [charts] Add monochrome palettes (#17610) @JCQuintas
|
|
168
|
+
- [charts] Add screenshot of the tooltip (#17395) @alexfauquette
|
|
169
|
+
- [charts] Default bar chart x-axis scale type to band (#17519) @bernardobelchior
|
|
170
|
+
- [charts] Document axis ID uniqueness constraints (#17630) @bernardobelchior
|
|
171
|
+
- [charts] Refactor axis types (#17632) @bernardobelchior
|
|
172
|
+
- [charts] Use `<circle />` for circular legend mark (#17590) @alexfauquette
|
|
173
|
+
|
|
174
|
+
#### `@mui/x-charts-pro@8.2.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
175
|
+
|
|
176
|
+
Same changes as in `@mui/x-charts@8.2.0`, plus:
|
|
177
|
+
|
|
178
|
+
- [charts-pro] Add `gap` option to `<FunnelChart />` (#17642) @JCQuintas
|
|
179
|
+
- [charts-pro] Export charts as image (#17353) @bernardobelchior
|
|
180
|
+
- [charts-pro] Simplify zoom testing (#17525) @JCQuintas
|
|
181
|
+
- [charts-pro] Use new sequential color palette in `<FunnelChart />` (#17606) @JCQuintas
|
|
182
|
+
|
|
183
|
+
### Tree View
|
|
184
|
+
|
|
185
|
+
#### `@mui/x-tree-view@8.2.0`
|
|
186
|
+
|
|
187
|
+
Internal changes.
|
|
188
|
+
|
|
189
|
+
#### `@mui/x-tree-view-pro@8.2.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
190
|
+
|
|
191
|
+
Same changes as in `@mui/x-tree-view@8.2.0`.
|
|
192
|
+
|
|
193
|
+
### Docs
|
|
194
|
+
|
|
195
|
+
- [docs][charts] Add composition sections (#17377) @alexfauquette
|
|
196
|
+
- [docs][charts] Add docs on tooltip style (#17601) @bernardobelchior
|
|
197
|
+
- [docs][charts] Fix highlighting heading structure (#17581) @oliviertassinari
|
|
198
|
+
- [docs][charts] Improve export docs (#17538) @oliviertassinari
|
|
199
|
+
- [docs][charts] Similar introduction on most charts pages (#17374) @alexfauquette
|
|
200
|
+
- [docs][DataGrid] Clear component docs (#17540) @oliviertassinari
|
|
201
|
+
- [docs] Explicitly state that `groupingColDef` reference needs to be stable (#17544) @arminmeh
|
|
202
|
+
- [docs] Fix <kbd> a11y (#17536) @oliviertassinari
|
|
203
|
+
- [docs] Fix CodeSandbox spelling @oliviertassinari
|
|
204
|
+
- [docs] Fix coding style function @oliviertassinari
|
|
205
|
+
- [docs] Fix migration guide format (#17450) @oliviertassinari
|
|
206
|
+
- [docs] Improve data grid export docs (#17551) @MBilalShafi
|
|
207
|
+
- [docs] Remove leftover `@next` usages (#17542) @LukasTy
|
|
208
|
+
|
|
209
|
+
### Core
|
|
210
|
+
|
|
211
|
+
- [core] Add security label to dependabot PRs @oliviertassinari
|
|
212
|
+
- [core] Allow post-install vale @oliviertassinari
|
|
213
|
+
- [core] Component consistency @oliviertassinari
|
|
214
|
+
- [core] Fix all Vale errors @oliviertassinari
|
|
215
|
+
- [core] Move `loadStyleSheets` to internals and use it in data grid and charts (#17548) @bernardobelchior
|
|
216
|
+
- [core] Remove empty version (#17582) @oliviertassinari
|
|
217
|
+
- [core] Remove eslint from codemod spec files (#17443) @alexfauquette
|
|
218
|
+
- [core] Remove unnecessary versions (#17597) @oliviertassinari
|
|
219
|
+
- [code-infra] Allow postinstall scripts for packages requesting it (#17635) @LukasTy
|
|
220
|
+
- [code-infra] Data Grid `vitest` changes (#17619) @JCQuintas
|
|
221
|
+
- [code-infra] Fix date-time sensitive tests (#17644) @JCQuintas
|
|
222
|
+
- [code-infra] Fix extension handling for type imports (#17636) @Janpot
|
|
223
|
+
- [code-infra] Further remove `clock=fake` and add `async act` for datagrid (#17563) @JCQuintas
|
|
224
|
+
- [code-infra] Latest vitest picker changes (#17577) @JCQuintas
|
|
225
|
+
- [docs-infra] Fix Vale no longer working (#17602) @alexfauquette
|
|
226
|
+
- [docs-infra] Uniformize Vale between repositories @oliviertassinari
|
|
227
|
+
- [infra] Updates to `branch switch comments` (#17589) @michelengelen
|
|
228
|
+
- [x-telemetry] Fix issue with get machineid hash (#17614) @hasdfa
|
|
229
|
+
|
|
8
230
|
## 8.1.0
|
|
9
231
|
|
|
10
232
|
_Apr 24, 2025_
|
|
11
233
|
|
|
12
234
|
We'd like to offer a big thanks to the 14 contributors who made this release possible. Here are some highlights ✨:
|
|
13
235
|
|
|
14
|
-
- 📊 Add API to print a chart or export it as PDF: `apiRef.exportAsPrint`.
|
|
236
|
+
- 📊 Add API to print a chart or export it as PDF: `apiRef.exportAsPrint()`.
|
|
15
237
|
- 📚 Documentation improvements
|
|
16
238
|
- 🐞 Bugfixes
|
|
17
239
|
|
|
@@ -56,7 +278,7 @@ Same changes as in `@mui/x-date-pickers@8.1.0`.
|
|
|
56
278
|
|
|
57
279
|
### Charts
|
|
58
280
|
|
|
59
|
-
- Add API to print a chart or export it as PDF: `apiRef.exportAsPrint`.
|
|
281
|
+
- Add API to print a chart or export it as PDF: `apiRef.exportAsPrint()`.
|
|
60
282
|
|
|
61
283
|
#### `@mui/x-charts@8.1.0`
|
|
62
284
|
|
|
@@ -1821,7 +2043,7 @@ Same changes as in `@mui/x-tree-view@8.0.0-alpha.8`.
|
|
|
1821
2043
|
- [docs] Add example for custom legend (#16169) @alexfauquette
|
|
1822
2044
|
- [docs] Add full custom field creation example (#15194) @flaviendelangle
|
|
1823
2045
|
- [docs] Copyedit the Data Grid cell selection page (#16099) @samuelsycamore
|
|
1824
|
-
- [docs] Fix demo rendering issue on
|
|
2046
|
+
- [docs] Fix demo rendering issue on CodeSandbox (#16118) @arminmeh
|
|
1825
2047
|
- [docs] Remove broken links (#16167) @alexfauquette
|
|
1826
2048
|
- [docs] Split the Data Grid editing page (#14931) @MBilalShafi
|
|
1827
2049
|
- [docs] Fix wrong props warnings (#16119) @JCQuintas
|
|
@@ -2268,7 +2490,7 @@ Releasing to benefit from license package fix (#15814).
|
|
|
2268
2490
|
|
|
2269
2491
|
- [code-infra] Add Charts sandbox generation (#15830) @JCQuintas
|
|
2270
2492
|
- [code-infra] Remove redundant `@type/react-test-renderer` dep (#15766) @LukasTy
|
|
2271
|
-
- [license] Use `console.log` for the error message on
|
|
2493
|
+
- [license] Use `console.log` for the error message on CodeSandbox to avoid rendering error (#15814) @arminmeh
|
|
2272
2494
|
|
|
2273
2495
|
## 8.0.0-alpha.3
|
|
2274
2496
|
|
|
@@ -2484,6 +2706,8 @@ Same changes as in `@mui/x-tree-view@v8.0.0-alpha.2`.
|
|
|
2484
2706
|
|
|
2485
2707
|
### Docs
|
|
2486
2708
|
|
|
2709
|
+
<!-- vale MUI.CorrectRererenceCased = NO -->
|
|
2710
|
+
|
|
2487
2711
|
- [docs] Fix 404 links (#15575) @oliviertassinari
|
|
2488
2712
|
- [docs] Fix bash comments (#15571) @oliviertassinari
|
|
2489
2713
|
- [docs] Fix Pickers theme augmentation example (#15672) @LukasTy
|
|
@@ -2493,6 +2717,8 @@ Same changes as in `@mui/x-tree-view@v8.0.0-alpha.2`.
|
|
|
2493
2717
|
- [docs] Fix `anchorEl` API page for charts (#15625) @oliviertassinari
|
|
2494
2718
|
- [docs] Add documentation for the list view feature (#15344) @KenanYusuf
|
|
2495
2719
|
|
|
2720
|
+
<!-- vale MUI.CorrectRererenceCased = YES -->
|
|
2721
|
+
|
|
2496
2722
|
### Core
|
|
2497
2723
|
|
|
2498
2724
|
- [core] Follow `()` function convention for docs @oliviertassinari
|
|
@@ -3401,7 +3627,7 @@ Same changes as in `@mui/x-tree-view@7.24.0`.
|
|
|
3401
3627
|
### Docs
|
|
3402
3628
|
|
|
3403
3629
|
- [docs] Copyedit the Data Grid cell selection page (#16213) @samuelsycamore
|
|
3404
|
-
- [docs] Fix demo rendering issue on
|
|
3630
|
+
- [docs] Fix demo rendering issue on CodeSandbox (#16129) @arminmeh
|
|
3405
3631
|
|
|
3406
3632
|
### Core
|
|
3407
3633
|
|
|
@@ -3679,7 +3905,7 @@ Releasing to benefit from license package fix (#15818).
|
|
|
3679
3905
|
### Core
|
|
3680
3906
|
|
|
3681
3907
|
- [core] Add `@mui/x-tree-view-pro` to `releaseChangelog` (#15747) @flaviendelangle
|
|
3682
|
-
- [license] Use `console.log` for the error message on
|
|
3908
|
+
- [license] Use `console.log` for the error message on CodeSandbox to avoid rendering error (#15818) @arminmeh
|
|
3683
3909
|
|
|
3684
3910
|
## 7.23.1
|
|
3685
3911
|
|
|
@@ -7020,7 +7246,7 @@ Same changes as in `@mui/x-data-grid-pro@7.0.0-beta.4`.
|
|
|
7020
7246
|
/>
|
|
7021
7247
|
```
|
|
7022
7248
|
|
|
7023
|
-
- The headless field hooks (
|
|
7249
|
+
- The headless field hooks (for example `useDateField()`) now returns a new prop called `enableAccessibleFieldDOMStructure`.
|
|
7024
7250
|
This property is utilized to determine whether the anticipated UI is constructed using an accessible DOM structure.
|
|
7025
7251
|
Learn more about this new accessible DOM structure in the [v8 migration guide](https://v7.mui.com/x/migration/migration-pickers-v7/#new-dom-structure-for-the-field).
|
|
7026
7252
|
|
|
@@ -120,7 +120,7 @@ process.env.NODE_ENV !== "production" ? ChartContainer.propTypes = {
|
|
|
120
120
|
* The function called for onClick events.
|
|
121
121
|
* The second argument contains information about all line/bar elements at the current mouse position.
|
|
122
122
|
* @param {MouseEvent} event The mouse event recorded on the `<svg/>` element.
|
|
123
|
-
* @param {null |
|
|
123
|
+
* @param {null | ChartsAxisData} data The data about the clicked axis and items associated with it.
|
|
124
124
|
*/
|
|
125
125
|
onAxisClick: _propTypes.default.func,
|
|
126
126
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ChartsSurfaceProps } from "../ChartsSurface/index.js";
|
|
3
3
|
import { ChartDataProviderProps } from "../ChartDataProvider/index.js";
|
|
4
|
-
import type { ChartContainerProps } from
|
|
4
|
+
import type { ChartContainerProps } from "./ChartContainer.js";
|
|
5
5
|
import { ChartSeriesType } from "../models/seriesType/config.js";
|
|
6
6
|
import { AllPluginSignatures } from "../internals/plugins/allPlugins.js";
|
|
7
7
|
import { ChartAnyPluginSignature } from "../internals/plugins/models/plugin.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ChartDataProviderProps } from
|
|
1
|
+
import type { ChartDataProviderProps } from "./ChartDataProvider.js";
|
|
2
2
|
import { ChartProviderProps } from "../context/ChartProvider/index.js";
|
|
3
3
|
import { ChartAnyPluginSignature } from "../internals/plugins/models/index.js";
|
|
4
4
|
import { ChartSeriesType } from "../models/seriesType/config.js";
|
|
@@ -6,6 +6,6 @@ import { AllPluginSignatures } from "../internals/plugins/allPlugins.js";
|
|
|
6
6
|
import { ChartsLocalizationProviderProps } from "../ChartsLocalizationProvider/index.js";
|
|
7
7
|
export declare const useChartDataProviderProps: <TSeries extends ChartSeriesType = ChartSeriesType, TSignatures extends readonly ChartAnyPluginSignature[] = AllPluginSignatures<TSeries>>(props: ChartDataProviderProps<TSeries, TSignatures> & ChartsLocalizationProviderProps) => {
|
|
8
8
|
children: import("react").ReactNode;
|
|
9
|
-
localeText: Partial<import("../locales").ChartsLocaleText> | undefined;
|
|
9
|
+
localeText: Partial<import("../locales/index.js").ChartsLocaleText> | undefined;
|
|
10
10
|
chartProviderProps: ChartProviderProps<TSeries, TSignatures>;
|
|
11
11
|
};
|
|
@@ -34,7 +34,7 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
34
34
|
if (process.env.NODE_ENV !== 'production') {
|
|
35
35
|
const isError = isBandScaleX && xScale(axisXValue) === undefined;
|
|
36
36
|
if (isError) {
|
|
37
|
-
console.error([`MUI X: The position value provided for the axis is not valid for the current scale.`, `This probably means something is wrong with the data passed to the chart.`, `The ChartsAxisHighlight component will not be displayed.`].join('\n'));
|
|
37
|
+
console.error([`MUI X Charts: The position value provided for the axis is not valid for the current scale.`, `This probably means something is wrong with the data passed to the chart.`, `The ChartsAxisHighlight component will not be displayed.`].join('\n'));
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
40
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(React.Fragment, {
|
|
@@ -34,7 +34,7 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
34
34
|
if (process.env.NODE_ENV !== 'production') {
|
|
35
35
|
const isError = isBandScaleY && yScale(axisYValue) === undefined;
|
|
36
36
|
if (isError) {
|
|
37
|
-
console.error([`MUI X: The position value provided for the axis is not valid for the current scale.`, `This probably means something is wrong with the data passed to the chart.`, `The ChartsAxisHighlight component will not be displayed.`].join('\n'));
|
|
37
|
+
console.error([`MUI X Charts: The position value provided for the axis is not valid for the current scale.`, `This probably means something is wrong with the data passed to the chart.`, `The ChartsAxisHighlight component will not be displayed.`].join('\n'));
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
40
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(React.Fragment, {
|
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
export type ChartsClipPathProps = {
|
|
3
|
+
/**
|
|
4
|
+
* The id of the clip path.
|
|
5
|
+
*/
|
|
3
6
|
id: string;
|
|
7
|
+
/**
|
|
8
|
+
* Offset, in pixels, of the clip path rectangle from the drawing area.
|
|
9
|
+
*
|
|
10
|
+
* A positive value will move the rectangle outside the drawing area.
|
|
11
|
+
*/
|
|
4
12
|
offset?: {
|
|
5
13
|
top?: number;
|
|
6
14
|
right?: number;
|
|
@@ -49,7 +49,15 @@ process.env.NODE_ENV !== "production" ? ChartsClipPath.propTypes = {
|
|
|
49
49
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
50
50
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
51
51
|
// ----------------------------------------------------------------------
|
|
52
|
+
/**
|
|
53
|
+
* The id of the clip path.
|
|
54
|
+
*/
|
|
52
55
|
id: _propTypes.default.string.isRequired,
|
|
56
|
+
/**
|
|
57
|
+
* Offset, in pixels, of the clip path rectangle from the drawing area.
|
|
58
|
+
*
|
|
59
|
+
* A positive value will move the rectangle outside the drawing area.
|
|
60
|
+
*/
|
|
53
61
|
offset: _propTypes.default.shape({
|
|
54
62
|
bottom: _propTypes.default.number,
|
|
55
63
|
left: _propTypes.default.number,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { ComputedYAxis } from "../models/axis.js";
|
|
3
3
|
import { ChartsGridClasses } from "./chartsGridClasses.js";
|
|
4
4
|
interface ChartsGridHorizontalProps {
|
|
5
|
-
axis:
|
|
5
|
+
axis: ComputedYAxis;
|
|
6
6
|
start: number;
|
|
7
7
|
end: number;
|
|
8
8
|
classes: Partial<ChartsGridClasses>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { ComputedXAxis } from "../models/axis.js";
|
|
3
3
|
import { ChartsGridClasses } from "./chartsGridClasses.js";
|
|
4
4
|
interface ChartsGridVerticalProps {
|
|
5
|
-
axis:
|
|
5
|
+
axis: ComputedXAxis;
|
|
6
6
|
start: number;
|
|
7
7
|
end: number;
|
|
8
8
|
classes: Partial<ChartsGridClasses>;
|
|
@@ -44,9 +44,7 @@ const Root = (0, _styles.styled)('div', {
|
|
|
44
44
|
},
|
|
45
45
|
[`&.${_labelMarkClasses.labelMarkClasses.circle}`]: {
|
|
46
46
|
height: 15,
|
|
47
|
-
width: 15
|
|
48
|
-
borderRadius: '50%',
|
|
49
|
-
overflow: 'hidden'
|
|
47
|
+
width: 15
|
|
50
48
|
},
|
|
51
49
|
svg: {
|
|
52
50
|
display: 'block'
|
|
@@ -94,7 +92,13 @@ const ChartsLabelMark = exports.ChartsLabelMark = (0, _consumeThemeProps.consume
|
|
|
94
92
|
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)("svg", {
|
|
95
93
|
viewBox: "0 0 24 24",
|
|
96
94
|
preserveAspectRatio: type === 'line' ? 'none' : undefined,
|
|
97
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("
|
|
95
|
+
children: type === 'circle' ? /*#__PURE__*/(0, _jsxRuntime.jsx)("circle", {
|
|
96
|
+
className: classes?.fill,
|
|
97
|
+
r: "12",
|
|
98
|
+
cx: "12",
|
|
99
|
+
cy: "12",
|
|
100
|
+
fill: color
|
|
101
|
+
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)("rect", {
|
|
98
102
|
className: classes?.fill,
|
|
99
103
|
width: "24",
|
|
100
104
|
height: "24",
|
package/ChartsLabel/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export type { ChartsLabelMarkProps, ChartsLabelCustomMarkProps } from
|
|
1
|
+
export type { ChartsLabelMarkProps, ChartsLabelCustomMarkProps } from "./ChartsLabelMark.js";
|
|
2
2
|
export { ChartsLabelMark } from "./ChartsLabelMark.js";
|
|
3
3
|
export { labelClasses } from "./labelClasses.js";
|
|
4
|
-
export type { ChartsLabelClasses } from
|
|
4
|
+
export type { ChartsLabelClasses } from "./labelClasses.js";
|
|
5
5
|
export { labelMarkClasses } from "./labelMarkClasses.js";
|
|
6
|
-
export type { ChartsLabelMarkClasses } from
|
|
6
|
+
export type { ChartsLabelMarkClasses } from "./labelMarkClasses.js";
|
|
7
7
|
export { labelGradientClasses } from "./labelGradientClasses.js";
|
|
8
|
-
export type { ChartsLabelGradientClasses } from
|
|
8
|
+
export type { ChartsLabelGradientClasses } from "./labelGradientClasses.js";
|