@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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { SxProps, Theme } from '@mui/material/styles';
|
|
3
|
-
import type { Direction } from
|
|
3
|
+
import type { Direction } from "./direction.js";
|
|
4
4
|
import { SeriesLegendItemContext } from "./legendContext.types.js";
|
|
5
5
|
import { type ChartsLegendClasses } from "./chartsLegendClasses.js";
|
|
6
6
|
export interface ChartsLegendProps {
|
|
@@ -23,5 +23,5 @@ export interface ChartsLegendProps {
|
|
|
23
23
|
className?: string;
|
|
24
24
|
sx?: SxProps<Theme>;
|
|
25
25
|
}
|
|
26
|
-
declare const ChartsLegend: React.ForwardRefExoticComponent<ChartsLegendProps & import("./chartsLegend.types").ChartsLegendSlotExtension & React.RefAttributes<{}>>;
|
|
26
|
+
declare const ChartsLegend: React.ForwardRefExoticComponent<ChartsLegendProps & import("./chartsLegend.types.js").ChartsLegendSlotExtension & React.RefAttributes<{}>>;
|
|
27
27
|
export { ChartsLegend };
|
|
@@ -52,5 +52,5 @@ export interface ContinuousColorLegendProps extends ColorLegendSelector, AppendK
|
|
|
52
52
|
className?: string;
|
|
53
53
|
sx?: SxProps<Theme>;
|
|
54
54
|
}
|
|
55
|
-
declare const ContinuousColorLegend: React.ForwardRefExoticComponent<ContinuousColorLegendProps & import("./chartsLegend.types").ChartsLegendSlotExtension & React.RefAttributes<{}>>;
|
|
55
|
+
declare const ContinuousColorLegend: React.ForwardRefExoticComponent<ContinuousColorLegendProps & import("./chartsLegend.types.js").ChartsLegendSlotExtension & React.RefAttributes<{}>>;
|
|
56
56
|
export { ContinuousColorLegend };
|
|
@@ -38,5 +38,5 @@ export interface PiecewiseColorLegendProps extends ColorLegendSelector, PrependK
|
|
|
38
38
|
className?: string;
|
|
39
39
|
sx?: SxProps<Theme>;
|
|
40
40
|
}
|
|
41
|
-
declare const PiecewiseColorLegend: React.ForwardRefExoticComponent<PiecewiseColorLegendProps & import("./chartsLegend.types").ChartsLegendSlotExtension & React.RefAttributes<{}>>;
|
|
41
|
+
declare const PiecewiseColorLegend: React.ForwardRefExoticComponent<PiecewiseColorLegendProps & import("./chartsLegend.types.js").ChartsLegendSlotExtension & React.RefAttributes<{}>>;
|
|
42
42
|
export { PiecewiseColorLegend };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ChartsLegendProps } from
|
|
1
|
+
import type { ChartsLegendProps } from "./ChartsLegend.js";
|
|
2
2
|
import { ContinuousColorLegendProps } from "./ContinuousColorLegend.js";
|
|
3
3
|
import { ChartsLegendPosition } from "./legend.types.js";
|
|
4
4
|
import { PiecewiseColorLegendProps } from "./PiecewiseColorLegend.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ChartsLegendProps } from
|
|
2
|
-
import type { ChartsLegendSlotExtension } from
|
|
1
|
+
import type { ChartsLegendProps } from "./ChartsLegend.js";
|
|
2
|
+
import type { ChartsLegendSlotExtension } from "./chartsLegend.types.js";
|
|
3
3
|
export interface ChartsLegendClasses {
|
|
4
4
|
/** Styles applied to the root element. */
|
|
5
5
|
root: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ContinuousColorLegendProps } from
|
|
2
|
-
import type { ChartsLegendSlotExtension } from
|
|
1
|
+
import type { ContinuousColorLegendProps } from "./ContinuousColorLegend.js";
|
|
2
|
+
import type { ChartsLegendSlotExtension } from "./chartsLegend.types.js";
|
|
3
3
|
export interface ContinuousColorLegendClasses {
|
|
4
4
|
/** Styles applied to the root element. */
|
|
5
5
|
root: string;
|
package/ChartsLegend/index.d.ts
CHANGED
|
@@ -3,14 +3,14 @@ export * from "./chartsLegend.types.js";
|
|
|
3
3
|
export * from "./direction.js";
|
|
4
4
|
export * from "./legendContext.types.js";
|
|
5
5
|
export { legendClasses } from "./chartsLegendClasses.js";
|
|
6
|
-
export type { ChartsLegendClasses } from
|
|
6
|
+
export type { ChartsLegendClasses } from "./chartsLegendClasses.js";
|
|
7
7
|
export * from "./ContinuousColorLegend.js";
|
|
8
8
|
export * from "./colorLegend.types.js";
|
|
9
9
|
export { continuousColorLegendClasses } from "./continuousColorLegendClasses.js";
|
|
10
|
-
export type { ContinuousColorLegendClasses } from
|
|
10
|
+
export type { ContinuousColorLegendClasses } from "./continuousColorLegendClasses.js";
|
|
11
11
|
export * from "./PiecewiseColorLegend.js";
|
|
12
12
|
export { piecewiseColorLegendClasses } from "./piecewiseColorLegendClasses.js";
|
|
13
|
-
export type { PiecewiseColorLegendClasses } from
|
|
13
|
+
export type { PiecewiseColorLegendClasses } from "./piecewiseColorLegendClasses.js";
|
|
14
14
|
export { piecewiseColorDefaultLabelFormatter } from "./piecewiseColorDefaultLabelFormatter.js";
|
|
15
|
-
export type { PiecewiseLabelFormatterParams } from
|
|
15
|
+
export type { PiecewiseLabelFormatterParams } from "./piecewiseColorLegend.types.js";
|
|
16
16
|
export * from "./legend.types.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { PiecewiseColorLegendProps } from
|
|
2
|
-
import type { ChartsLegendSlotExtension } from
|
|
1
|
+
import type { PiecewiseColorLegendProps } from "./PiecewiseColorLegend.js";
|
|
2
|
+
import type { ChartsLegendSlotExtension } from "./chartsLegend.types.js";
|
|
3
3
|
export interface PiecewiseColorLegendClasses {
|
|
4
4
|
/** Styles applied to the root element. */
|
|
5
5
|
root: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ComputedAxis } from "../models/axis.js";
|
|
2
2
|
import { ZAxisDefaultized } from "../models/z-axis.js";
|
|
3
3
|
import { ColorLegendSelector } from "./colorLegend.types.js";
|
|
4
4
|
/**
|
|
@@ -7,4 +7,4 @@ import { ColorLegendSelector } from "./colorLegend.types.js";
|
|
|
7
7
|
export declare function useAxis({
|
|
8
8
|
axisDirection,
|
|
9
9
|
axisId
|
|
10
|
-
}: ColorLegendSelector): ZAxisDefaultized |
|
|
10
|
+
}: ColorLegendSelector): ZAxisDefaultized | ComputedAxis;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import type { ChartsLocaleText } from
|
|
2
|
+
import type { ChartsLocaleText } from "../locales/utils/chartsLocaleTextApi.js";
|
|
3
3
|
export interface ChartsLocalizationContextValue {
|
|
4
4
|
localeText: ChartsLocaleText;
|
|
5
5
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { ChartsLocalizationProvider } from "./ChartsLocalizationProvider.js";
|
|
2
|
-
export type { ChartsLocalizationProviderProps } from
|
|
2
|
+
export type { ChartsLocalizationProviderProps } from "./ChartsLocalizationProvider.js";
|
package/ChartsOverlay/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { ChartsOverlay } from "./ChartsOverlay.js";
|
|
2
|
-
export type { ChartsOverlayProps, ChartsOverlaySlotProps, ChartsOverlaySlots } from
|
|
2
|
+
export type { ChartsOverlayProps, ChartsOverlaySlotProps, ChartsOverlaySlots } from "./ChartsOverlay.js";
|
|
3
3
|
export { ChartsLoadingOverlay } from "./ChartsLoadingOverlay.js";
|
|
4
4
|
export { ChartsNoDataOverlay } from "./ChartsNoDataOverlay.js";
|
|
@@ -19,10 +19,10 @@ function ChartsReferenceLine(props) {
|
|
|
19
19
|
y
|
|
20
20
|
} = props;
|
|
21
21
|
if (x !== undefined && y !== undefined) {
|
|
22
|
-
throw new Error('MUI X: The ChartsReferenceLine cannot have both `x` and `y` props set.');
|
|
22
|
+
throw new Error('MUI X Charts: The ChartsReferenceLine cannot have both `x` and `y` props set.');
|
|
23
23
|
}
|
|
24
24
|
if (x === undefined && y === undefined) {
|
|
25
|
-
throw new Error('MUI X: The ChartsReferenceLine should have a value in `x` or `y` prop.');
|
|
25
|
+
throw new Error('MUI X Charts: The ChartsReferenceLine should have a value in `x` or `y` prop.');
|
|
26
26
|
}
|
|
27
27
|
if (x !== undefined) {
|
|
28
28
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsXReferenceLine.ChartsXReferenceLine, (0, _extends2.default)({}, props));
|
|
@@ -76,7 +76,7 @@ function ChartsXReferenceLine(props) {
|
|
|
76
76
|
const xPosition = xAxisScale(x);
|
|
77
77
|
if (xPosition === undefined) {
|
|
78
78
|
if (process.env.NODE_ENV !== 'production') {
|
|
79
|
-
(0, _warning.warnOnce)(`MUI X: the value ${x} does not exist in the data of x axis with id ${axisId}.`, 'error');
|
|
79
|
+
(0, _warning.warnOnce)(`MUI X Charts: the value ${x} does not exist in the data of x axis with id ${axisId}.`, 'error');
|
|
80
80
|
}
|
|
81
81
|
return null;
|
|
82
82
|
}
|
|
@@ -76,7 +76,7 @@ function ChartsYReferenceLine(props) {
|
|
|
76
76
|
const yPosition = yAxisScale(y);
|
|
77
77
|
if (yPosition === undefined) {
|
|
78
78
|
if (process.env.NODE_ENV !== 'production') {
|
|
79
|
-
(0, _warning.warnOnce)(`MUI X: the value ${y} does not exist in the data of y axis with id ${axisId}.`, 'error');
|
|
79
|
+
(0, _warning.warnOnce)(`MUI X Charts: the value ${y} does not exist in the data of y axis with id ${axisId}.`, 'error');
|
|
80
80
|
}
|
|
81
81
|
return null;
|
|
82
82
|
}
|
package/ChartsText/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { ChartsText } from "./ChartsText.js";
|
|
2
|
-
export type { ChartsTextProps } from
|
|
3
|
-
export type { ChartsTextStyle } from
|
|
2
|
+
export type { ChartsTextProps } from "./ChartsText.js";
|
|
3
|
+
export type { ChartsTextStyle } from "../internals/getWordsByLines.js";
|
package/ChartsTooltip/index.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
export * from "./ChartsTooltip.js";
|
|
2
2
|
export * from "./ChartsTooltipContainer.js";
|
|
3
|
-
export type { ChartsTooltipClasses, ChartsTooltipClassKey } from
|
|
3
|
+
export type { ChartsTooltipClasses, ChartsTooltipClassKey } from "./chartsTooltipClasses.js";
|
|
4
4
|
export { getChartsTooltipUtilityClass, chartsTooltipClasses } from "./chartsTooltipClasses.js";
|
|
5
5
|
export * from "./ChartsAxisTooltipContent.js";
|
|
6
6
|
export * from "./ChartsItemTooltipContent.js";
|
|
7
7
|
export * from "./ChartsTooltipTable.js";
|
|
8
|
-
export type { ItemTooltip } from
|
|
9
|
-
export type { UseItemTooltipReturnValue, UseRadarItemTooltipReturnValue } from
|
|
8
|
+
export type { ItemTooltip } from "../internals/plugins/models/seriesConfig/tooltipGetter.types.js";
|
|
9
|
+
export type { UseItemTooltipReturnValue, UseRadarItemTooltipReturnValue } from "./useItemTooltip.js";
|
|
10
10
|
export { useItemTooltip, useRadarItemTooltip } from "./useItemTooltip.js";
|
|
11
11
|
export * from "./useAxisTooltip.js";
|
|
12
12
|
export * from "./useAxesTooltip.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { SeriesId } from "../models/seriesType/common.js";
|
|
2
2
|
import { CartesianChartSeriesType, ChartsSeriesConfig, PolarChartSeriesType } from "../models/seriesType/config.js";
|
|
3
|
-
import {
|
|
3
|
+
import { ComputedAxis, PolarAxisDefaultized, AxisId } from "../models/axis.js";
|
|
4
4
|
import { ChartsLabelMarkProps } from "../ChartsLabel/index.js";
|
|
5
5
|
export interface UseAxisTooltipReturnValue<SeriesT extends CartesianChartSeriesType | PolarChartSeriesType = CartesianChartSeriesType | PolarChartSeriesType, AxisValueT extends string | number | Date = string | number | Date> {
|
|
6
6
|
axisDirection: SeriesT extends CartesianChartSeriesType ? 'x' | 'y' : 'rotation' | 'radius';
|
|
7
|
-
mainAxis: SeriesT extends CartesianChartSeriesType ?
|
|
7
|
+
mainAxis: SeriesT extends CartesianChartSeriesType ? ComputedAxis : PolarAxisDefaultized;
|
|
8
8
|
axisId: AxisId;
|
|
9
9
|
axisValue: AxisValueT;
|
|
10
10
|
axisFormattedValue: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import type { AreaElementOwnerState } from
|
|
2
|
+
import type { AreaElementOwnerState } from "./AreaElement.js";
|
|
3
3
|
export interface AnimatedAreaProps extends React.ComponentPropsWithoutRef<'path'> {
|
|
4
4
|
ownerState: AreaElementOwnerState;
|
|
5
5
|
d: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import type { LineElementOwnerState } from
|
|
2
|
+
import type { LineElementOwnerState } from "./LineElement.js";
|
|
3
3
|
export interface AnimatedLineProps extends React.ComponentPropsWithoutRef<'path'> {
|
|
4
4
|
ownerState: LineElementOwnerState;
|
|
5
5
|
d: string;
|
|
@@ -11,7 +11,6 @@ exports.appearingMaskClasses = void 0;
|
|
|
11
11
|
var React = _interopRequireWildcard(require("react"));
|
|
12
12
|
var _styles = require("@mui/material/styles");
|
|
13
13
|
var _generateUtilityClasses = _interopRequireDefault(require("@mui/utils/generateUtilityClasses"));
|
|
14
|
-
var _clsx = _interopRequireDefault(require("clsx"));
|
|
15
14
|
var _animation = require("../internals/animation/animation");
|
|
16
15
|
var _cleanId = require("../internals/cleanId");
|
|
17
16
|
var _hooks = require("../hooks");
|
|
@@ -42,7 +41,7 @@ function AppearingMask(props) {
|
|
|
42
41
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("clipPath", {
|
|
43
42
|
id: clipId,
|
|
44
43
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(AnimatedRect, {
|
|
45
|
-
className:
|
|
44
|
+
className: props.skipAnimation ? '' : appearingMaskClasses.animate,
|
|
46
45
|
x: 0,
|
|
47
46
|
y: 0,
|
|
48
47
|
width: drawingArea.left + drawingArea.width + drawingArea.right,
|
package/LineChart/AreaPlot.js
CHANGED
|
@@ -78,10 +78,10 @@ const useAggregatedData = () => {
|
|
|
78
78
|
const gradientId = yAxis[yAxisId].colorScale && getGradientId(yAxisId) || xAxis[xAxisId].colorScale && getGradientId(xAxisId) || undefined;
|
|
79
79
|
if (process.env.NODE_ENV !== 'production') {
|
|
80
80
|
if (xData === undefined) {
|
|
81
|
-
throw new Error(`MUI X: ${xAxisId === _constants.DEFAULT_X_AXIS_KEY ? 'The first `xAxis`' : `The x-axis with id "${xAxisId}"`} should have data property to be able to display a line plot.`);
|
|
81
|
+
throw new Error(`MUI X Charts: ${xAxisId === _constants.DEFAULT_X_AXIS_KEY ? 'The first `xAxis`' : `The x-axis with id "${xAxisId}"`} should have data property to be able to display a line plot.`);
|
|
82
82
|
}
|
|
83
83
|
if (xData.length < stackedData.length) {
|
|
84
|
-
throw new Error(`MUI X: The data length of the x axis (${xData.length} items) is lower than the length of series (${stackedData.length} items).`);
|
|
84
|
+
throw new Error(`MUI X Charts: The data length of the x axis (${xData.length} items) is lower than the length of series (${stackedData.length} items).`);
|
|
85
85
|
}
|
|
86
86
|
}
|
|
87
87
|
const shouldExpand = curve?.includes('step') && !strictStepCurve && (0, _isBandScale.isBandScale)(xScale);
|
|
@@ -10,6 +10,16 @@ export type CircleMarkElementProps = Omit<MarkElementOwnerState, 'isFaded' | 'is
|
|
|
10
10
|
* The index to the element in the series' data array.
|
|
11
11
|
*/
|
|
12
12
|
dataIndex: number;
|
|
13
|
+
/**
|
|
14
|
+
* If `true`, the marker is faded.
|
|
15
|
+
* @default false
|
|
16
|
+
*/
|
|
17
|
+
isFaded?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* If `true`, the marker is highlighted.
|
|
20
|
+
* @default false
|
|
21
|
+
*/
|
|
22
|
+
isHighlighted?: boolean;
|
|
13
23
|
};
|
|
14
24
|
/**
|
|
15
25
|
* The line mark element that only render circle for performance improvement.
|
|
@@ -14,13 +14,9 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
14
14
|
var _styles = require("@mui/material/styles");
|
|
15
15
|
var _animation = require("../internals/animation/animation");
|
|
16
16
|
var _useInteractionItemProps = require("../hooks/useInteractionItemProps");
|
|
17
|
-
var _useItemHighlighted = require("../hooks/useItemHighlighted");
|
|
18
17
|
var _markElementClasses = require("./markElementClasses");
|
|
19
|
-
var _useSelector = require("../internals/store/useSelector");
|
|
20
|
-
var _useChartCartesianAxis = require("../internals/plugins/featurePlugins/useChartCartesianAxis");
|
|
21
|
-
var _useStore = require("../internals/store/useStore");
|
|
22
18
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
23
|
-
const _excluded = ["x", "y", "id", "classes", "color", "dataIndex", "onClick", "skipAnimation"];
|
|
19
|
+
const _excluded = ["x", "y", "id", "classes", "color", "dataIndex", "onClick", "skipAnimation", "isFaded", "isHighlighted"];
|
|
24
20
|
const Circle = (0, _styles.styled)('circle')({
|
|
25
21
|
[`&.${_markElementClasses.markElementClasses.animate}`]: {
|
|
26
22
|
transitionDuration: `${_animation.ANIMATION_DURATION_MS}ms`,
|
|
@@ -50,7 +46,9 @@ function CircleMarkElement(props) {
|
|
|
50
46
|
color,
|
|
51
47
|
dataIndex,
|
|
52
48
|
onClick,
|
|
53
|
-
skipAnimation
|
|
49
|
+
skipAnimation,
|
|
50
|
+
isFaded = false,
|
|
51
|
+
isHighlighted = false
|
|
54
52
|
} = props,
|
|
55
53
|
other = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded);
|
|
56
54
|
const theme = (0, _styles.useTheme)();
|
|
@@ -59,18 +57,10 @@ function CircleMarkElement(props) {
|
|
|
59
57
|
seriesId: id,
|
|
60
58
|
dataIndex
|
|
61
59
|
});
|
|
62
|
-
const {
|
|
63
|
-
isFaded,
|
|
64
|
-
isHighlighted
|
|
65
|
-
} = (0, _useItemHighlighted.useItemHighlighted)({
|
|
66
|
-
seriesId: id
|
|
67
|
-
});
|
|
68
|
-
const store = (0, _useStore.useStore)();
|
|
69
|
-
const xAxisInteractionIndex = (0, _useSelector.useSelector)(store, _useChartCartesianAxis.selectorChartsInteractionXAxisIndex);
|
|
70
60
|
const ownerState = {
|
|
71
61
|
id,
|
|
72
62
|
classes: innerClasses,
|
|
73
|
-
isHighlighted
|
|
63
|
+
isHighlighted,
|
|
74
64
|
isFaded,
|
|
75
65
|
color,
|
|
76
66
|
skipAnimation
|
package/LineChart/LineChart.js
CHANGED
|
@@ -173,7 +173,7 @@ process.env.NODE_ENV !== "production" ? LineChart.propTypes = {
|
|
|
173
173
|
* The function called for onClick events.
|
|
174
174
|
* The second argument contains information about all line/bar elements at the current mouse position.
|
|
175
175
|
* @param {MouseEvent} event The mouse event recorded on the `<svg/>` element.
|
|
176
|
-
* @param {null |
|
|
176
|
+
* @param {null | ChartsAxisData} data The data about the clicked axis and items associated with it.
|
|
177
177
|
*/
|
|
178
178
|
onAxisClick: _propTypes.default.func,
|
|
179
179
|
/**
|
|
@@ -86,7 +86,7 @@ function LineHighlightPlot(props) {
|
|
|
86
86
|
const yScale = yAxis[yAxisId].scale;
|
|
87
87
|
const xData = xAxis[xAxisId].data;
|
|
88
88
|
if (xData === undefined) {
|
|
89
|
-
throw new Error(`MUI X: ${xAxisId === _constants.DEFAULT_X_AXIS_KEY ? 'The first `xAxis`' : `The x-axis with id "${xAxisId}"`} should have data property to be able to display a line plot.`);
|
|
89
|
+
throw new Error(`MUI X Charts: ${xAxisId === _constants.DEFAULT_X_AXIS_KEY ? 'The first `xAxis`' : `The x-axis with id "${xAxisId}"`} should have data property to be able to display a line plot.`);
|
|
90
90
|
}
|
|
91
91
|
const x = xScale(xData[highlightedIndex]);
|
|
92
92
|
const y = yScale(stackedData[highlightedIndex][1]); // This should not be undefined since y should not be a band scale
|
package/LineChart/LinePlot.js
CHANGED
|
@@ -77,10 +77,10 @@ const useAggregatedData = () => {
|
|
|
77
77
|
const gradientId = yAxis[yAxisId].colorScale && getGradientId(yAxisId) || xAxis[xAxisId].colorScale && getGradientId(xAxisId) || undefined;
|
|
78
78
|
if (process.env.NODE_ENV !== 'production') {
|
|
79
79
|
if (xData === undefined) {
|
|
80
|
-
throw new Error(`MUI X: ${xAxisId === _constants.DEFAULT_X_AXIS_KEY ? 'The first `xAxis`' : `The x-axis with id "${xAxisId}"`} should have data property to be able to display a line plot.`);
|
|
80
|
+
throw new Error(`MUI X Charts: ${xAxisId === _constants.DEFAULT_X_AXIS_KEY ? 'The first `xAxis`' : `The x-axis with id "${xAxisId}"`} should have data property to be able to display a line plot.`);
|
|
81
81
|
}
|
|
82
82
|
if (xData.length < stackedData.length) {
|
|
83
|
-
(0, _warning.warnOnce)(`MUI X: The data length of the x axis (${xData.length} items) is lower than the length of series (${stackedData.length} items).`, 'error');
|
|
83
|
+
(0, _warning.warnOnce)(`MUI X Charts: The data length of the x axis (${xData.length} items) is lower than the length of series (${stackedData.length} items).`, 'error');
|
|
84
84
|
}
|
|
85
85
|
}
|
|
86
86
|
const shouldExpand = curve?.includes('step') && !strictStepCurve && (0, _isBandScale.isBandScale)(xScale);
|
|
@@ -14,6 +14,16 @@ export type MarkElementProps = Omit<MarkElementOwnerState, 'isFaded' | 'isHighli
|
|
|
14
14
|
* The index to the element in the series' data array.
|
|
15
15
|
*/
|
|
16
16
|
dataIndex: number;
|
|
17
|
+
/**
|
|
18
|
+
* If `true`, the marker is faded.
|
|
19
|
+
* @default false
|
|
20
|
+
*/
|
|
21
|
+
isFaded?: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* If `true`, the marker is highlighted.
|
|
24
|
+
* @default false
|
|
25
|
+
*/
|
|
26
|
+
isHighlighted?: boolean;
|
|
17
27
|
};
|
|
18
28
|
/**
|
|
19
29
|
* Demos:
|
package/LineChart/MarkElement.js
CHANGED
|
@@ -16,13 +16,9 @@ var _d3Shape = require("@mui/x-charts-vendor/d3-shape");
|
|
|
16
16
|
var _animation = require("../internals/animation/animation");
|
|
17
17
|
var _getSymbol = require("../internals/getSymbol");
|
|
18
18
|
var _useInteractionItemProps = require("../hooks/useInteractionItemProps");
|
|
19
|
-
var _useItemHighlighted = require("../hooks/useItemHighlighted");
|
|
20
|
-
var _useChartCartesianAxis = require("../internals/plugins/featurePlugins/useChartCartesianAxis");
|
|
21
19
|
var _markElementClasses = require("./markElementClasses");
|
|
22
|
-
var _useSelector = require("../internals/store/useSelector");
|
|
23
|
-
var _useStore = require("../internals/store/useStore");
|
|
24
20
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
25
|
-
const _excluded = ["x", "y", "id", "classes", "color", "shape", "dataIndex", "onClick", "skipAnimation"];
|
|
21
|
+
const _excluded = ["x", "y", "id", "classes", "color", "shape", "dataIndex", "onClick", "skipAnimation", "isFaded", "isHighlighted"];
|
|
26
22
|
const MarkElementPath = (0, _styles.styled)('path', {
|
|
27
23
|
name: 'MuiMarkElement',
|
|
28
24
|
slot: 'Root'
|
|
@@ -59,7 +55,9 @@ function MarkElement(props) {
|
|
|
59
55
|
shape,
|
|
60
56
|
dataIndex,
|
|
61
57
|
onClick,
|
|
62
|
-
skipAnimation
|
|
58
|
+
skipAnimation,
|
|
59
|
+
isFaded = false,
|
|
60
|
+
isHighlighted = false
|
|
63
61
|
} = props,
|
|
64
62
|
other = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded);
|
|
65
63
|
const interactionProps = (0, _useInteractionItemProps.useInteractionItemProps)({
|
|
@@ -67,18 +65,10 @@ function MarkElement(props) {
|
|
|
67
65
|
seriesId: id,
|
|
68
66
|
dataIndex
|
|
69
67
|
});
|
|
70
|
-
const {
|
|
71
|
-
isFaded,
|
|
72
|
-
isHighlighted
|
|
73
|
-
} = (0, _useItemHighlighted.useItemHighlighted)({
|
|
74
|
-
seriesId: id
|
|
75
|
-
});
|
|
76
|
-
const store = (0, _useStore.useStore)();
|
|
77
|
-
const xAxisInteractionIndex = (0, _useSelector.useSelector)(store, _useChartCartesianAxis.selectorChartsInteractionXAxisIndex);
|
|
78
68
|
const ownerState = {
|
|
79
69
|
id,
|
|
80
70
|
classes: innerClasses,
|
|
81
|
-
isHighlighted
|
|
71
|
+
isHighlighted,
|
|
82
72
|
isFaded,
|
|
83
73
|
color,
|
|
84
74
|
skipAnimation
|
|
@@ -107,6 +97,16 @@ process.env.NODE_ENV !== "production" ? MarkElement.propTypes = {
|
|
|
107
97
|
*/
|
|
108
98
|
dataIndex: _propTypes.default.number.isRequired,
|
|
109
99
|
id: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string]).isRequired,
|
|
100
|
+
/**
|
|
101
|
+
* If `true`, the marker is faded.
|
|
102
|
+
* @default false
|
|
103
|
+
*/
|
|
104
|
+
isFaded: _propTypes.default.bool,
|
|
105
|
+
/**
|
|
106
|
+
* If `true`, the marker is highlighted.
|
|
107
|
+
* @default false
|
|
108
|
+
*/
|
|
109
|
+
isHighlighted: _propTypes.default.bool,
|
|
110
110
|
/**
|
|
111
111
|
* The shape of the marker.
|
|
112
112
|
*/
|
package/LineChart/MarkPlot.js
CHANGED
|
@@ -11,6 +11,7 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
|
|
|
11
11
|
var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
|
|
12
12
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
13
13
|
var React = _interopRequireWildcard(require("react"));
|
|
14
|
+
var _useChartCartesianInteraction = require("../internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianInteraction.selectors");
|
|
14
15
|
var _constants = require("../constants");
|
|
15
16
|
var _useSkipAnimation = require("../hooks/useSkipAnimation");
|
|
16
17
|
var _useChartId = require("../hooks/useChartId");
|
|
@@ -23,6 +24,7 @@ var _MarkElement = require("./MarkElement");
|
|
|
23
24
|
var _ChartProvider = require("../context/ChartProvider");
|
|
24
25
|
var _hooks = require("../hooks");
|
|
25
26
|
var _useInternalIsZoomInteracting = require("../internals/plugins/featurePlugins/useChartCartesianAxis/useInternalIsZoomInteracting");
|
|
27
|
+
var _useSelector = require("../internals/store/useSelector");
|
|
26
28
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
27
29
|
const _excluded = ["slots", "slotProps", "skipAnimation", "onItemClick"];
|
|
28
30
|
/**
|
|
@@ -56,8 +58,14 @@ function MarkPlot(props) {
|
|
|
56
58
|
} = (0, _hooks.useYAxes)();
|
|
57
59
|
const chartId = (0, _useChartId.useChartId)();
|
|
58
60
|
const {
|
|
59
|
-
instance
|
|
61
|
+
instance,
|
|
62
|
+
store
|
|
60
63
|
} = (0, _ChartProvider.useChartContext)();
|
|
64
|
+
const {
|
|
65
|
+
isFaded,
|
|
66
|
+
isHighlighted
|
|
67
|
+
} = (0, _hooks.useItemHighlightedGetter)();
|
|
68
|
+
const xAxisInteractionIndex = (0, _useSelector.useSelector)(store, _useChartCartesianInteraction.selectorChartsInteractionXAxisIndex);
|
|
61
69
|
if (seriesData === undefined) {
|
|
62
70
|
return null;
|
|
63
71
|
}
|
|
@@ -87,12 +95,18 @@ function MarkPlot(props) {
|
|
|
87
95
|
const yScale = yAxis[yAxisId].scale;
|
|
88
96
|
const xData = xAxis[xAxisId].data;
|
|
89
97
|
if (xData === undefined) {
|
|
90
|
-
throw new Error(`MUI X: ${xAxisId === _constants.DEFAULT_X_AXIS_KEY ? 'The first `xAxis`' : `The x-axis with id "${xAxisId}"`} should have data property to be able to display a line plot.`);
|
|
98
|
+
throw new Error(`MUI X Charts: ${xAxisId === _constants.DEFAULT_X_AXIS_KEY ? 'The first `xAxis`' : `The x-axis with id "${xAxisId}"`} should have data property to be able to display a line plot.`);
|
|
91
99
|
}
|
|
92
100
|
const clipId = (0, _cleanId.cleanId)(`${chartId}-${seriesId}-line-clip`); // We assume that if displaying line mark, the line will also be rendered
|
|
93
101
|
|
|
94
102
|
const colorGetter = (0, _getColor.default)(series[seriesId], xAxis[xAxisId], yAxis[yAxisId]);
|
|
95
103
|
const Mark = slots?.mark ?? (shape === 'circle' ? _CircleMarkElement.CircleMarkElement : _MarkElement.MarkElement);
|
|
104
|
+
const isSeriesHighlighted = isHighlighted({
|
|
105
|
+
seriesId
|
|
106
|
+
});
|
|
107
|
+
const isSeriesFaded = !isSeriesHighlighted && isFaded({
|
|
108
|
+
seriesId
|
|
109
|
+
});
|
|
96
110
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("g", {
|
|
97
111
|
clipPath: `url(#${clipId})`,
|
|
98
112
|
children: xData?.map((x, index) => {
|
|
@@ -150,7 +164,9 @@ function MarkPlot(props) {
|
|
|
150
164
|
type: 'line',
|
|
151
165
|
seriesId,
|
|
152
166
|
dataIndex: index
|
|
153
|
-
}))
|
|
167
|
+
})),
|
|
168
|
+
isHighlighted: xAxisInteractionIndex === index || isSeriesHighlighted,
|
|
169
|
+
isFaded: isSeriesFaded
|
|
154
170
|
}, slotProps?.mark), `${seriesId}-${index}`);
|
|
155
171
|
})
|
|
156
172
|
}, seriesId);
|
package/LineChart/index.d.ts
CHANGED
|
@@ -9,5 +9,5 @@ export * from "./LineElement.js";
|
|
|
9
9
|
export * from "./AnimatedLine.js";
|
|
10
10
|
export * from "./MarkElement.js";
|
|
11
11
|
export * from "./LineHighlightElement.js";
|
|
12
|
-
export type { MarkElementClasses, MarkElementClassKey } from
|
|
12
|
+
export type { MarkElementClasses, MarkElementClassKey } from "./markElementClasses.js";
|
|
13
13
|
export { getMarkElementUtilityClass, markElementClasses } from "./markElementClasses.js";
|
|
@@ -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<'line'>;
|
|
3
3
|
export default getSeriesWithDefaultValues;
|
|
@@ -37,7 +37,7 @@ const seriesProcessor = (params, dataset) => {
|
|
|
37
37
|
}
|
|
38
38
|
});
|
|
39
39
|
} else if (dataset === undefined && process.env.NODE_ENV !== 'production') {
|
|
40
|
-
throw new Error([`MUI X: line series with id='${id}' has no data.`, 'Either provide a data property to the series or use the dataset prop.'].join('\n'));
|
|
40
|
+
throw new Error([`MUI X Charts: line series with id='${id}' has no data.`, 'Either provide a data property to the series or use the dataset prop.'].join('\n'));
|
|
41
41
|
}
|
|
42
42
|
});
|
|
43
43
|
const completedSeries = {};
|
|
@@ -64,7 +64,7 @@ const seriesProcessor = (params, dataset) => {
|
|
|
64
64
|
if (typeof value !== 'number') {
|
|
65
65
|
if (process.env.NODE_ENV !== 'production') {
|
|
66
66
|
if (value !== null) {
|
|
67
|
-
(0, _warning.warnOnce)([`MUI X: Your dataset key "${dataKey}" is used for plotting line, but contains nonnumerical elements.`, 'Line plots only support numbers and null values.']);
|
|
67
|
+
(0, _warning.warnOnce)([`MUI X Charts: Your dataset key "${dataKey}" is used for plotting line, but contains nonnumerical elements.`, 'Line plots only support numbers and null values.']);
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
70
|
return null;
|
|
@@ -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<'line'>;
|
|
3
3
|
export declare const axisTooltipGetter: AxisTooltipGetter<'line', 'x' | 'y'>;
|
|
4
4
|
export default tooltipGetter;
|
|
@@ -7,11 +7,11 @@ import { ChartsLegendSlotExtension } from "../ChartsLegend/index.js";
|
|
|
7
7
|
import { ChartsOverlayProps } from "../ChartsOverlay/index.js";
|
|
8
8
|
import { ChartContainerProps } from "../ChartContainer/index.js";
|
|
9
9
|
import { AreaPlotProps } from "./AreaPlot.js";
|
|
10
|
-
import type { LineChartProps } from
|
|
10
|
+
import type { LineChartProps } from "./LineChart.js";
|
|
11
11
|
import { LineHighlightPlotProps } from "./LineHighlightPlot.js";
|
|
12
12
|
import { LinePlotProps } from "./LinePlot.js";
|
|
13
13
|
import { MarkPlotProps } from "./MarkPlot.js";
|
|
14
|
-
import type { ChartsWrapperProps } from
|
|
14
|
+
import type { ChartsWrapperProps } from "../internals/components/ChartsWrapper/index.js";
|
|
15
15
|
import { LineChartPluginsSignatures } from "./LineChart.plugins.js";
|
|
16
16
|
/**
|
|
17
17
|
* A helper function that extracts LineChartProps from the input props
|
package/PieChart/PieArcLabel.js
CHANGED
|
@@ -68,8 +68,7 @@ const PieArcLabel = exports.PieArcLabel = /*#__PURE__*/React.forwardRef(function
|
|
|
68
68
|
startAngle,
|
|
69
69
|
endAngle,
|
|
70
70
|
paddingAngle,
|
|
71
|
-
|
|
72
|
-
outerRadius,
|
|
71
|
+
arcLabelRadius,
|
|
73
72
|
cornerRadius,
|
|
74
73
|
formattedArcLabel,
|
|
75
74
|
isHighlighted,
|
|
@@ -90,8 +89,8 @@ const PieArcLabel = exports.PieArcLabel = /*#__PURE__*/React.forwardRef(function
|
|
|
90
89
|
cornerRadius,
|
|
91
90
|
startAngle,
|
|
92
91
|
endAngle,
|
|
93
|
-
innerRadius,
|
|
94
|
-
outerRadius,
|
|
92
|
+
innerRadius: arcLabelRadius,
|
|
93
|
+
outerRadius: arcLabelRadius,
|
|
95
94
|
paddingAngle,
|
|
96
95
|
skipAnimation,
|
|
97
96
|
ref
|
|
@@ -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<'pie'>;
|
|
3
3
|
export default getSeriesWithDefaultValues;
|