@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
package/colorPalettes/index.js
CHANGED
|
@@ -3,14 +3,157 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
var
|
|
7
|
-
Object.keys(
|
|
6
|
+
var _types = require("./types");
|
|
7
|
+
Object.keys(_types).forEach(function (key) {
|
|
8
8
|
if (key === "default" || key === "__esModule") return;
|
|
9
|
-
if (key in exports && exports[key] ===
|
|
9
|
+
if (key in exports && exports[key] === _types[key]) return;
|
|
10
10
|
Object.defineProperty(exports, key, {
|
|
11
11
|
enumerable: true,
|
|
12
12
|
get: function () {
|
|
13
|
-
return
|
|
13
|
+
return _types[key];
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
});
|
|
17
|
+
var _rainbowSurge = require("./categorical/rainbowSurge");
|
|
18
|
+
Object.keys(_rainbowSurge).forEach(function (key) {
|
|
19
|
+
if (key === "default" || key === "__esModule") return;
|
|
20
|
+
if (key in exports && exports[key] === _rainbowSurge[key]) return;
|
|
21
|
+
Object.defineProperty(exports, key, {
|
|
22
|
+
enumerable: true,
|
|
23
|
+
get: function () {
|
|
24
|
+
return _rainbowSurge[key];
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
});
|
|
28
|
+
var _blueberryTwilight = require("./categorical/blueberryTwilight");
|
|
29
|
+
Object.keys(_blueberryTwilight).forEach(function (key) {
|
|
30
|
+
if (key === "default" || key === "__esModule") return;
|
|
31
|
+
if (key in exports && exports[key] === _blueberryTwilight[key]) return;
|
|
32
|
+
Object.defineProperty(exports, key, {
|
|
33
|
+
enumerable: true,
|
|
34
|
+
get: function () {
|
|
35
|
+
return _blueberryTwilight[key];
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
});
|
|
39
|
+
var _mangoFusion = require("./categorical/mangoFusion");
|
|
40
|
+
Object.keys(_mangoFusion).forEach(function (key) {
|
|
41
|
+
if (key === "default" || key === "__esModule") return;
|
|
42
|
+
if (key in exports && exports[key] === _mangoFusion[key]) return;
|
|
43
|
+
Object.defineProperty(exports, key, {
|
|
44
|
+
enumerable: true,
|
|
45
|
+
get: function () {
|
|
46
|
+
return _mangoFusion[key];
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
});
|
|
50
|
+
var _cheerfulFiesta = require("./categorical/cheerfulFiesta");
|
|
51
|
+
Object.keys(_cheerfulFiesta).forEach(function (key) {
|
|
52
|
+
if (key === "default" || key === "__esModule") return;
|
|
53
|
+
if (key in exports && exports[key] === _cheerfulFiesta[key]) return;
|
|
54
|
+
Object.defineProperty(exports, key, {
|
|
55
|
+
enumerable: true,
|
|
56
|
+
get: function () {
|
|
57
|
+
return _cheerfulFiesta[key];
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
});
|
|
61
|
+
var _strawberrySky = require("./sequential/strawberrySky");
|
|
62
|
+
Object.keys(_strawberrySky).forEach(function (key) {
|
|
63
|
+
if (key === "default" || key === "__esModule") return;
|
|
64
|
+
if (key in exports && exports[key] === _strawberrySky[key]) return;
|
|
65
|
+
Object.defineProperty(exports, key, {
|
|
66
|
+
enumerable: true,
|
|
67
|
+
get: function () {
|
|
68
|
+
return _strawberrySky[key];
|
|
69
|
+
}
|
|
70
|
+
});
|
|
71
|
+
});
|
|
72
|
+
var _blue = require("./sequential/blue");
|
|
73
|
+
Object.keys(_blue).forEach(function (key) {
|
|
74
|
+
if (key === "default" || key === "__esModule") return;
|
|
75
|
+
if (key in exports && exports[key] === _blue[key]) return;
|
|
76
|
+
Object.defineProperty(exports, key, {
|
|
77
|
+
enumerable: true,
|
|
78
|
+
get: function () {
|
|
79
|
+
return _blue[key];
|
|
80
|
+
}
|
|
81
|
+
});
|
|
82
|
+
});
|
|
83
|
+
var _cyan = require("./sequential/cyan");
|
|
84
|
+
Object.keys(_cyan).forEach(function (key) {
|
|
85
|
+
if (key === "default" || key === "__esModule") return;
|
|
86
|
+
if (key in exports && exports[key] === _cyan[key]) return;
|
|
87
|
+
Object.defineProperty(exports, key, {
|
|
88
|
+
enumerable: true,
|
|
89
|
+
get: function () {
|
|
90
|
+
return _cyan[key];
|
|
91
|
+
}
|
|
92
|
+
});
|
|
93
|
+
});
|
|
94
|
+
var _green = require("./sequential/green");
|
|
95
|
+
Object.keys(_green).forEach(function (key) {
|
|
96
|
+
if (key === "default" || key === "__esModule") return;
|
|
97
|
+
if (key in exports && exports[key] === _green[key]) return;
|
|
98
|
+
Object.defineProperty(exports, key, {
|
|
99
|
+
enumerable: true,
|
|
100
|
+
get: function () {
|
|
101
|
+
return _green[key];
|
|
102
|
+
}
|
|
103
|
+
});
|
|
104
|
+
});
|
|
105
|
+
var _orange = require("./sequential/orange");
|
|
106
|
+
Object.keys(_orange).forEach(function (key) {
|
|
107
|
+
if (key === "default" || key === "__esModule") return;
|
|
108
|
+
if (key in exports && exports[key] === _orange[key]) return;
|
|
109
|
+
Object.defineProperty(exports, key, {
|
|
110
|
+
enumerable: true,
|
|
111
|
+
get: function () {
|
|
112
|
+
return _orange[key];
|
|
113
|
+
}
|
|
114
|
+
});
|
|
115
|
+
});
|
|
116
|
+
var _pink = require("./sequential/pink");
|
|
117
|
+
Object.keys(_pink).forEach(function (key) {
|
|
118
|
+
if (key === "default" || key === "__esModule") return;
|
|
119
|
+
if (key in exports && exports[key] === _pink[key]) return;
|
|
120
|
+
Object.defineProperty(exports, key, {
|
|
121
|
+
enumerable: true,
|
|
122
|
+
get: function () {
|
|
123
|
+
return _pink[key];
|
|
124
|
+
}
|
|
125
|
+
});
|
|
126
|
+
});
|
|
127
|
+
var _purple = require("./sequential/purple");
|
|
128
|
+
Object.keys(_purple).forEach(function (key) {
|
|
129
|
+
if (key === "default" || key === "__esModule") return;
|
|
130
|
+
if (key in exports && exports[key] === _purple[key]) return;
|
|
131
|
+
Object.defineProperty(exports, key, {
|
|
132
|
+
enumerable: true,
|
|
133
|
+
get: function () {
|
|
134
|
+
return _purple[key];
|
|
135
|
+
}
|
|
136
|
+
});
|
|
137
|
+
});
|
|
138
|
+
var _red = require("./sequential/red");
|
|
139
|
+
Object.keys(_red).forEach(function (key) {
|
|
140
|
+
if (key === "default" || key === "__esModule") return;
|
|
141
|
+
if (key in exports && exports[key] === _red[key]) return;
|
|
142
|
+
Object.defineProperty(exports, key, {
|
|
143
|
+
enumerable: true,
|
|
144
|
+
get: function () {
|
|
145
|
+
return _red[key];
|
|
146
|
+
}
|
|
147
|
+
});
|
|
148
|
+
});
|
|
149
|
+
var _yellow = require("./sequential/yellow");
|
|
150
|
+
Object.keys(_yellow).forEach(function (key) {
|
|
151
|
+
if (key === "default" || key === "__esModule") return;
|
|
152
|
+
if (key in exports && exports[key] === _yellow[key]) return;
|
|
153
|
+
Object.defineProperty(exports, key, {
|
|
154
|
+
enumerable: true,
|
|
155
|
+
get: function () {
|
|
156
|
+
return _yellow[key];
|
|
14
157
|
}
|
|
15
158
|
});
|
|
16
159
|
});
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.bluePaletteLight = exports.bluePaletteDark = exports.bluePalette = void 0;
|
|
7
|
+
// Blue sequential gradient palette based on the color scheme
|
|
8
|
+
|
|
9
|
+
const bluePaletteLight = exports.bluePaletteLight = ['#BDDEFF', '#99CCFF', '#66B2FF', '#2E96FF', '#0064D6', '#0D47A1', '#0A367B', '#072555'];
|
|
10
|
+
const bluePaletteDark = exports.bluePaletteDark = bluePaletteLight;
|
|
11
|
+
const bluePalette = mode => mode === 'dark' ? bluePaletteDark : bluePaletteLight;
|
|
12
|
+
exports.bluePalette = bluePalette;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.cyanPaletteLight = exports.cyanPaletteDark = exports.cyanPalette = void 0;
|
|
7
|
+
// Cyan sequential gradient palette based on the color scheme
|
|
8
|
+
|
|
9
|
+
const cyanPaletteLight = exports.cyanPaletteLight = ['#CFE9E8', '#A3DAD8', '#7ED0CE', '#44BDBA', '#299896', '#137370', '#0E5A58', '#073938'];
|
|
10
|
+
const cyanPaletteDark = exports.cyanPaletteDark = cyanPaletteLight;
|
|
11
|
+
const cyanPalette = mode => mode === 'dark' ? cyanPaletteDark : cyanPaletteLight;
|
|
12
|
+
exports.cyanPalette = cyanPalette;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.greenPaletteLight = exports.greenPaletteDark = exports.greenPalette = void 0;
|
|
7
|
+
// Green sequential gradient palette based on the color scheme
|
|
8
|
+
|
|
9
|
+
const greenPaletteLight = exports.greenPaletteLight = ['#CDEBDD', '#B2E2CB', '#8FD8B5', '#54C690', '#31B375', '#359F6D', '#0F7746', '#065731'];
|
|
10
|
+
const greenPaletteDark = exports.greenPaletteDark = greenPaletteLight;
|
|
11
|
+
const greenPalette = mode => mode === 'dark' ? greenPaletteDark : greenPaletteLight;
|
|
12
|
+
exports.greenPalette = greenPalette;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.orangePaletteLight = exports.orangePaletteDark = exports.orangePalette = void 0;
|
|
7
|
+
// Orange sequential gradient palette based on the color scheme
|
|
8
|
+
|
|
9
|
+
const orangePaletteLight = exports.orangePaletteLight = ['#FBDBC3', '#F9BD92', '#F99F5D', '#FF7A19', '#FD620B', '#E15100', '#AC3E00', '#822F00'];
|
|
10
|
+
const orangePaletteDark = exports.orangePaletteDark = orangePaletteLight;
|
|
11
|
+
const orangePalette = mode => mode === 'dark' ? orangePaletteDark : orangePaletteLight;
|
|
12
|
+
exports.orangePalette = orangePalette;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.pinkPaletteLight = exports.pinkPaletteDark = exports.pinkPalette = void 0;
|
|
7
|
+
// Pink sequential gradient palette based on the color scheme
|
|
8
|
+
|
|
9
|
+
const pinkPaletteLight = exports.pinkPaletteLight = ['#F7D2E1', '#F6BED5', '#F4A0C3', '#F6619F', '#EE448B', '#E32977', '#B6215F', '#8B1F4C'];
|
|
10
|
+
const pinkPaletteDark = exports.pinkPaletteDark = pinkPaletteLight;
|
|
11
|
+
const pinkPalette = mode => mode === 'dark' ? pinkPaletteDark : pinkPaletteLight;
|
|
12
|
+
exports.pinkPalette = pinkPalette;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.purplePaletteLight = exports.purplePaletteDark = exports.purplePalette = void 0;
|
|
7
|
+
// Purple sequential gradient palette based on the color scheme
|
|
8
|
+
|
|
9
|
+
const purplePaletteLight = exports.purplePaletteLight = ['#CAD4EE', '#98ADE5', '#577EE3', '#4254FB', '#2638DF', '#222FA6', '#111C7F', '#091159'];
|
|
10
|
+
const purplePaletteDark = exports.purplePaletteDark = purplePaletteLight;
|
|
11
|
+
const purplePalette = mode => mode === 'dark' ? purplePaletteDark : purplePaletteLight;
|
|
12
|
+
exports.purplePalette = purplePalette;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.redPaletteLight = exports.redPaletteDark = exports.redPalette = void 0;
|
|
7
|
+
// Red sequential gradient palette based on the color scheme
|
|
8
|
+
|
|
9
|
+
const redPaletteLight = exports.redPaletteLight = ['#FAE0E0', '#F7C0BF', '#F3A2A0', '#EF5350', '#E53935', '#DC2B27', '#860B08', '#560503 '];
|
|
10
|
+
const redPaletteDark = exports.redPaletteDark = redPaletteLight;
|
|
11
|
+
const redPalette = mode => mode === 'dark' ? redPaletteDark : redPaletteLight;
|
|
12
|
+
exports.redPalette = redPalette;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.strawberrySkyPaletteLight = exports.strawberrySkyPaletteDark = exports.strawberrySkyPalette = void 0;
|
|
7
|
+
const strawberrySkyPaletteLight = exports.strawberrySkyPaletteLight = ['#6877FF', '#694FFD', '#A94FFD', '#DA4FFD', '#F050A5', '#FF5E6C'];
|
|
8
|
+
const strawberrySkyPaletteDark = exports.strawberrySkyPaletteDark = strawberrySkyPaletteLight;
|
|
9
|
+
const strawberrySkyPalette = mode => mode === 'dark' ? strawberrySkyPaletteDark : strawberrySkyPaletteLight;
|
|
10
|
+
exports.strawberrySkyPalette = strawberrySkyPalette;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.yellowPaletteLight = exports.yellowPaletteDark = exports.yellowPalette = void 0;
|
|
7
|
+
// Yellow sequential gradient palette based on the color scheme
|
|
8
|
+
|
|
9
|
+
const yellowPaletteLight = exports.yellowPaletteLight = ['#FBEFD6', '#F5DEB0', '#F3CD80', '#FAC14F', '#FFB219', '#EF9801', '#DA7D0B', '#AB6208'];
|
|
10
|
+
const yellowPaletteDark = exports.yellowPaletteDark = yellowPaletteLight;
|
|
11
|
+
const yellowPalette = mode => mode === 'dark' ? yellowPaletteDark : yellowPaletteLight;
|
|
12
|
+
exports.yellowPalette = yellowPalette;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export type ChartsColorPaletteCallback = (mode: 'light' | 'dark') => string[];
|
|
2
|
+
export type ChartsColorPalette = string[] | ChartsColorPaletteCallback;
|
|
3
|
+
export type ChartsColorCallback = (mode: 'light' | 'dark') => string;
|
|
4
|
+
export type ChartsColor = string | ChartsColorCallback;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import type { ChartProviderProps } from
|
|
2
|
+
import type { ChartProviderProps } from "./ChartProvider.types.js";
|
|
3
3
|
import { ChartAnyPluginSignature } from "../../internals/plugins/models/index.js";
|
|
4
4
|
import { ChartSeriesConfig } from "../../internals/plugins/models/seriesConfig/index.js";
|
|
5
5
|
import { ChartSeriesType } from "../../models/seriesType/config.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import type { ChartAnyPluginSignature, ChartInstance, ChartPublicAPI, ConvertSignaturesIntoPlugins, MergeSignaturesProperty } from
|
|
3
|
-
import type { ChartStore } from
|
|
4
|
-
import type { ChartCorePluginSignatures } from
|
|
5
|
-
import type { ChartSeriesConfig } from
|
|
6
|
-
import type { UseChartBaseProps } from
|
|
7
|
-
import type { ChartSeriesType } from
|
|
2
|
+
import type { ChartAnyPluginSignature, ChartInstance, ChartPublicAPI, ConvertSignaturesIntoPlugins, MergeSignaturesProperty } from "../../internals/plugins/models/index.js";
|
|
3
|
+
import type { ChartStore } from "../../internals/plugins/utils/ChartStore.js";
|
|
4
|
+
import type { ChartCorePluginSignatures } from "../../internals/plugins/corePlugins/index.js";
|
|
5
|
+
import type { ChartSeriesConfig } from "../../internals/plugins/models/seriesConfig/index.js";
|
|
6
|
+
import type { UseChartBaseProps } from "../../internals/store/useCharts.types.js";
|
|
7
|
+
import type { ChartSeriesType } from "../../models/seriesType/config.js";
|
|
8
8
|
export type ChartContextValue<TSignatures extends readonly ChartAnyPluginSignature[], TOptionalSignatures extends readonly ChartAnyPluginSignature[] = []> = {
|
|
9
9
|
/**
|
|
10
10
|
* And object with all the methods needed to interact with the chart.
|
|
@@ -11,7 +11,7 @@ var _ChartContext = require("./ChartContext");
|
|
|
11
11
|
const useChartContext = () => {
|
|
12
12
|
const context = React.useContext(_ChartContext.ChartContext);
|
|
13
13
|
if (context == null) {
|
|
14
|
-
throw new Error(['MUI X: Could not find the Chart context.', 'It looks like you rendered your component outside of a ChartDataProvider.', 'This can also happen if you are bundling multiple versions of the library.'].join('\n'));
|
|
14
|
+
throw new Error(['MUI X Charts: Could not find the Chart context.', 'It looks like you rendered your component outside of a ChartDataProvider.', 'This can also happen if you are bundling multiple versions of the library.'].join('\n'));
|
|
15
15
|
}
|
|
16
16
|
return context;
|
|
17
17
|
};
|
package/context/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export type { HighlightScope, FadeOptions, HighlightItemData, HighlightOptions } from
|
|
1
|
+
export type { HighlightScope, FadeOptions, HighlightItemData, HighlightOptions } from "../internals/plugins/featurePlugins/useChartHighlight/index.js";
|
package/esm/BarChart/BarChart.js
CHANGED
|
@@ -168,7 +168,7 @@ process.env.NODE_ENV !== "production" ? BarChart.propTypes = {
|
|
|
168
168
|
* The function called for onClick events.
|
|
169
169
|
* The second argument contains information about all line/bar elements at the current mouse position.
|
|
170
170
|
* @param {MouseEvent} event The mouse event recorded on the `<svg/>` element.
|
|
171
|
-
* @param {null |
|
|
171
|
+
* @param {null | ChartsAxisData} data The data about the clicked axis and items associated with it.
|
|
172
172
|
*/
|
|
173
173
|
onAxisClick: PropTypes.func,
|
|
174
174
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { BarLabel } from "./BarLabel.js";
|
|
2
|
-
export type { BarLabelProps } from
|
|
2
|
+
export type { BarLabelProps } from "./BarLabel.js";
|
|
3
3
|
export { barLabelClasses, getBarLabelUtilityClass } from "./barLabelClasses.js";
|
|
4
|
-
export type { BarLabelSlotProps, BarLabelSlots } from
|
|
5
|
-
export type { BarLabelOwnerState, BarItem, BarLabelContext } from
|
|
6
|
-
export type { BarLabelClasses, BarLabelClassKey } from
|
|
4
|
+
export type { BarLabelSlotProps, BarLabelSlots } from "./BarLabelItem.js";
|
|
5
|
+
export type { BarLabelOwnerState, BarItem, BarLabelContext } from "./BarLabel.types.js";
|
|
6
|
+
export type { BarLabelClasses, BarLabelClassKey } from "./barLabelClasses.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AxisId, ComputedXAxis, ComputedYAxis } from "../models/axis.js";
|
|
2
2
|
import { DefaultizedBarSeriesType } from "../models/seriesType/bar.js";
|
|
3
3
|
import { SeriesId } from "../models/seriesType/common.js";
|
|
4
4
|
export declare function checkScaleErrors(verticalLayout: boolean, seriesId: SeriesId, series: DefaultizedBarSeriesType & {
|
|
5
5
|
stackedData: [number, number][];
|
|
6
6
|
}, xAxisId: AxisId, xAxis: {
|
|
7
|
-
[axisId: AxisId]:
|
|
7
|
+
[axisId: AxisId]: ComputedXAxis;
|
|
8
8
|
}, yAxisId: AxisId, yAxis: {
|
|
9
|
-
[axisId: AxisId]:
|
|
9
|
+
[axisId: AxisId]: ComputedYAxis;
|
|
10
10
|
}): void;
|
|
@@ -17,17 +17,17 @@ export function checkScaleErrors(verticalLayout, seriesId, series, xAxisId, xAxi
|
|
|
17
17
|
const discreteAxisDirection = verticalLayout ? 'x' : 'y';
|
|
18
18
|
const continuousAxisDirection = verticalLayout ? 'y' : 'x';
|
|
19
19
|
if (!isBandScaleConfig(discreteAxisConfig)) {
|
|
20
|
-
throw new Error(`MUI X: ${getAxisMessage(discreteAxisDirection, discreteAxisId)} should be of type "band" to display the bar series of id "${seriesId}".`);
|
|
20
|
+
throw new Error(`MUI X Charts: ${getAxisMessage(discreteAxisDirection, discreteAxisId)} should be of type "band" to display the bar series of id "${seriesId}".`);
|
|
21
21
|
}
|
|
22
22
|
if (discreteAxisConfig.data === undefined) {
|
|
23
|
-
throw new Error(`MUI X: ${getAxisMessage(discreteAxisDirection, discreteAxisId)} should have data property.`);
|
|
23
|
+
throw new Error(`MUI X Charts: ${getAxisMessage(discreteAxisDirection, discreteAxisId)} should have data property.`);
|
|
24
24
|
}
|
|
25
25
|
if (isBandScaleConfig(continuousAxisConfig) || isPointScaleConfig(continuousAxisConfig)) {
|
|
26
|
-
throw new Error(`MUI X: ${getAxisMessage(continuousAxisDirection, continuousAxisId)} should be a continuous type to display the bar series of id "${seriesId}".`);
|
|
26
|
+
throw new Error(`MUI X Charts: ${getAxisMessage(continuousAxisDirection, continuousAxisId)} should be a continuous type to display the bar series of id "${seriesId}".`);
|
|
27
27
|
}
|
|
28
28
|
if (process.env.NODE_ENV !== 'production') {
|
|
29
29
|
if (discreteAxisConfig.data.length < series.stackedData.length) {
|
|
30
|
-
warnOnce([`MUI X: ${getAxisMessage(discreteAxisDirection, discreteAxisId)} has less data (${discreteAxisConfig.data.length} values) than the bar series of id "${seriesId}" (${series.stackedData.length} values).`, 'The axis data should have at least the same length than the series using it.'], 'error');
|
|
30
|
+
warnOnce([`MUI X Charts: ${getAxisMessage(discreteAxisDirection, discreteAxisId)} has less data (${discreteAxisConfig.data.length} values) than the bar series of id "${seriesId}" (${series.stackedData.length} values).`, 'The axis data should have at least the same length than the series using it.'], 'error');
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
33
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { GetSeriesWithDefaultValues } from
|
|
1
|
+
import type { GetSeriesWithDefaultValues } from "../../internals/plugins/models/seriesConfig/index.js";
|
|
2
2
|
declare const getSeriesWithDefaultValues: GetSeriesWithDefaultValues<'bar'>;
|
|
3
3
|
export default getSeriesWithDefaultValues;
|
|
@@ -25,7 +25,7 @@ const seriesProcessor = (params, dataset) => {
|
|
|
25
25
|
}
|
|
26
26
|
});
|
|
27
27
|
} else if (dataset === undefined) {
|
|
28
|
-
throw new Error([`MUI X: bar series with id='${id}' has no data.`, 'Either provide a data property to the series or use the dataset prop.'].join('\n'));
|
|
28
|
+
throw new Error([`MUI X Charts: bar series with id='${id}' has no data.`, 'Either provide a data property to the series or use the dataset prop.'].join('\n'));
|
|
29
29
|
}
|
|
30
30
|
});
|
|
31
31
|
const completedSeries = {};
|
|
@@ -53,7 +53,7 @@ const seriesProcessor = (params, dataset) => {
|
|
|
53
53
|
if (typeof value !== 'number') {
|
|
54
54
|
if (process.env.NODE_ENV !== 'production') {
|
|
55
55
|
if (value !== null) {
|
|
56
|
-
warnOnce([`MUI X: your dataset key "${dataKey}" is used for plotting bars, but contains nonnumerical elements.`, 'Bar plots only support numbers and null values.']);
|
|
56
|
+
warnOnce([`MUI X Charts: your dataset key "${dataKey}" is used for plotting bars, but contains nonnumerical elements.`, 'Bar plots only support numbers and null values.']);
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
59
|
return 0;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AxisTooltipGetter, TooltipGetter } from
|
|
1
|
+
import type { AxisTooltipGetter, TooltipGetter } from "../../internals/plugins/models/index.js";
|
|
2
2
|
declare const tooltipGetter: TooltipGetter<'bar'>;
|
|
3
3
|
export declare const axisTooltipGetter: AxisTooltipGetter<'bar', 'x' | 'y'>;
|
|
4
4
|
export default tooltipGetter;
|
package/esm/BarChart/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { BarSeriesType } from
|
|
2
|
-
import type { SeriesId } from
|
|
1
|
+
import type { BarSeriesType } from "../models/index.js";
|
|
2
|
+
import type { SeriesId } from "../models/seriesType/common.js";
|
|
3
3
|
export type AnimationData = {
|
|
4
4
|
x: number;
|
|
5
5
|
y: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import type { BarChartProps } from
|
|
2
|
+
import type { BarChartProps } from "./BarChart.js";
|
|
3
3
|
import { ChartContainerProps } from "../ChartContainer/index.js";
|
|
4
4
|
import { BarPlotProps } from "./BarPlot.js";
|
|
5
5
|
import { ChartsGridProps } from "../ChartsGrid/index.js";
|
|
@@ -8,7 +8,7 @@ import { ChartsOverlayProps } from "../ChartsOverlay/index.js";
|
|
|
8
8
|
import { ChartsAxisProps } from "../ChartsAxis/index.js";
|
|
9
9
|
import { ChartsAxisHighlightProps } from "../ChartsAxisHighlight/index.js";
|
|
10
10
|
import { ChartsLegendSlotExtension } from "../ChartsLegend/index.js";
|
|
11
|
-
import type { ChartsWrapperProps } from
|
|
11
|
+
import type { ChartsWrapperProps } from "../internals/components/ChartsWrapper/index.js";
|
|
12
12
|
import { BarChartPluginsSignatures } from "./BarChart.plugins.js";
|
|
13
13
|
/**
|
|
14
14
|
* A helper function that extracts BarChartProps from the input props
|
|
@@ -64,6 +64,24 @@ export const useBarChartProps = props => {
|
|
|
64
64
|
}, s, {
|
|
65
65
|
layout: hasHorizontalSeries ? 'horizontal' : 'vertical'
|
|
66
66
|
})), [hasHorizontalSeries, series]);
|
|
67
|
+
const defaultXAxis = hasHorizontalSeries ? undefined : defaultBandXAxis;
|
|
68
|
+
const processedXAxis = React.useMemo(() => {
|
|
69
|
+
if (!xAxis) {
|
|
70
|
+
return defaultXAxis;
|
|
71
|
+
}
|
|
72
|
+
return hasHorizontalSeries ? xAxis : xAxis.map(axis => _extends({
|
|
73
|
+
scaleType: 'band'
|
|
74
|
+
}, axis));
|
|
75
|
+
}, [defaultXAxis, hasHorizontalSeries, xAxis]);
|
|
76
|
+
const defaultYAxis = hasHorizontalSeries ? defaultBandYAxis : undefined;
|
|
77
|
+
const processedYAxis = React.useMemo(() => {
|
|
78
|
+
if (!yAxis) {
|
|
79
|
+
return defaultYAxis;
|
|
80
|
+
}
|
|
81
|
+
return hasHorizontalSeries ? yAxis.map(axis => _extends({
|
|
82
|
+
scaleType: 'band'
|
|
83
|
+
}, axis)) : yAxis;
|
|
84
|
+
}, [defaultYAxis, hasHorizontalSeries, yAxis]);
|
|
67
85
|
const chartContainerProps = _extends({}, rest, {
|
|
68
86
|
series: seriesWithDefault,
|
|
69
87
|
width,
|
|
@@ -71,8 +89,8 @@ export const useBarChartProps = props => {
|
|
|
71
89
|
margin,
|
|
72
90
|
colors,
|
|
73
91
|
dataset,
|
|
74
|
-
xAxis:
|
|
75
|
-
yAxis:
|
|
92
|
+
xAxis: processedXAxis,
|
|
93
|
+
yAxis: processedYAxis,
|
|
76
94
|
highlightedItem,
|
|
77
95
|
onHighlightChange,
|
|
78
96
|
disableAxisListener: slotProps?.tooltip?.trigger !== 'axis' && axisHighlight?.x === 'none' && axisHighlight?.y === 'none',
|
|
@@ -113,7 +113,7 @@ process.env.NODE_ENV !== "production" ? ChartContainer.propTypes = {
|
|
|
113
113
|
* The function called for onClick events.
|
|
114
114
|
* The second argument contains information about all line/bar elements at the current mouse position.
|
|
115
115
|
* @param {MouseEvent} event The mouse event recorded on the `<svg/>` element.
|
|
116
|
-
* @param {null |
|
|
116
|
+
* @param {null | ChartsAxisData} data The data about the clicked axis and items associated with it.
|
|
117
117
|
*/
|
|
118
118
|
onAxisClick: PropTypes.func,
|
|
119
119
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ChartsSurfaceProps } from "../ChartsSurface/index.js";
|
|
3
3
|
import { ChartDataProviderProps } from "../ChartDataProvider/index.js";
|
|
4
|
-
import type { ChartContainerProps } from
|
|
4
|
+
import type { ChartContainerProps } from "./ChartContainer.js";
|
|
5
5
|
import { ChartSeriesType } from "../models/seriesType/config.js";
|
|
6
6
|
import { AllPluginSignatures } from "../internals/plugins/allPlugins.js";
|
|
7
7
|
import { ChartAnyPluginSignature } from "../internals/plugins/models/plugin.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ChartDataProviderProps } from
|
|
1
|
+
import type { ChartDataProviderProps } from "./ChartDataProvider.js";
|
|
2
2
|
import { ChartProviderProps } from "../context/ChartProvider/index.js";
|
|
3
3
|
import { ChartAnyPluginSignature } from "../internals/plugins/models/index.js";
|
|
4
4
|
import { ChartSeriesType } from "../models/seriesType/config.js";
|
|
@@ -6,6 +6,6 @@ import { AllPluginSignatures } from "../internals/plugins/allPlugins.js";
|
|
|
6
6
|
import { ChartsLocalizationProviderProps } from "../ChartsLocalizationProvider/index.js";
|
|
7
7
|
export declare const useChartDataProviderProps: <TSeries extends ChartSeriesType = ChartSeriesType, TSignatures extends readonly ChartAnyPluginSignature[] = AllPluginSignatures<TSeries>>(props: ChartDataProviderProps<TSeries, TSignatures> & ChartsLocalizationProviderProps) => {
|
|
8
8
|
children: import("react").ReactNode;
|
|
9
|
-
localeText: Partial<import("../locales").ChartsLocaleText> | undefined;
|
|
9
|
+
localeText: Partial<import("../locales/index.js").ChartsLocaleText> | undefined;
|
|
10
10
|
chartProviderProps: ChartProviderProps<TSeries, TSignatures>;
|
|
11
11
|
};
|
|
@@ -30,7 +30,7 @@ export default function ChartsXHighlight(props) {
|
|
|
30
30
|
if (process.env.NODE_ENV !== 'production') {
|
|
31
31
|
const isError = isBandScaleX && xScale(axisXValue) === undefined;
|
|
32
32
|
if (isError) {
|
|
33
|
-
console.error([`MUI X: The position value provided for the axis is not valid for the current scale.`, `This probably means something is wrong with the data passed to the chart.`, `The ChartsAxisHighlight component will not be displayed.`].join('\n'));
|
|
33
|
+
console.error([`MUI X Charts: The position value provided for the axis is not valid for the current scale.`, `This probably means something is wrong with the data passed to the chart.`, `The ChartsAxisHighlight component will not be displayed.`].join('\n'));
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
return /*#__PURE__*/_jsxs(React.Fragment, {
|