@mui/x-charts 8.1.0 → 8.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/BarChart/BarChart.js +1 -1
- package/BarChart/BarLabel/BarLabel.types.d.ts +1 -1
- package/BarChart/BarLabel/BarLabelPlot.d.ts +1 -1
- package/BarChart/BarLabel/barLabelClasses.d.ts +1 -1
- package/BarChart/BarLabel/index.d.ts +4 -4
- package/BarChart/checkScaleErrors.d.ts +3 -3
- package/BarChart/checkScaleErrors.js +4 -4
- package/BarChart/seriesConfig/getSeriesWithDefaultValues.d.ts +1 -1
- package/BarChart/seriesConfig/seriesProcessor.js +2 -2
- package/BarChart/seriesConfig/tooltip.d.ts +1 -1
- package/BarChart/types.d.ts +2 -2
- package/BarChart/useBarChartProps.d.ts +2 -2
- package/BarChart/useBarChartProps.js +20 -2
- package/CHANGELOG.md +126 -7
- package/ChartContainer/ChartContainer.js +1 -1
- package/ChartContainer/useChartContainerProps.d.ts +1 -1
- package/ChartDataProvider/useChartDataProviderProps.d.ts +2 -2
- package/ChartsAxisHighlight/ChartsXAxisHighlight.js +1 -1
- package/ChartsAxisHighlight/ChartsYAxisHighlight.js +1 -1
- package/ChartsGrid/ChartsHorizontalGrid.d.ts +2 -2
- package/ChartsGrid/ChartsVerticalGrid.d.ts +2 -2
- package/ChartsLabel/ChartsLabelMark.js +8 -4
- package/ChartsLabel/index.d.ts +4 -4
- package/ChartsLabel/labelClasses.d.ts +1 -1
- package/ChartsLabel/labelGradientClasses.d.ts +1 -1
- package/ChartsLabel/labelMarkClasses.d.ts +1 -1
- package/ChartsLegend/ChartsLegend.d.ts +2 -2
- package/ChartsLegend/ContinuousColorLegend.d.ts +1 -1
- package/ChartsLegend/PiecewiseColorLegend.d.ts +1 -1
- package/ChartsLegend/chartsLegend.types.d.ts +1 -1
- package/ChartsLegend/chartsLegendClasses.d.ts +2 -2
- package/ChartsLegend/continuousColorLegendClasses.d.ts +2 -2
- package/ChartsLegend/index.d.ts +4 -4
- package/ChartsLegend/piecewiseColorLegendClasses.d.ts +2 -2
- package/ChartsLegend/useAxis.d.ts +2 -2
- package/ChartsLocalizationProvider/ChartsLocalizationProvider.d.ts +1 -1
- package/ChartsLocalizationProvider/index.d.ts +1 -1
- package/ChartsOverlay/ChartsLoadingOverlay.d.ts +1 -1
- package/ChartsOverlay/ChartsNoDataOverlay.d.ts +1 -1
- package/ChartsOverlay/index.d.ts +1 -1
- package/ChartsReferenceLine/ChartsReferenceLine.js +2 -2
- package/ChartsReferenceLine/ChartsXReferenceLine.js +1 -1
- package/ChartsReferenceLine/ChartsYReferenceLine.js +1 -1
- package/ChartsText/index.d.ts +2 -2
- package/ChartsTooltip/ChartsTooltipContainer.js +1 -0
- package/ChartsTooltip/index.d.ts +3 -3
- package/ChartsTooltip/useAxisTooltip.d.ts +2 -2
- package/LineChart/AnimatedArea.d.ts +1 -1
- package/LineChart/AnimatedLine.d.ts +1 -1
- package/LineChart/AreaPlot.js +2 -2
- package/LineChart/LineChart.js +1 -1
- package/LineChart/LineHighlightPlot.js +1 -1
- package/LineChart/LinePlot.js +2 -2
- package/LineChart/MarkPlot.js +1 -1
- package/LineChart/index.d.ts +1 -1
- package/LineChart/seriesConfig/getSeriesWithDefaultValues.d.ts +1 -1
- package/LineChart/seriesConfig/seriesProcessor.js +2 -2
- package/LineChart/seriesConfig/tooltip.d.ts +1 -1
- package/LineChart/useLineChartProps.d.ts +2 -2
- package/PieChart/seriesConfig/getSeriesWithDefaultValues.d.ts +1 -1
- package/PieChart/seriesConfig/tooltip.d.ts +1 -1
- package/RadarChart/RadarGrid/index.d.ts +1 -1
- package/RadarChart/RadarSeriesPlot/index.d.ts +2 -2
- package/RadarChart/RadarSeriesPlot/useRadarSeriesData.d.ts +3 -3
- package/RadarChart/index.d.ts +2 -2
- package/RadarChart/seriesConfig/getSeriesWithDefaultValues.d.ts +1 -1
- package/RadarChart/seriesConfig/tooltip.d.ts +1 -1
- package/RadarChart/useRadarChartProps.d.ts +2 -2
- package/ScatterChart/ScatterChart.js +1 -1
- package/ScatterChart/ScatterMarker.types.d.ts +1 -1
- package/ScatterChart/seriesConfig/getSeriesWithDefaultValues.d.ts +1 -1
- package/ScatterChart/seriesConfig/seriesProcessor.js +1 -1
- package/ScatterChart/seriesConfig/tooltip.d.ts +1 -1
- package/ScatterChart/useScatterChartProps.d.ts +3 -3
- package/SparkLineChart/SparkLineChart.js +1 -1
- package/colorPalettes/categorical/blueberryTwilight.d.ts +4 -0
- package/colorPalettes/categorical/blueberryTwilight.js +10 -0
- package/colorPalettes/categorical/cheerfulFiesta.d.ts +4 -0
- package/colorPalettes/categorical/cheerfulFiesta.js +10 -0
- package/colorPalettes/categorical/mangoFusion.d.ts +4 -0
- package/colorPalettes/categorical/mangoFusion.js +10 -0
- package/colorPalettes/categorical/rainbowSurge.d.ts +4 -0
- package/colorPalettes/categorical/rainbowSurge.js +10 -0
- package/colorPalettes/index.d.ts +14 -1
- package/colorPalettes/index.js +147 -4
- package/colorPalettes/sequential/blue.d.ts +4 -0
- package/colorPalettes/sequential/blue.js +12 -0
- package/colorPalettes/sequential/cyan.d.ts +4 -0
- package/colorPalettes/sequential/cyan.js +12 -0
- package/colorPalettes/sequential/green.d.ts +4 -0
- package/colorPalettes/sequential/green.js +12 -0
- package/colorPalettes/sequential/orange.d.ts +4 -0
- package/colorPalettes/sequential/orange.js +12 -0
- package/colorPalettes/sequential/pink.d.ts +4 -0
- package/colorPalettes/sequential/pink.js +12 -0
- package/colorPalettes/sequential/purple.d.ts +4 -0
- package/colorPalettes/sequential/purple.js +12 -0
- package/colorPalettes/sequential/red.d.ts +4 -0
- package/colorPalettes/sequential/red.js +12 -0
- package/colorPalettes/sequential/strawberrySky.d.ts +4 -0
- package/colorPalettes/sequential/strawberrySky.js +10 -0
- package/colorPalettes/sequential/yellow.d.ts +4 -0
- package/colorPalettes/sequential/yellow.js +12 -0
- package/colorPalettes/types.d.ts +4 -0
- package/colorPalettes/types.js +5 -0
- package/context/ChartProvider/ChartContext.d.ts +1 -1
- package/context/ChartProvider/ChartProvider.d.ts +1 -1
- package/context/ChartProvider/ChartProvider.types.d.ts +6 -6
- package/context/ChartProvider/useChartContext.js +1 -1
- package/context/index.d.ts +1 -1
- package/esm/BarChart/BarChart.js +1 -1
- package/esm/BarChart/BarLabel/BarLabel.types.d.ts +1 -1
- package/esm/BarChart/BarLabel/BarLabelPlot.d.ts +1 -1
- package/esm/BarChart/BarLabel/barLabelClasses.d.ts +1 -1
- package/esm/BarChart/BarLabel/index.d.ts +4 -4
- package/esm/BarChart/checkScaleErrors.d.ts +3 -3
- package/esm/BarChart/checkScaleErrors.js +4 -4
- package/esm/BarChart/seriesConfig/getSeriesWithDefaultValues.d.ts +1 -1
- package/esm/BarChart/seriesConfig/seriesProcessor.js +2 -2
- package/esm/BarChart/seriesConfig/tooltip.d.ts +1 -1
- package/esm/BarChart/types.d.ts +2 -2
- package/esm/BarChart/useBarChartProps.d.ts +2 -2
- package/esm/BarChart/useBarChartProps.js +20 -2
- package/esm/ChartContainer/ChartContainer.js +1 -1
- package/esm/ChartContainer/useChartContainerProps.d.ts +1 -1
- package/esm/ChartDataProvider/useChartDataProviderProps.d.ts +2 -2
- package/esm/ChartsAxisHighlight/ChartsXAxisHighlight.js +1 -1
- package/esm/ChartsAxisHighlight/ChartsYAxisHighlight.js +1 -1
- package/esm/ChartsGrid/ChartsHorizontalGrid.d.ts +2 -2
- package/esm/ChartsGrid/ChartsVerticalGrid.d.ts +2 -2
- package/esm/ChartsLabel/ChartsLabelMark.js +8 -4
- package/esm/ChartsLabel/index.d.ts +4 -4
- package/esm/ChartsLabel/labelClasses.d.ts +1 -1
- package/esm/ChartsLabel/labelGradientClasses.d.ts +1 -1
- package/esm/ChartsLabel/labelMarkClasses.d.ts +1 -1
- package/esm/ChartsLegend/ChartsLegend.d.ts +2 -2
- package/esm/ChartsLegend/ContinuousColorLegend.d.ts +1 -1
- package/esm/ChartsLegend/PiecewiseColorLegend.d.ts +1 -1
- package/esm/ChartsLegend/chartsLegend.types.d.ts +1 -1
- package/esm/ChartsLegend/chartsLegendClasses.d.ts +2 -2
- package/esm/ChartsLegend/continuousColorLegendClasses.d.ts +2 -2
- package/esm/ChartsLegend/index.d.ts +4 -4
- package/esm/ChartsLegend/piecewiseColorLegendClasses.d.ts +2 -2
- package/esm/ChartsLegend/useAxis.d.ts +2 -2
- package/esm/ChartsLocalizationProvider/ChartsLocalizationProvider.d.ts +1 -1
- package/esm/ChartsLocalizationProvider/index.d.ts +1 -1
- package/esm/ChartsOverlay/ChartsLoadingOverlay.d.ts +1 -1
- package/esm/ChartsOverlay/ChartsNoDataOverlay.d.ts +1 -1
- package/esm/ChartsOverlay/index.d.ts +1 -1
- package/esm/ChartsReferenceLine/ChartsReferenceLine.js +2 -2
- package/esm/ChartsReferenceLine/ChartsXReferenceLine.js +1 -1
- package/esm/ChartsReferenceLine/ChartsYReferenceLine.js +1 -1
- package/esm/ChartsText/index.d.ts +2 -2
- package/esm/ChartsTooltip/ChartsTooltipContainer.js +1 -0
- package/esm/ChartsTooltip/index.d.ts +3 -3
- package/esm/ChartsTooltip/useAxisTooltip.d.ts +2 -2
- package/esm/LineChart/AnimatedArea.d.ts +1 -1
- package/esm/LineChart/AnimatedLine.d.ts +1 -1
- package/esm/LineChart/AreaPlot.js +2 -2
- package/esm/LineChart/LineChart.js +1 -1
- package/esm/LineChart/LineHighlightPlot.js +1 -1
- package/esm/LineChart/LinePlot.js +2 -2
- package/esm/LineChart/MarkPlot.js +1 -1
- package/esm/LineChart/index.d.ts +1 -1
- package/esm/LineChart/seriesConfig/getSeriesWithDefaultValues.d.ts +1 -1
- package/esm/LineChart/seriesConfig/seriesProcessor.js +2 -2
- package/esm/LineChart/seriesConfig/tooltip.d.ts +1 -1
- package/esm/LineChart/useLineChartProps.d.ts +2 -2
- package/esm/PieChart/seriesConfig/getSeriesWithDefaultValues.d.ts +1 -1
- package/esm/PieChart/seriesConfig/tooltip.d.ts +1 -1
- package/esm/RadarChart/RadarGrid/index.d.ts +1 -1
- package/esm/RadarChart/RadarSeriesPlot/index.d.ts +2 -2
- package/esm/RadarChart/RadarSeriesPlot/useRadarSeriesData.d.ts +3 -3
- package/esm/RadarChart/index.d.ts +2 -2
- package/esm/RadarChart/seriesConfig/getSeriesWithDefaultValues.d.ts +1 -1
- package/esm/RadarChart/seriesConfig/tooltip.d.ts +1 -1
- package/esm/RadarChart/useRadarChartProps.d.ts +2 -2
- package/esm/ScatterChart/ScatterChart.js +1 -1
- package/esm/ScatterChart/ScatterMarker.types.d.ts +1 -1
- package/esm/ScatterChart/seriesConfig/getSeriesWithDefaultValues.d.ts +1 -1
- package/esm/ScatterChart/seriesConfig/seriesProcessor.js +1 -1
- package/esm/ScatterChart/seriesConfig/tooltip.d.ts +1 -1
- package/esm/ScatterChart/useScatterChartProps.d.ts +3 -3
- package/esm/SparkLineChart/SparkLineChart.js +1 -1
- package/esm/colorPalettes/categorical/blueberryTwilight.d.ts +4 -0
- package/esm/colorPalettes/categorical/blueberryTwilight.js +3 -0
- package/esm/colorPalettes/categorical/cheerfulFiesta.d.ts +4 -0
- package/esm/colorPalettes/categorical/cheerfulFiesta.js +3 -0
- package/esm/colorPalettes/categorical/mangoFusion.d.ts +4 -0
- package/esm/colorPalettes/categorical/mangoFusion.js +3 -0
- package/esm/colorPalettes/categorical/rainbowSurge.d.ts +4 -0
- package/esm/colorPalettes/categorical/rainbowSurge.js +3 -0
- package/esm/colorPalettes/index.d.ts +14 -1
- package/esm/colorPalettes/index.js +20 -1
- package/esm/colorPalettes/sequential/blue.d.ts +4 -0
- package/esm/colorPalettes/sequential/blue.js +5 -0
- package/esm/colorPalettes/sequential/cyan.d.ts +4 -0
- package/esm/colorPalettes/sequential/cyan.js +5 -0
- package/esm/colorPalettes/sequential/green.d.ts +4 -0
- package/esm/colorPalettes/sequential/green.js +5 -0
- package/esm/colorPalettes/sequential/orange.d.ts +4 -0
- package/esm/colorPalettes/sequential/orange.js +5 -0
- package/esm/colorPalettes/sequential/pink.d.ts +4 -0
- package/esm/colorPalettes/sequential/pink.js +5 -0
- package/esm/colorPalettes/sequential/purple.d.ts +4 -0
- package/esm/colorPalettes/sequential/purple.js +5 -0
- package/esm/colorPalettes/sequential/red.d.ts +4 -0
- package/esm/colorPalettes/sequential/red.js +5 -0
- package/esm/colorPalettes/sequential/strawberrySky.d.ts +4 -0
- package/esm/colorPalettes/sequential/strawberrySky.js +3 -0
- package/esm/colorPalettes/sequential/yellow.d.ts +4 -0
- package/esm/colorPalettes/sequential/yellow.js +5 -0
- package/esm/colorPalettes/types.d.ts +4 -0
- package/esm/colorPalettes/types.js +1 -0
- package/esm/context/ChartProvider/ChartContext.d.ts +1 -1
- package/esm/context/ChartProvider/ChartProvider.d.ts +1 -1
- package/esm/context/ChartProvider/ChartProvider.types.d.ts +6 -6
- package/esm/context/ChartProvider/useChartContext.js +1 -1
- package/esm/context/index.d.ts +1 -1
- package/esm/hooks/animation/useAnimateArea.d.ts +1 -1
- package/esm/hooks/animation/useAnimateBar.d.ts +1 -1
- package/esm/hooks/animation/useAnimateBarLabel.d.ts +1 -1
- package/esm/hooks/animation/useAnimateLine.d.ts +1 -1
- package/esm/hooks/animation/useAnimatePieArc.d.ts +1 -1
- package/esm/hooks/animation/useAnimatePieArcLabel.d.ts +1 -1
- package/esm/hooks/useAxis.d.ts +6 -6
- package/esm/hooks/useChartsLocalization.d.ts +1 -1
- package/esm/hooks/useChartsLocalization.js +1 -1
- package/esm/hooks/useItemHighlightedGetter.d.ts +2 -2
- package/esm/hooks/useLegend.d.ts +1 -1
- package/esm/hooks/useSeries.d.ts +1 -1
- package/esm/hooks/useSvgRef.js +1 -1
- package/esm/hooks/useZAxis.d.ts +3 -3
- package/esm/index.js +1 -1
- package/esm/internals/createSeriesSelectorOfType.d.ts +1 -1
- package/esm/internals/createSeriesSelectorOfType.js +1 -1
- package/esm/internals/defaultizeMargin.d.ts +1 -1
- package/esm/internals/geometry.js +1 -1
- package/esm/internals/getPercentageValue.js +1 -1
- package/esm/internals/plugins/allPlugins.d.ts +1 -1
- package/esm/internals/plugins/corePlugins/corePlugins.d.ts +1 -1
- package/esm/internals/plugins/corePlugins/index.d.ts +1 -1
- package/esm/internals/plugins/corePlugins/useChartAnimation/index.d.ts +1 -1
- package/esm/internals/plugins/corePlugins/useChartAnimation/useChartAnimation.d.ts +1 -1
- package/esm/internals/plugins/corePlugins/useChartAnimation/useChartAnimation.selectors.d.ts +3 -3
- package/esm/internals/plugins/corePlugins/useChartAnimation/useChartAnimation.types.d.ts +1 -1
- package/esm/internals/plugins/corePlugins/useChartDimensions/index.d.ts +1 -1
- package/esm/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.d.ts +1 -1
- package/esm/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.js +2 -2
- package/esm/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.selectors.d.ts +142 -142
- package/esm/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.types.d.ts +1 -1
- package/esm/internals/plugins/corePlugins/useChartId/index.d.ts +1 -1
- package/esm/internals/plugins/corePlugins/useChartId/useChartId.selectors.d.ts +2 -2
- package/esm/internals/plugins/corePlugins/useChartSeries/index.d.ts +1 -1
- package/esm/internals/plugins/corePlugins/useChartSeries/processSeries.js +1 -1
- package/esm/internals/plugins/corePlugins/useChartSeries/useChartSeries.selectors.d.ts +20 -20
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/computeAxisValue.d.ts +3 -3
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/defaultizeAxis.d.ts +4 -5
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/defaultizeAxis.js +6 -6
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/getAxisValue.d.ts +3 -3
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/index.d.ts +1 -1
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisSize.selectors.d.ts +68 -68
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxis.js +1 -1
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxis.types.d.ts +18 -14
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisLayout.selectors.d.ts +26 -26
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.d.ts +892 -892
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianInteraction.selectors.d.ts +5 -5
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/zoom.types.d.ts +1 -1
- package/esm/internals/plugins/featurePlugins/useChartHighlight/index.d.ts +2 -2
- package/esm/internals/plugins/featurePlugins/useChartHighlight/useChartHighlight.selectors.d.ts +77 -77
- package/esm/internals/plugins/featurePlugins/useChartInteraction/index.d.ts +1 -1
- package/esm/internals/plugins/featurePlugins/useChartInteraction/useChartInteraction.selectors.d.ts +68 -68
- package/esm/internals/plugins/featurePlugins/useChartPolarAxis/computeAxisValue.d.ts +1 -1
- package/esm/internals/plugins/featurePlugins/useChartPolarAxis/defaultizeAxis.js +1 -1
- package/esm/internals/plugins/featurePlugins/useChartPolarAxis/getAxisIndex.js +1 -1
- package/esm/internals/plugins/featurePlugins/useChartPolarAxis/index.d.ts +1 -1
- package/esm/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.js +1 -1
- package/esm/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.selectors.d.ts +512 -512
- package/esm/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarInteraction.selectors.d.ts +3 -3
- package/esm/internals/plugins/featurePlugins/useChartVoronoi/index.d.ts +1 -1
- package/esm/internals/plugins/featurePlugins/useChartVoronoi/useChartVoronoi.selectors.d.ts +2 -2
- package/esm/internals/plugins/featurePlugins/useChartZAxis/index.d.ts +1 -1
- package/esm/internals/plugins/featurePlugins/useChartZAxis/useChartZAxis.js +1 -1
- package/esm/internals/plugins/featurePlugins/useChartZAxis/useChartZAxis.selectors.d.ts +10 -10
- package/esm/internals/plugins/models/chart.d.ts +3 -3
- package/esm/internals/plugins/models/helpers.d.ts +1 -1
- package/esm/internals/plugins/models/plugin.d.ts +2 -2
- package/esm/internals/plugins/models/seriesConfig/cartesianExtremumGetter.types.d.ts +3 -3
- package/esm/internals/plugins/models/seriesConfig/colorProcessor.types.d.ts +5 -5
- package/esm/internals/plugins/models/seriesConfig/getSeriesWithDefaultValues.types.d.ts +2 -2
- package/esm/internals/plugins/models/seriesConfig/legendGetter.types.d.ts +3 -3
- package/esm/internals/plugins/models/seriesConfig/polarExtremumGetter.types.d.ts +3 -3
- package/esm/internals/plugins/models/seriesConfig/seriesConfig.types.d.ts +6 -6
- package/esm/internals/plugins/models/seriesConfig/seriesProcessor.types.d.ts +3 -3
- package/esm/internals/plugins/models/seriesConfig/tooltipGetter.types.d.ts +4 -4
- package/esm/internals/plugins/utils/ChartStore.d.ts +2 -2
- package/esm/internals/stackSeries.d.ts +1 -1
- package/esm/internals/store/useChartModels.js +2 -2
- package/esm/internals/store/useCharts.d.ts +1 -1
- package/esm/internals/store/useStore.js +1 -1
- package/esm/locales/index.d.ts +1 -1
- package/esm/models/axis.d.ts +15 -3
- package/esm/models/axis.js +8 -0
- package/esm/models/index.d.ts +3 -3
- package/esm/models/seriesType/bar.d.ts +1 -1
- package/esm/models/seriesType/common.d.ts +2 -2
- package/esm/models/seriesType/line.d.ts +1 -1
- package/esm/models/seriesType/pie.d.ts +1 -1
- package/esm/themeAugmentation/components.js +1 -0
- package/esm/themeAugmentation/index.d.ts +3 -3
- package/esm/themeAugmentation/overrides.d.ts +3 -12
- package/esm/themeAugmentation/overrides.js +2 -0
- package/esm/themeAugmentation/props.d.ts +0 -7
- package/esm/themeAugmentation/props.js +2 -0
- package/hooks/animation/useAnimateArea.d.ts +1 -1
- package/hooks/animation/useAnimateBar.d.ts +1 -1
- package/hooks/animation/useAnimateBarLabel.d.ts +1 -1
- package/hooks/animation/useAnimateLine.d.ts +1 -1
- package/hooks/animation/useAnimatePieArc.d.ts +1 -1
- package/hooks/animation/useAnimatePieArcLabel.d.ts +1 -1
- package/hooks/useAxis.d.ts +6 -6
- package/hooks/useChartsLocalization.d.ts +1 -1
- package/hooks/useChartsLocalization.js +1 -1
- package/hooks/useItemHighlightedGetter.d.ts +2 -2
- package/hooks/useLegend.d.ts +1 -1
- package/hooks/useSeries.d.ts +1 -1
- package/hooks/useSvgRef.js +1 -1
- package/hooks/useZAxis.d.ts +3 -3
- package/index.js +1 -1
- package/internals/createSeriesSelectorOfType.d.ts +1 -1
- package/internals/createSeriesSelectorOfType.js +1 -1
- package/internals/defaultizeMargin.d.ts +1 -1
- package/internals/geometry.js +1 -1
- package/internals/getPercentageValue.js +1 -1
- package/internals/plugins/allPlugins.d.ts +1 -1
- package/internals/plugins/corePlugins/corePlugins.d.ts +1 -1
- package/internals/plugins/corePlugins/index.d.ts +1 -1
- package/internals/plugins/corePlugins/useChartAnimation/index.d.ts +1 -1
- package/internals/plugins/corePlugins/useChartAnimation/useChartAnimation.d.ts +1 -1
- package/internals/plugins/corePlugins/useChartAnimation/useChartAnimation.selectors.d.ts +3 -3
- package/internals/plugins/corePlugins/useChartAnimation/useChartAnimation.types.d.ts +1 -1
- package/internals/plugins/corePlugins/useChartDimensions/index.d.ts +1 -1
- package/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.d.ts +1 -1
- package/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.js +2 -2
- package/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.selectors.d.ts +142 -142
- package/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.types.d.ts +1 -1
- package/internals/plugins/corePlugins/useChartId/index.d.ts +1 -1
- package/internals/plugins/corePlugins/useChartId/useChartId.selectors.d.ts +2 -2
- package/internals/plugins/corePlugins/useChartSeries/index.d.ts +1 -1
- package/internals/plugins/corePlugins/useChartSeries/processSeries.js +1 -1
- package/internals/plugins/corePlugins/useChartSeries/useChartSeries.selectors.d.ts +20 -20
- package/internals/plugins/featurePlugins/useChartCartesianAxis/computeAxisValue.d.ts +3 -3
- package/internals/plugins/featurePlugins/useChartCartesianAxis/defaultizeAxis.d.ts +4 -5
- package/internals/plugins/featurePlugins/useChartCartesianAxis/defaultizeAxis.js +6 -6
- package/internals/plugins/featurePlugins/useChartCartesianAxis/getAxisValue.d.ts +3 -3
- package/internals/plugins/featurePlugins/useChartCartesianAxis/index.d.ts +1 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisSize.selectors.d.ts +68 -68
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxis.js +1 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxis.types.d.ts +18 -14
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisLayout.selectors.d.ts +26 -26
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.d.ts +892 -892
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianInteraction.selectors.d.ts +5 -5
- package/internals/plugins/featurePlugins/useChartCartesianAxis/zoom.types.d.ts +1 -1
- package/internals/plugins/featurePlugins/useChartHighlight/index.d.ts +2 -2
- package/internals/plugins/featurePlugins/useChartHighlight/useChartHighlight.selectors.d.ts +77 -77
- package/internals/plugins/featurePlugins/useChartInteraction/index.d.ts +1 -1
- package/internals/plugins/featurePlugins/useChartInteraction/useChartInteraction.selectors.d.ts +68 -68
- package/internals/plugins/featurePlugins/useChartPolarAxis/computeAxisValue.d.ts +1 -1
- package/internals/plugins/featurePlugins/useChartPolarAxis/defaultizeAxis.js +1 -1
- package/internals/plugins/featurePlugins/useChartPolarAxis/getAxisIndex.js +1 -1
- package/internals/plugins/featurePlugins/useChartPolarAxis/index.d.ts +1 -1
- package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.js +1 -1
- package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.selectors.d.ts +512 -512
- package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarInteraction.selectors.d.ts +3 -3
- package/internals/plugins/featurePlugins/useChartVoronoi/index.d.ts +1 -1
- package/internals/plugins/featurePlugins/useChartVoronoi/useChartVoronoi.selectors.d.ts +2 -2
- package/internals/plugins/featurePlugins/useChartZAxis/index.d.ts +1 -1
- package/internals/plugins/featurePlugins/useChartZAxis/useChartZAxis.js +1 -1
- package/internals/plugins/featurePlugins/useChartZAxis/useChartZAxis.selectors.d.ts +10 -10
- package/internals/plugins/models/chart.d.ts +3 -3
- package/internals/plugins/models/helpers.d.ts +1 -1
- package/internals/plugins/models/plugin.d.ts +2 -2
- package/internals/plugins/models/seriesConfig/cartesianExtremumGetter.types.d.ts +3 -3
- package/internals/plugins/models/seriesConfig/colorProcessor.types.d.ts +5 -5
- package/internals/plugins/models/seriesConfig/getSeriesWithDefaultValues.types.d.ts +2 -2
- package/internals/plugins/models/seriesConfig/legendGetter.types.d.ts +3 -3
- package/internals/plugins/models/seriesConfig/polarExtremumGetter.types.d.ts +3 -3
- package/internals/plugins/models/seriesConfig/seriesConfig.types.d.ts +6 -6
- package/internals/plugins/models/seriesConfig/seriesProcessor.types.d.ts +3 -3
- package/internals/plugins/models/seriesConfig/tooltipGetter.types.d.ts +4 -4
- package/internals/plugins/utils/ChartStore.d.ts +2 -2
- package/internals/stackSeries.d.ts +1 -1
- package/internals/store/useChartModels.js +2 -2
- package/internals/store/useCharts.d.ts +1 -1
- package/internals/store/useStore.js +1 -1
- package/locales/index.d.ts +1 -1
- package/models/axis.d.ts +15 -3
- package/models/axis.js +8 -0
- package/models/index.d.ts +3 -3
- package/models/seriesType/bar.d.ts +1 -1
- package/models/seriesType/common.d.ts +2 -2
- package/models/seriesType/line.d.ts +1 -1
- package/models/seriesType/pie.d.ts +1 -1
- package/package.json +2 -2
- package/themeAugmentation/components.js +5 -0
- package/themeAugmentation/index.d.ts +3 -3
- package/themeAugmentation/overrides.d.ts +3 -12
- package/themeAugmentation/overrides.js +5 -0
- package/themeAugmentation/props.d.ts +0 -7
- package/themeAugmentation/props.js +5 -0
- package/colorPalettes/colorPalettes.d.ts +0 -16
- package/colorPalettes/colorPalettes.js +0 -22
- package/esm/colorPalettes/colorPalettes.d.ts +0 -16
- package/esm/colorPalettes/colorPalettes.js +0 -12
|
@@ -1,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;
|
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);
|
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);
|
package/LineChart/MarkPlot.js
CHANGED
|
@@ -87,7 +87,7 @@ function MarkPlot(props) {
|
|
|
87
87
|
const yScale = yAxis[yAxisId].scale;
|
|
88
88
|
const xData = xAxis[xAxisId].data;
|
|
89
89
|
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.`);
|
|
90
|
+
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
91
|
}
|
|
92
92
|
const clipId = (0, _cleanId.cleanId)(`${chartId}-${seriesId}-line-clip`); // We assume that if displaying line mark, the line will also be rendered
|
|
93
93
|
|
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
|
|
@@ -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;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export * from "./RadarGrid.js";
|
|
2
|
-
export type { RadarGridProps } from
|
|
2
|
+
export type { RadarGridProps } from "./RadarGrid.types.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export * from "./RadarSeriesPlot.js";
|
|
2
|
-
export type * from
|
|
2
|
+
export type * from "./RadarSeriesPlot.types.js";
|
|
3
3
|
export { RadarSeriesArea } from "./RadarSeriesArea.js";
|
|
4
4
|
export { RadarSeriesMarks } from "./RadarSeriesMarks.js";
|
|
5
|
-
export type { RadarSeriesPlotClasses, RadarSeriesPlotClassKey } from
|
|
5
|
+
export type { RadarSeriesPlotClasses, RadarSeriesPlotClassKey } from "./radarSeriesPlotClasses.js";
|
|
6
6
|
export { radarSeriesPlotClasses } from "./radarSeriesPlotClasses.js";
|
|
@@ -17,12 +17,12 @@ export declare function useRadarSeriesData(querySeriesId?: SeriesId): {
|
|
|
17
17
|
}[];
|
|
18
18
|
type: "radar";
|
|
19
19
|
label?: string | ((location: "tooltip" | "legend") => string) | undefined;
|
|
20
|
-
highlightScope?: Partial<import("
|
|
21
|
-
labelMarkType?: "line" | "square" | "circle" | import("react").ComponentType<import("
|
|
20
|
+
highlightScope?: Partial<import("../../index.js").HighlightScope> | undefined;
|
|
21
|
+
labelMarkType?: "line" | "square" | "circle" | import("react").ComponentType<import("../../index.js").ChartsLabelCustomMarkProps> | undefined;
|
|
22
22
|
hideMark?: boolean | undefined;
|
|
23
23
|
fillArea?: boolean | undefined;
|
|
24
24
|
data: number[];
|
|
25
25
|
color: string;
|
|
26
26
|
id: SeriesId;
|
|
27
|
-
valueFormatter: import("../../internals").SeriesValueFormatter<number>;
|
|
27
|
+
valueFormatter: import("../../internals/index.js").SeriesValueFormatter<number>;
|
|
28
28
|
}[];
|
package/RadarChart/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { RadarChart as Unstable_RadarChart } from "./RadarChart.js";
|
|
2
2
|
export { RadarDataProvider as Unstable_RadarDataProvider } from "./RadarDataProvider/index.js";
|
|
3
|
-
export type { RadarChartProps } from
|
|
4
|
-
export type { RadarDataProviderProps } from
|
|
3
|
+
export type { RadarChartProps } from "./RadarChart.js";
|
|
4
|
+
export type { RadarDataProviderProps } from "./RadarDataProvider/index.js";
|
|
5
5
|
export * from "./RadarGrid/index.js";
|
|
6
6
|
export * from "./RadarAxisHighlight/index.js";
|
|
7
7
|
export * from "./RadarMetricLabels/index.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<'radar'>;
|
|
3
3
|
export default getSeriesWithDefaultValues;
|
|
@@ -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<'radar'>;
|
|
3
3
|
export declare const axisTooltipGetter: AxisTooltipGetter<'radar', 'rotation'>;
|
|
4
4
|
export default tooltipGetter;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { RadarChartProps } from
|
|
1
|
+
import type { RadarChartProps } from "./RadarChart.js";
|
|
2
2
|
import { ChartsOverlayProps } from "../ChartsOverlay/index.js";
|
|
3
3
|
import { ChartsLegendSlotExtension } from "../ChartsLegend/index.js";
|
|
4
|
-
import type { ChartsWrapperProps } from
|
|
4
|
+
import type { ChartsWrapperProps } from "../internals/components/ChartsWrapper/index.js";
|
|
5
5
|
import { RadarDataProviderProps } from "./RadarDataProvider/RadarDataProvider.js";
|
|
6
6
|
import { ChartsSurfaceProps } from "../ChartsSurface/index.js";
|
|
7
7
|
import { RadarGridProps } from "./RadarGrid/index.js";
|
|
@@ -161,7 +161,7 @@ process.env.NODE_ENV !== "production" ? ScatterChart.propTypes = {
|
|
|
161
161
|
* The function called for onClick events.
|
|
162
162
|
* The second argument contains information about all line/bar elements at the current mouse position.
|
|
163
163
|
* @param {MouseEvent} event The mouse event recorded on the `<svg/>` element.
|
|
164
|
-
* @param {null |
|
|
164
|
+
* @param {null | ChartsAxisData} data The data about the clicked axis and items associated with it.
|
|
165
165
|
*/
|
|
166
166
|
onAxisClick: _propTypes.default.func,
|
|
167
167
|
/**
|
|
@@ -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<'scatter'>;
|
|
3
3
|
export default getSeriesWithDefaultValues;
|
|
@@ -14,7 +14,7 @@ const seriesProcessor = ({
|
|
|
14
14
|
const datasetKeys = seriesData?.datasetKeys;
|
|
15
15
|
const missingKeys = ['x', 'y', 'id'].filter(key => typeof datasetKeys?.[key] !== 'string');
|
|
16
16
|
if (seriesData?.datasetKeys && missingKeys.length > 0) {
|
|
17
|
-
throw new Error([`MUI X: scatter series with id='${seriesId}' has incomplete datasetKeys.`, `Properties ${missingKeys.map(key => `"${key}"`).join(', ')} are missing.`].join('\n'));
|
|
17
|
+
throw new Error([`MUI X Charts: scatter series with id='${seriesId}' has incomplete datasetKeys.`, `Properties ${missingKeys.map(key => `"${key}"`).join(', ')} are missing.`].join('\n'));
|
|
18
18
|
}
|
|
19
19
|
const data = !datasetKeys ? seriesData.data ?? [] : dataset?.map(d => {
|
|
20
20
|
return {
|
|
@@ -5,9 +5,9 @@ import { ChartsGridProps } from "../ChartsGrid/index.js";
|
|
|
5
5
|
import { ChartsLegendSlotExtension } from "../ChartsLegend/index.js";
|
|
6
6
|
import { ChartsOverlayProps } from "../ChartsOverlay/index.js";
|
|
7
7
|
import { ChartContainerProps } from "../ChartContainer/index.js";
|
|
8
|
-
import type { ScatterChartProps } from
|
|
9
|
-
import type { ScatterPlotProps } from
|
|
10
|
-
import type { ChartsWrapperProps } from
|
|
8
|
+
import type { ScatterChartProps } from "./ScatterChart.js";
|
|
9
|
+
import type { ScatterPlotProps } from "./ScatterPlot.js";
|
|
10
|
+
import type { ChartsWrapperProps } from "../internals/components/ChartsWrapper/index.js";
|
|
11
11
|
import { ScatterChartPluginsSignatures } from "./ScatterChart.plugins.js";
|
|
12
12
|
/**
|
|
13
13
|
* A helper function that extracts ScatterChartProps from the input props
|
|
@@ -205,7 +205,7 @@ process.env.NODE_ENV !== "production" ? SparkLineChart.propTypes = {
|
|
|
205
205
|
* The function called for onClick events.
|
|
206
206
|
* The second argument contains information about all line/bar elements at the current mouse position.
|
|
207
207
|
* @param {MouseEvent} event The mouse event recorded on the `<svg/>` element.
|
|
208
|
-
* @param {null |
|
|
208
|
+
* @param {null | ChartsAxisData} data The data about the clicked axis and items associated with it.
|
|
209
209
|
*/
|
|
210
210
|
onAxisClick: _propTypes.default.func,
|
|
211
211
|
/**
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.blueberryTwilightPaletteLight = exports.blueberryTwilightPaletteDark = exports.blueberryTwilightPalette = void 0;
|
|
7
|
+
const blueberryTwilightPaletteLight = exports.blueberryTwilightPaletteLight = ['#02B2AF', '#2E96FF', '#B800D8', '#60009B', '#2731C8', '#03008D'];
|
|
8
|
+
const blueberryTwilightPaletteDark = exports.blueberryTwilightPaletteDark = ['#02B2AF', '#72CCFF', '#DA00FF', '#9001CB', '#2E96FF', '#3B48E0'];
|
|
9
|
+
const blueberryTwilightPalette = mode => mode === 'dark' ? blueberryTwilightPaletteDark : blueberryTwilightPaletteLight;
|
|
10
|
+
exports.blueberryTwilightPalette = blueberryTwilightPalette;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.cheerfulFiestaPaletteLight = exports.cheerfulFiestaPaletteDark = exports.cheerfulFiestaPalette = void 0;
|
|
7
|
+
const cheerfulFiestaPaletteDark = exports.cheerfulFiestaPaletteDark = ['#0059B2', '#2E96FF', '#FFC24C', '#FF9F0E', '#F38200', '#2ABFDE', '#1F94AD', '#BD2C38', '#FF3143', '#FF8282'];
|
|
8
|
+
const cheerfulFiestaPaletteLight = exports.cheerfulFiestaPaletteLight = ['#003A75', '#007FFF', '#FFC24C', '#FF9D09', '#CA6C00', '#127D94', '#1F94AD', '#C82634', '#FF3143', '#FF7E7E'];
|
|
9
|
+
const cheerfulFiestaPalette = mode => mode === 'dark' ? cheerfulFiestaPaletteDark : cheerfulFiestaPaletteLight;
|
|
10
|
+
exports.cheerfulFiestaPalette = cheerfulFiestaPalette;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.mangoFusionPaletteLight = exports.mangoFusionPaletteDark = exports.mangoFusionPalette = void 0;
|
|
7
|
+
const mangoFusionPaletteLight = exports.mangoFusionPaletteLight = ['#173A5E', '#00A3A0', '#C91B63', '#EF5350', '#FFA726', '#B800D8', '#60009B', '#2E96FF', '#2731C8', '#03008D'];
|
|
8
|
+
const mangoFusionPaletteDark = exports.mangoFusionPaletteDark = ['#41698F', '#19D0CD', '#DE196B', '#FC5F5C', '#FFD771', '#DA00FF', '#9001CB', '#72CCFF', '#2E96FF', '#3B48E0'];
|
|
9
|
+
const mangoFusionPalette = mode => mode === 'dark' ? mangoFusionPaletteDark : mangoFusionPaletteLight;
|
|
10
|
+
exports.mangoFusionPalette = mangoFusionPalette;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.rainbowSurgePaletteLight = exports.rainbowSurgePaletteDark = exports.rainbowSurgePalette = void 0;
|
|
7
|
+
const rainbowSurgePaletteLight = exports.rainbowSurgePaletteLight = ['#4254FB', '#FFB422', '#FA4F58', '#0DBEFF', '#22BF75', '#FA83B4', '#FF7511'];
|
|
8
|
+
const rainbowSurgePaletteDark = exports.rainbowSurgePaletteDark = ['#495AFB', '#FFC758', '#F35865', '#30C8FF', '#44CE8D', '#F286B3', '#FF8C39'];
|
|
9
|
+
const rainbowSurgePalette = mode => mode === 'dark' ? rainbowSurgePaletteDark : rainbowSurgePaletteLight;
|
|
10
|
+
exports.rainbowSurgePalette = rainbowSurgePalette;
|
package/colorPalettes/index.d.ts
CHANGED
|
@@ -1 +1,14 @@
|
|
|
1
|
-
export * from "./
|
|
1
|
+
export * from "./types.js";
|
|
2
|
+
export * from "./categorical/rainbowSurge.js";
|
|
3
|
+
export * from "./categorical/blueberryTwilight.js";
|
|
4
|
+
export * from "./categorical/mangoFusion.js";
|
|
5
|
+
export * from "./categorical/cheerfulFiesta.js";
|
|
6
|
+
export * from "./sequential/strawberrySky.js";
|
|
7
|
+
export * from "./sequential/blue.js";
|
|
8
|
+
export * from "./sequential/cyan.js";
|
|
9
|
+
export * from "./sequential/green.js";
|
|
10
|
+
export * from "./sequential/orange.js";
|
|
11
|
+
export * from "./sequential/pink.js";
|
|
12
|
+
export * from "./sequential/purple.js";
|
|
13
|
+
export * from "./sequential/red.js";
|
|
14
|
+
export * from "./sequential/yellow.js";
|