@mui/x-charts 8.27.0 → 9.0.0-alpha.1
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/AnimatedBarElement.d.ts +2 -2
- package/BarChart/AnimatedBarElement.js +1 -1
- package/BarChart/BarChart.d.ts +1 -1
- package/BarChart/BarChart.js +30 -8
- package/BarChart/BarElement.d.ts +2 -2
- package/BarChart/BarElement.js +9 -9
- package/BarChart/BarLabel/BarLabel.js +1 -1
- package/BarChart/FocusedBar.js +4 -6
- package/BarChart/IndividualBarPlot.js +1 -1
- package/BarChart/barClasses.d.ts +1 -1
- package/BarChart/barClasses.js +2 -2
- package/BarChart/barElementClasses.d.ts +2 -1
- package/BarChart/barElementClasses.js +2 -2
- package/BarChart/seriesConfig/bar/extremums.d.ts +1 -1
- package/BarChart/seriesConfig/bar/getColor.d.ts +1 -1
- package/BarChart/seriesConfig/bar/getSeriesWithDefaultValues.d.ts +2 -2
- package/BarChart/seriesConfig/bar/keyboardFocusHandler.d.ts +2 -1
- package/BarChart/seriesConfig/bar/keyboardFocusHandler.js +2 -15
- package/BarChart/seriesConfig/bar/legend.d.ts +1 -1
- package/BarChart/seriesConfig/bar/legend.js +0 -1
- package/BarChart/seriesConfig/bar/seriesProcessor.d.ts +1 -1
- package/BarChart/seriesConfig/bar/tooltip.d.ts +1 -1
- package/BarChart/seriesConfig/bar/tooltipPosition.d.ts +1 -1
- package/BarChart/seriesConfig/bar/tooltipPosition.js +5 -6
- package/BarChart/seriesConfig/index.d.ts +1 -1
- package/BarChart/seriesConfig/index.js +3 -1
- package/BarChart/useBarPlotData.d.ts +1 -1
- package/BarChart/useBarPlotData.js +9 -10
- package/BarChart/useRegisterItemClickHandlers.js +2 -2
- package/CHANGELOG.md +373 -3
- package/ChartContainer/ChartContainer.d.ts +16 -29
- package/ChartContainer/ChartContainer.js +14 -1691
- package/ChartContainer/index.d.ts +1 -8
- package/ChartContainer/useChartContainerProps.d.ts +10 -12
- package/ChartContainer/useChartContainerProps.js +10 -95
- package/ChartDataProvider/ChartDataProvider.d.ts +5 -3
- package/ChartDataProvider/useChartDataProviderProps.d.ts +2 -2
- package/ChartDataProvider/useChartDataProviderProps.js +7 -6
- package/ChartsAxis/ChartsAxis.d.ts +1 -0
- package/ChartsAxis/ChartsAxis.js +4 -2
- package/ChartsAxis/axisClasses.d.ts +0 -7
- package/ChartsAxis/axisClasses.js +1 -1
- package/ChartsAxisHighlight/ChartsXAxisHighlight.js +2 -2
- package/ChartsAxisHighlight/ChartsYAxisHighlight.js +2 -2
- package/ChartsContainer/ChartsContainer.d.ts +37 -0
- package/ChartsContainer/ChartsContainer.js +1715 -0
- package/ChartsContainer/index.d.ts +1 -0
- package/ChartsContainer/index.js +16 -0
- package/ChartsContainer/useChartsContainerProps.d.ts +12 -0
- package/ChartsContainer/useChartsContainerProps.js +109 -0
- package/ChartsLabel/ChartsLabelMark.js +34 -32
- package/ChartsLabel/labelGradientClasses.d.ts +1 -1
- package/ChartsLabel/labelMarkClasses.d.ts +1 -3
- package/ChartsLabel/labelMarkClasses.js +1 -2
- package/ChartsLegend/ChartsLegend.js +14 -14
- package/ChartsLegend/chartsLegendClasses.d.ts +1 -1
- package/ChartsLegend/continuousColorLegendClasses.d.ts +1 -1
- package/ChartsLegend/legendContext.types.d.ts +10 -6
- package/ChartsLegend/piecewiseColorLegendClasses.d.ts +1 -1
- package/ChartsOverlay/ChartsLoadingOverlay.js +3 -15
- package/ChartsOverlay/ChartsNoDataOverlay.js +3 -15
- package/ChartsOverlay/common.d.ts +1 -0
- package/ChartsOverlay/common.js +22 -0
- package/ChartsSurface/ChartsSurface.js +2 -4
- package/ChartsTooltip/ChartTooltip.types.d.ts +5 -4
- package/ChartsTooltip/ChartsAxisTooltipContent.d.ts +7 -0
- package/ChartsTooltip/ChartsAxisTooltipContent.js +22 -2
- package/ChartsTooltip/ChartsItemTooltipContent.d.ts +1 -0
- package/ChartsTooltip/ChartsTooltip.d.ts +10 -2
- package/ChartsTooltip/ChartsTooltip.js +18 -5
- package/ChartsTooltip/ChartsTooltipContainer.d.ts +17 -2
- package/ChartsTooltip/ChartsTooltipContainer.js +20 -4
- package/ChartsTooltip/index.d.ts +1 -2
- package/ChartsTooltip/index.js +0 -12
- package/ChartsTooltip/useAxesTooltip.d.ts +29 -3
- package/ChartsTooltip/useAxesTooltip.js +173 -6
- package/ChartsTooltip/useItemTooltip.d.ts +1 -1
- package/ChartsTooltip/useItemTooltip.js +2 -2
- package/ChartsWrapper/ChartsWrapper.d.ts +1 -4
- package/ChartsWrapper/ChartsWrapper.js +7 -4
- package/ChartsXAxis/ChartsXAxis.d.ts +3 -1
- package/ChartsXAxis/ChartsXAxis.js +2 -1
- package/ChartsXAxis/ChartsXAxisImpl.js +1 -1
- package/ChartsXAxis/getVisibleLabels.d.ts +2 -2
- package/ChartsXAxis/shortenLabels.d.ts +2 -2
- package/ChartsXAxis/useAxisTicksProps.d.ts +674 -671
- package/ChartsXAxis/useAxisTicksProps.js +1 -1
- package/ChartsXAxis/utilities.d.ts +1 -1
- package/ChartsXAxis/utilities.js +2 -3
- package/ChartsYAxis/ChartsYAxis.d.ts +3 -1
- package/ChartsYAxis/ChartsYAxis.js +2 -1
- package/ChartsYAxis/ChartsYAxisImpl.js +1 -1
- package/ChartsYAxis/shortenLabels.d.ts +2 -2
- package/ChartsYAxis/useAxisTicksProps.d.ts +674 -671
- package/ChartsYAxis/useAxisTicksProps.js +1 -1
- package/ChartsYAxis/utilities.js +2 -3
- package/Gauge/GaugeContainer.d.ts +1 -1
- package/Gauge/GaugeContainer.js +3 -1
- package/LineChart/AnimatedArea.js +3 -3
- package/LineChart/AnimatedLine.js +4 -4
- package/LineChart/AppearingMask.d.ts +1 -1
- package/LineChart/AppearingMask.js +1 -1
- package/LineChart/AreaElement.d.ts +2 -2
- package/LineChart/AreaElement.js +8 -8
- package/LineChart/AreaPlot.js +1 -1
- package/LineChart/CircleMarkElement.d.ts +1 -1
- package/LineChart/CircleMarkElement.js +5 -5
- package/LineChart/LineChart.d.ts +1 -1
- package/LineChart/LineChart.js +30 -8
- package/LineChart/LineElement.d.ts +2 -2
- package/LineChart/LineElement.js +8 -8
- package/LineChart/LineHighlightElement.d.ts +4 -4
- package/LineChart/LineHighlightElement.js +4 -4
- package/LineChart/LineHighlightPlot.js +3 -3
- package/LineChart/LinePlot.js +1 -1
- package/LineChart/MarkElement.d.ts +1 -1
- package/LineChart/MarkElement.js +5 -5
- package/LineChart/MarkPlot.js +1 -1
- package/LineChart/markElementClasses.d.ts +1 -1
- package/LineChart/markElementClasses.js +2 -2
- package/LineChart/seriesConfig/extremums.d.ts +1 -1
- package/LineChart/seriesConfig/getColor.d.ts +1 -1
- package/LineChart/seriesConfig/getSeriesWithDefaultValues.d.ts +1 -1
- package/LineChart/seriesConfig/index.d.ts +1 -1
- package/LineChart/seriesConfig/index.js +3 -1
- package/LineChart/seriesConfig/keyboardFocusHandler.d.ts +2 -1
- package/LineChart/seriesConfig/keyboardFocusHandler.js +2 -15
- package/LineChart/seriesConfig/legend.d.ts +1 -1
- package/LineChart/seriesConfig/legend.js +0 -1
- package/LineChart/seriesConfig/seriesProcessor.d.ts +1 -1
- package/LineChart/seriesConfig/tooltip.d.ts +1 -1
- package/LineChart/seriesConfig/tooltipPosition.d.ts +1 -1
- package/LineChart/useMarkPlotData.js +2 -2
- package/PieChart/FocusedPieArc.d.ts +1 -1
- package/PieChart/FocusedPieArc.js +1 -1
- package/PieChart/PieArc.d.ts +4 -4
- package/PieChart/PieArc.js +7 -7
- package/PieChart/PieArcLabel.d.ts +4 -4
- package/PieChart/PieArcLabel.js +6 -6
- package/PieChart/PieArcLabelPlot.d.ts +5 -1
- package/PieChart/PieArcLabelPlot.js +5 -5
- package/PieChart/PieArcPlot.d.ts +5 -1
- package/PieChart/PieArcPlot.js +6 -6
- package/PieChart/PieChart.d.ts +3 -3
- package/PieChart/PieChart.js +9 -8
- package/PieChart/PiePlot.js +2 -2
- package/PieChart/index.d.ts +1 -0
- package/PieChart/index.js +12 -0
- package/PieChart/pieClasses.d.ts +1 -1
- package/PieChart/seriesConfig/getColor.d.ts +1 -1
- package/PieChart/seriesConfig/getSeriesWithDefaultValues.d.ts +1 -1
- package/PieChart/seriesConfig/index.d.ts +1 -1
- package/PieChart/seriesConfig/index.js +3 -1
- package/PieChart/seriesConfig/keyboardFocusHandler.js +2 -15
- package/PieChart/seriesConfig/legend.d.ts +1 -1
- package/PieChart/seriesConfig/legend.js +0 -1
- package/PieChart/seriesConfig/seriesLayout.d.ts +1 -1
- package/PieChart/seriesConfig/seriesProcessor.d.ts +1 -1
- package/PieChart/seriesConfig/tooltip.d.ts +1 -1
- package/PieChart/seriesConfig/tooltipPosition.d.ts +1 -1
- package/RadarChart/RadarAxisHighlight/index.d.ts +2 -1
- package/RadarChart/RadarChart.d.ts +1 -1
- package/RadarChart/RadarChart.js +8 -8
- package/RadarChart/RadarGrid/index.d.ts +2 -1
- package/RadarChart/RadarSeriesPlot/RadarSeriesPlot.types.d.ts +2 -0
- package/RadarChart/RadarSeriesPlot/useRadarRotationIndex.js +2 -2
- package/RadarChart/RadarSeriesPlot/useRadarSeriesData.d.ts +2 -2
- package/RadarChart/index.d.ts +1 -1
- package/RadarChart/seriesConfig/extremums.d.ts +1 -1
- package/RadarChart/seriesConfig/getColor.d.ts +1 -1
- package/RadarChart/seriesConfig/getSeriesWithDefaultValues.d.ts +1 -1
- package/RadarChart/seriesConfig/index.d.ts +1 -1
- package/RadarChart/seriesConfig/index.js +3 -1
- package/RadarChart/seriesConfig/keyboardFocusHandler.js +2 -15
- package/RadarChart/seriesConfig/legend.d.ts +1 -1
- package/RadarChart/seriesConfig/legend.js +0 -1
- package/RadarChart/seriesConfig/seriesProcessor.d.ts +1 -1
- package/RadarChart/seriesConfig/tooltip.d.ts +1 -1
- package/RadarChart/seriesConfig/tooltipPosition.d.ts +1 -1
- package/ScatterChart/BatchScatter.d.ts +1 -1
- package/ScatterChart/BatchScatter.js +7 -7
- package/ScatterChart/Scatter.d.ts +1 -1
- package/ScatterChart/ScatterChart.d.ts +1 -1
- package/ScatterChart/ScatterChart.js +30 -8
- package/ScatterChart/scatterClasses.js +2 -2
- package/ScatterChart/seriesConfig/extremums.d.ts +1 -1
- package/ScatterChart/seriesConfig/getColor.d.ts +1 -1
- package/ScatterChart/seriesConfig/getSeriesWithDefaultValues.d.ts +1 -1
- package/ScatterChart/seriesConfig/index.d.ts +1 -1
- package/ScatterChart/seriesConfig/index.js +3 -1
- package/ScatterChart/seriesConfig/keyboardFocusHandler.d.ts +2 -1
- package/ScatterChart/seriesConfig/keyboardFocusHandler.js +2 -15
- package/ScatterChart/seriesConfig/legend.d.ts +1 -1
- package/ScatterChart/seriesConfig/legend.js +0 -1
- package/ScatterChart/seriesConfig/seriesProcessor.d.ts +1 -1
- package/ScatterChart/seriesConfig/tooltip.d.ts +1 -1
- package/ScatterChart/seriesConfig/tooltipPosition.d.ts +1 -1
- package/SparkLineChart/SparkLineChart.d.ts +1 -1
- package/SparkLineChart/SparkLineChart.js +47 -31
- package/context/ChartProvider/ChartProvider.d.ts +3 -4
- package/context/ChartProvider/ChartProvider.js +2 -15
- package/context/ChartProvider/ChartProvider.types.d.ts +3 -18
- package/context/index.d.ts +2 -1
- package/esm/BarChart/AnimatedBarElement.d.ts +2 -2
- package/esm/BarChart/AnimatedBarElement.js +1 -1
- package/esm/BarChart/BarChart.d.ts +1 -1
- package/esm/BarChart/BarChart.js +30 -8
- package/esm/BarChart/BarElement.d.ts +2 -2
- package/esm/BarChart/BarElement.js +9 -9
- package/esm/BarChart/BarLabel/BarLabel.js +1 -1
- package/esm/BarChart/FocusedBar.js +4 -6
- package/esm/BarChart/IndividualBarPlot.js +1 -1
- package/esm/BarChart/barClasses.d.ts +1 -1
- package/esm/BarChart/barClasses.js +2 -2
- package/esm/BarChart/barElementClasses.d.ts +2 -1
- package/esm/BarChart/barElementClasses.js +2 -2
- package/esm/BarChart/seriesConfig/bar/extremums.d.ts +1 -1
- package/esm/BarChart/seriesConfig/bar/getColor.d.ts +1 -1
- package/esm/BarChart/seriesConfig/bar/getSeriesWithDefaultValues.d.ts +2 -2
- package/esm/BarChart/seriesConfig/bar/keyboardFocusHandler.d.ts +2 -1
- package/esm/BarChart/seriesConfig/bar/keyboardFocusHandler.js +3 -16
- package/esm/BarChart/seriesConfig/bar/legend.d.ts +1 -1
- package/esm/BarChart/seriesConfig/bar/legend.js +0 -1
- package/esm/BarChart/seriesConfig/bar/seriesProcessor.d.ts +1 -1
- package/esm/BarChart/seriesConfig/bar/tooltip.d.ts +1 -1
- package/esm/BarChart/seriesConfig/bar/tooltipPosition.d.ts +1 -1
- package/esm/BarChart/seriesConfig/bar/tooltipPosition.js +5 -6
- package/esm/BarChart/seriesConfig/index.d.ts +1 -1
- package/esm/BarChart/seriesConfig/index.js +3 -1
- package/esm/BarChart/useBarPlotData.d.ts +1 -1
- package/esm/BarChart/useBarPlotData.js +9 -10
- package/esm/BarChart/useRegisterItemClickHandlers.js +2 -2
- package/esm/ChartContainer/ChartContainer.d.ts +16 -29
- package/esm/ChartContainer/ChartContainer.js +15 -1690
- package/esm/ChartContainer/index.d.ts +1 -8
- package/esm/ChartContainer/index.js +1 -6
- package/esm/ChartContainer/useChartContainerProps.d.ts +10 -12
- package/esm/ChartContainer/useChartContainerProps.js +11 -94
- package/esm/ChartDataProvider/ChartDataProvider.d.ts +5 -3
- package/esm/ChartDataProvider/useChartDataProviderProps.d.ts +2 -2
- package/esm/ChartDataProvider/useChartDataProviderProps.js +7 -6
- package/esm/ChartsAxis/ChartsAxis.d.ts +1 -0
- package/esm/ChartsAxis/ChartsAxis.js +4 -2
- package/esm/ChartsAxis/axisClasses.d.ts +0 -7
- package/esm/ChartsAxis/axisClasses.js +1 -1
- package/esm/ChartsAxisHighlight/ChartsXAxisHighlight.js +1 -1
- package/esm/ChartsAxisHighlight/ChartsYAxisHighlight.js +1 -1
- package/esm/ChartsContainer/ChartsContainer.d.ts +37 -0
- package/esm/ChartsContainer/ChartsContainer.js +1709 -0
- package/esm/ChartsContainer/index.d.ts +1 -0
- package/esm/ChartsContainer/index.js +1 -0
- package/esm/ChartsContainer/useChartsContainerProps.d.ts +12 -0
- package/esm/ChartsContainer/useChartsContainerProps.js +102 -0
- package/esm/ChartsLabel/ChartsLabelMark.js +35 -33
- package/esm/ChartsLabel/labelGradientClasses.d.ts +1 -1
- package/esm/ChartsLabel/labelMarkClasses.d.ts +1 -3
- package/esm/ChartsLabel/labelMarkClasses.js +1 -2
- package/esm/ChartsLegend/ChartsLegend.js +14 -14
- package/esm/ChartsLegend/chartsLegendClasses.d.ts +1 -1
- package/esm/ChartsLegend/continuousColorLegendClasses.d.ts +1 -1
- package/esm/ChartsLegend/legendContext.types.d.ts +10 -6
- package/esm/ChartsLegend/piecewiseColorLegendClasses.d.ts +1 -1
- package/esm/ChartsOverlay/ChartsLoadingOverlay.js +2 -14
- package/esm/ChartsOverlay/ChartsNoDataOverlay.js +2 -14
- package/esm/ChartsOverlay/common.d.ts +1 -0
- package/esm/ChartsOverlay/common.js +16 -0
- package/esm/ChartsSurface/ChartsSurface.js +3 -5
- package/esm/ChartsTooltip/ChartTooltip.types.d.ts +5 -4
- package/esm/ChartsTooltip/ChartsAxisTooltipContent.d.ts +7 -0
- package/esm/ChartsTooltip/ChartsAxisTooltipContent.js +22 -2
- package/esm/ChartsTooltip/ChartsItemTooltipContent.d.ts +1 -0
- package/esm/ChartsTooltip/ChartsTooltip.d.ts +10 -2
- package/esm/ChartsTooltip/ChartsTooltip.js +18 -5
- package/esm/ChartsTooltip/ChartsTooltipContainer.d.ts +17 -2
- package/esm/ChartsTooltip/ChartsTooltipContainer.js +19 -3
- package/esm/ChartsTooltip/index.d.ts +1 -2
- package/esm/ChartsTooltip/index.js +0 -1
- package/esm/ChartsTooltip/useAxesTooltip.d.ts +29 -3
- package/esm/ChartsTooltip/useAxesTooltip.js +173 -5
- package/esm/ChartsTooltip/useItemTooltip.d.ts +1 -1
- package/esm/ChartsTooltip/useItemTooltip.js +1 -1
- package/esm/ChartsWrapper/ChartsWrapper.d.ts +1 -4
- package/esm/ChartsWrapper/ChartsWrapper.js +6 -3
- package/esm/ChartsXAxis/ChartsXAxis.d.ts +3 -1
- package/esm/ChartsXAxis/ChartsXAxis.js +1 -2
- package/esm/ChartsXAxis/ChartsXAxisImpl.js +1 -1
- package/esm/ChartsXAxis/getVisibleLabels.d.ts +2 -2
- package/esm/ChartsXAxis/shortenLabels.d.ts +2 -2
- package/esm/ChartsXAxis/useAxisTicksProps.d.ts +674 -671
- package/esm/ChartsXAxis/useAxisTicksProps.js +1 -1
- package/esm/ChartsXAxis/utilities.d.ts +1 -1
- package/esm/ChartsXAxis/utilities.js +2 -3
- package/esm/ChartsYAxis/ChartsYAxis.d.ts +3 -1
- package/esm/ChartsYAxis/ChartsYAxis.js +1 -2
- package/esm/ChartsYAxis/ChartsYAxisImpl.js +1 -1
- package/esm/ChartsYAxis/shortenLabels.d.ts +2 -2
- package/esm/ChartsYAxis/useAxisTicksProps.d.ts +674 -671
- package/esm/ChartsYAxis/useAxisTicksProps.js +1 -1
- package/esm/ChartsYAxis/utilities.js +2 -3
- package/esm/Gauge/GaugeContainer.d.ts +1 -1
- package/esm/Gauge/GaugeContainer.js +3 -1
- package/esm/LineChart/AnimatedArea.js +3 -3
- package/esm/LineChart/AnimatedLine.js +4 -4
- package/esm/LineChart/AppearingMask.d.ts +1 -1
- package/esm/LineChart/AppearingMask.js +1 -1
- package/esm/LineChart/AreaElement.d.ts +2 -2
- package/esm/LineChart/AreaElement.js +8 -8
- package/esm/LineChart/AreaPlot.js +1 -1
- package/esm/LineChart/CircleMarkElement.d.ts +1 -1
- package/esm/LineChart/CircleMarkElement.js +5 -5
- package/esm/LineChart/LineChart.d.ts +1 -1
- package/esm/LineChart/LineChart.js +30 -8
- package/esm/LineChart/LineElement.d.ts +2 -2
- package/esm/LineChart/LineElement.js +8 -8
- package/esm/LineChart/LineHighlightElement.d.ts +4 -4
- package/esm/LineChart/LineHighlightElement.js +4 -4
- package/esm/LineChart/LineHighlightPlot.js +2 -2
- package/esm/LineChart/LinePlot.js +1 -1
- package/esm/LineChart/MarkElement.d.ts +1 -1
- package/esm/LineChart/MarkElement.js +5 -5
- package/esm/LineChart/MarkPlot.js +1 -1
- package/esm/LineChart/markElementClasses.d.ts +1 -1
- package/esm/LineChart/markElementClasses.js +2 -2
- package/esm/LineChart/seriesConfig/extremums.d.ts +1 -1
- package/esm/LineChart/seriesConfig/getColor.d.ts +1 -1
- package/esm/LineChart/seriesConfig/getSeriesWithDefaultValues.d.ts +1 -1
- package/esm/LineChart/seriesConfig/index.d.ts +1 -1
- package/esm/LineChart/seriesConfig/index.js +3 -1
- package/esm/LineChart/seriesConfig/keyboardFocusHandler.d.ts +2 -1
- package/esm/LineChart/seriesConfig/keyboardFocusHandler.js +3 -16
- package/esm/LineChart/seriesConfig/legend.d.ts +1 -1
- package/esm/LineChart/seriesConfig/legend.js +0 -1
- package/esm/LineChart/seriesConfig/seriesProcessor.d.ts +1 -1
- package/esm/LineChart/seriesConfig/tooltip.d.ts +1 -1
- package/esm/LineChart/seriesConfig/tooltipPosition.d.ts +1 -1
- package/esm/LineChart/useMarkPlotData.js +2 -2
- package/esm/PieChart/FocusedPieArc.d.ts +1 -1
- package/esm/PieChart/FocusedPieArc.js +1 -1
- package/esm/PieChart/PieArc.d.ts +4 -4
- package/esm/PieChart/PieArc.js +7 -7
- package/esm/PieChart/PieArcLabel.d.ts +4 -4
- package/esm/PieChart/PieArcLabel.js +6 -6
- package/esm/PieChart/PieArcLabelPlot.d.ts +5 -1
- package/esm/PieChart/PieArcLabelPlot.js +5 -5
- package/esm/PieChart/PieArcPlot.d.ts +5 -1
- package/esm/PieChart/PieArcPlot.js +6 -6
- package/esm/PieChart/PieChart.d.ts +3 -3
- package/esm/PieChart/PieChart.js +9 -8
- package/esm/PieChart/PiePlot.js +2 -2
- package/esm/PieChart/index.d.ts +1 -0
- package/esm/PieChart/index.js +1 -0
- package/esm/PieChart/pieClasses.d.ts +1 -1
- package/esm/PieChart/seriesConfig/getColor.d.ts +1 -1
- package/esm/PieChart/seriesConfig/getSeriesWithDefaultValues.d.ts +1 -1
- package/esm/PieChart/seriesConfig/index.d.ts +1 -1
- package/esm/PieChart/seriesConfig/index.js +3 -1
- package/esm/PieChart/seriesConfig/keyboardFocusHandler.js +2 -15
- package/esm/PieChart/seriesConfig/legend.d.ts +1 -1
- package/esm/PieChart/seriesConfig/legend.js +0 -1
- package/esm/PieChart/seriesConfig/seriesLayout.d.ts +1 -1
- package/esm/PieChart/seriesConfig/seriesProcessor.d.ts +1 -1
- package/esm/PieChart/seriesConfig/tooltip.d.ts +1 -1
- package/esm/PieChart/seriesConfig/tooltipPosition.d.ts +1 -1
- package/esm/RadarChart/RadarAxisHighlight/index.d.ts +2 -1
- package/esm/RadarChart/RadarAxisHighlight/index.js +2 -1
- package/esm/RadarChart/RadarChart.d.ts +1 -1
- package/esm/RadarChart/RadarChart.js +8 -8
- package/esm/RadarChart/RadarGrid/index.d.ts +2 -1
- package/esm/RadarChart/RadarSeriesPlot/RadarSeriesPlot.types.d.ts +2 -0
- package/esm/RadarChart/RadarSeriesPlot/useRadarRotationIndex.js +2 -2
- package/esm/RadarChart/RadarSeriesPlot/useRadarSeriesData.d.ts +2 -2
- package/esm/RadarChart/index.d.ts +1 -1
- package/esm/RadarChart/seriesConfig/extremums.d.ts +1 -1
- package/esm/RadarChart/seriesConfig/getColor.d.ts +1 -1
- package/esm/RadarChart/seriesConfig/getSeriesWithDefaultValues.d.ts +1 -1
- package/esm/RadarChart/seriesConfig/index.d.ts +1 -1
- package/esm/RadarChart/seriesConfig/index.js +3 -1
- package/esm/RadarChart/seriesConfig/keyboardFocusHandler.js +2 -15
- package/esm/RadarChart/seriesConfig/legend.d.ts +1 -1
- package/esm/RadarChart/seriesConfig/legend.js +0 -1
- package/esm/RadarChart/seriesConfig/seriesProcessor.d.ts +1 -1
- package/esm/RadarChart/seriesConfig/tooltip.d.ts +1 -1
- package/esm/RadarChart/seriesConfig/tooltipPosition.d.ts +1 -1
- package/esm/ScatterChart/BatchScatter.d.ts +1 -1
- package/esm/ScatterChart/BatchScatter.js +1 -1
- package/esm/ScatterChart/Scatter.d.ts +1 -1
- package/esm/ScatterChart/ScatterChart.d.ts +1 -1
- package/esm/ScatterChart/ScatterChart.js +30 -8
- package/esm/ScatterChart/scatterClasses.js +2 -2
- package/esm/ScatterChart/seriesConfig/extremums.d.ts +1 -1
- package/esm/ScatterChart/seriesConfig/getColor.d.ts +1 -1
- package/esm/ScatterChart/seriesConfig/getSeriesWithDefaultValues.d.ts +1 -1
- package/esm/ScatterChart/seriesConfig/index.d.ts +1 -1
- package/esm/ScatterChart/seriesConfig/index.js +3 -1
- package/esm/ScatterChart/seriesConfig/keyboardFocusHandler.d.ts +2 -1
- package/esm/ScatterChart/seriesConfig/keyboardFocusHandler.js +3 -16
- package/esm/ScatterChart/seriesConfig/legend.d.ts +1 -1
- package/esm/ScatterChart/seriesConfig/legend.js +0 -1
- package/esm/ScatterChart/seriesConfig/seriesProcessor.d.ts +1 -1
- package/esm/ScatterChart/seriesConfig/tooltip.d.ts +1 -1
- package/esm/ScatterChart/seriesConfig/tooltipPosition.d.ts +1 -1
- package/esm/SparkLineChart/SparkLineChart.d.ts +1 -1
- package/esm/SparkLineChart/SparkLineChart.js +47 -31
- package/esm/context/ChartProvider/ChartProvider.d.ts +3 -4
- package/esm/context/ChartProvider/ChartProvider.js +2 -14
- package/esm/context/ChartProvider/ChartProvider.types.d.ts +3 -18
- package/esm/context/index.d.ts +2 -1
- package/esm/hooks/getValueToPositionMapper.d.ts +12 -0
- package/esm/hooks/getValueToPositionMapper.js +21 -0
- package/esm/hooks/index.d.ts +5 -1
- package/esm/hooks/index.js +4 -1
- package/esm/hooks/useAxisCoordinates.d.ts +30 -0
- package/esm/hooks/useAxisCoordinates.js +105 -0
- package/esm/hooks/useAxisTicks.d.ts +14 -0
- package/esm/hooks/useAxisTicks.js +68 -0
- package/esm/hooks/useChartRootRef.d.ts +1 -1
- package/esm/hooks/useChartRootRef.js +4 -2
- package/esm/hooks/useInteractionItemProps.d.ts +3 -3
- package/esm/hooks/useLegend.d.ts +2 -2
- package/esm/hooks/useLegend.js +1 -1
- package/esm/hooks/useScale.d.ts +1 -12
- package/esm/hooks/useScale.js +0 -20
- package/esm/hooks/useSvgRef.js +4 -5
- package/esm/hooks/useTicks.d.ts +19 -4
- package/esm/index.d.ts +3 -1
- package/esm/index.js +2 -1
- package/esm/internals/commonNextFocusItem.d.ts +2 -0
- package/esm/internals/commonNextFocusItem.js +3 -2
- package/esm/internals/components/WebGLContext.d.ts +3 -0
- package/esm/internals/components/WebGLContext.js +108 -0
- package/esm/internals/consumeSlots.js +1 -1
- package/esm/internals/consumeThemeProps.js +1 -1
- package/esm/internals/createCommonKeyboardFocusHandler.d.ts +25 -0
- package/esm/internals/createCommonKeyboardFocusHandler.js +22 -0
- package/esm/internals/{getBarDimensions.d.ts → createGetBarDimensions.d.ts} +2 -4
- package/esm/internals/createGetBarDimensions.js +55 -0
- package/esm/internals/getChartPoint.d.ts +7 -0
- package/esm/internals/getChartPoint.js +13 -0
- package/esm/internals/getGraphemeCount.js +3 -1
- package/esm/internals/getSeriesColorFn.d.ts +3 -2
- package/esm/internals/identifierCleaner.d.ts +11 -0
- package/esm/internals/identifierCleaner.js +12 -0
- package/esm/internals/index.d.ts +8 -2
- package/esm/internals/index.js +8 -3
- package/esm/internals/plugins/corePlugins/corePlugins.d.ts +5 -3
- package/esm/internals/plugins/corePlugins/corePlugins.js +3 -1
- package/esm/internals/plugins/corePlugins/index.d.ts +2 -1
- package/esm/internals/plugins/corePlugins/useChartAnimation/useChartAnimation.selectors.d.ts +1 -1
- package/esm/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.js +4 -1
- package/esm/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.selectors.d.ts +5 -5
- package/esm/internals/plugins/corePlugins/useChartElementRef/index.d.ts +2 -0
- package/esm/internals/plugins/corePlugins/useChartElementRef/index.js +1 -0
- package/esm/internals/plugins/corePlugins/useChartElementRef/useChartElementRef.d.ts +3 -0
- package/esm/internals/plugins/corePlugins/useChartElementRef/useChartElementRef.js +14 -0
- package/esm/internals/plugins/corePlugins/useChartElementRef/useChartElementRef.types.d.ts +15 -0
- package/esm/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.selectors.d.ts +1 -1
- package/esm/internals/plugins/corePlugins/useChartId/useChartId.selectors.d.ts +1 -1
- package/esm/internals/plugins/corePlugins/useChartInteractionListener/useChartInteractionListener.js +5 -2
- package/esm/internals/plugins/corePlugins/useChartSeries/index.d.ts +1 -1
- package/esm/internals/plugins/corePlugins/useChartSeries/processSeries.d.ts +6 -3
- package/esm/internals/plugins/corePlugins/useChartSeries/processSeries.js +9 -1
- package/esm/internals/plugins/corePlugins/useChartSeries/useChartSeries.d.ts +12 -2
- package/esm/internals/plugins/corePlugins/useChartSeries/useChartSeries.js +41 -19
- package/esm/internals/plugins/corePlugins/useChartSeries/useChartSeries.selectors.d.ts +4 -7
- package/esm/internals/plugins/corePlugins/useChartSeries/useChartSeries.selectors.js +2 -2
- package/esm/internals/plugins/corePlugins/useChartSeries/useChartSeries.types.d.ts +19 -14
- package/esm/internals/plugins/corePlugins/useChartSeries/useColorProcessor.d.ts +1 -1
- package/esm/internals/plugins/corePlugins/useChartSeries/useColorProcessor.js +1 -1
- package/esm/internals/plugins/corePlugins/useChartSeriesConfig/index.d.ts +4 -0
- package/esm/internals/plugins/corePlugins/useChartSeriesConfig/index.js +3 -0
- package/{internals/plugins/models/seriesConfig → esm/internals/plugins/corePlugins/useChartSeriesConfig/types}/cartesianExtremumGetter.types.d.ts +3 -3
- package/esm/internals/plugins/{models/seriesConfig → corePlugins/useChartSeriesConfig/types}/colorProcessor.types.d.ts +4 -4
- package/esm/internals/plugins/corePlugins/useChartSeriesConfig/types/getItemAtPosition.types.d.ts +8 -0
- package/esm/internals/plugins/corePlugins/useChartSeriesConfig/types/getSeriesWithDefaultValues.types.d.ts +3 -0
- package/esm/internals/plugins/corePlugins/useChartSeriesConfig/types/identifierCleaner.types.d.ts +3 -0
- package/esm/internals/plugins/corePlugins/useChartSeriesConfig/types/identifierSerializer.types.d.ts +3 -0
- package/esm/internals/plugins/{models/seriesConfig → corePlugins/useChartSeriesConfig/types}/index.d.ts +3 -1
- package/esm/internals/plugins/{models/seriesConfig → corePlugins/useChartSeriesConfig/types}/index.js +3 -1
- package/esm/internals/plugins/corePlugins/useChartSeriesConfig/types/legendGetter.types.d.ts +4 -0
- package/esm/internals/plugins/{models/seriesConfig → corePlugins/useChartSeriesConfig/types}/polarExtremumGetter.types.d.ts +3 -3
- package/{internals/plugins/models/seriesConfig → esm/internals/plugins/corePlugins/useChartSeriesConfig/types}/seriesConfig.types.d.ts +13 -5
- package/esm/internals/plugins/{models/seriesConfig → corePlugins/useChartSeriesConfig/types}/seriesLayout.types.d.ts +3 -3
- package/{internals/plugins/models/seriesConfig → esm/internals/plugins/corePlugins/useChartSeriesConfig/types}/seriesProcessor.types.d.ts +4 -4
- package/esm/internals/plugins/{models/seriesConfig → corePlugins/useChartSeriesConfig/types}/tooltipGetter.types.d.ts +7 -7
- package/esm/internals/plugins/corePlugins/useChartSeriesConfig/types/tooltipGetter.types.js +1 -0
- package/{internals/plugins/models/seriesConfig → esm/internals/plugins/corePlugins/useChartSeriesConfig/types}/tooltipItemPositionGetter.types.d.ts +7 -7
- package/esm/internals/plugins/corePlugins/useChartSeriesConfig/types/tooltipItemPositionGetter.types.js +1 -0
- package/esm/internals/plugins/corePlugins/useChartSeriesConfig/useChartSeriesConfig.d.ts +3 -0
- package/esm/internals/plugins/corePlugins/useChartSeriesConfig/useChartSeriesConfig.js +35 -0
- package/esm/internals/plugins/corePlugins/useChartSeriesConfig/useChartSeriesConfig.selectors.d.ts +6 -0
- package/esm/internals/plugins/corePlugins/useChartSeriesConfig/useChartSeriesConfig.selectors.js +3 -0
- package/esm/internals/plugins/corePlugins/useChartSeriesConfig/useChartSeriesConfig.types.d.ts +48 -0
- package/esm/internals/plugins/corePlugins/useChartSeriesConfig/useChartSeriesConfig.types.js +1 -0
- package/esm/internals/plugins/corePlugins/useChartSeriesConfig/utils/cleanIdentifier.d.ts +15 -0
- package/esm/internals/plugins/corePlugins/useChartSeriesConfig/utils/cleanIdentifier.js +18 -0
- package/esm/internals/plugins/corePlugins/{useChartSeries → useChartSeriesConfig/utils}/serializeIdentifier.d.ts +2 -2
- package/esm/internals/plugins/featurePlugins/shared/useRegisterPointerInteractions.d.ts +4 -3
- package/esm/internals/plugins/featurePlugins/shared/useRegisterPointerInteractions.js +2 -2
- package/esm/internals/plugins/featurePlugins/useChartBrush/useChartBrush.js +6 -4
- package/esm/internals/plugins/featurePlugins/useChartBrush/useChartBrush.selectors.d.ts +14 -14
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/computeAxisValue.d.ts +1 -1
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/defaultizeAxis.d.ts +2 -2
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/defaultizeAxis.js +4 -4
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/getAxisDomainLimit.d.ts +4 -3
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/getAxisExtrema.d.ts +1 -1
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/getAxisTriggerTooltip.d.ts +1 -1
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/index.d.ts +1 -0
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/index.js +1 -0
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisSize.selectors.d.ts +5 -5
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisSize.selectors.js +22 -9
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxis.js +38 -15
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxis.types.d.ts +24 -1
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisLayout.selectors.d.ts +3 -1
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisLayout.selectors.js +2 -1
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisPosition.selectors.d.ts +1 -1
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisPreview.selectors.d.ts +4 -4
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisPreview.selectors.js +2 -1
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.d.ts +50 -51
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.js +2 -1
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianHighlight.selectors.d.ts +6 -6
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianInteraction.selectors.d.ts +6 -24
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianInteraction.selectors.js +2 -53
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianTooltip.selectors.d.ts +25 -0
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianTooltip.selectors.js +149 -0
- package/esm/internals/plugins/featurePlugins/useChartClosestPoint/useChartClosestPoint.js +5 -3
- package/esm/internals/plugins/featurePlugins/useChartClosestPoint/useChartClosestPoint.selectors.d.ts +1 -1
- package/esm/internals/plugins/featurePlugins/useChartHighlight/createIsFaded.d.ts +2 -2
- package/esm/internals/plugins/featurePlugins/useChartHighlight/createIsHighlighted.d.ts +2 -2
- package/esm/internals/plugins/featurePlugins/useChartHighlight/highlightConfig.types.d.ts +1 -1
- package/esm/internals/plugins/featurePlugins/useChartHighlight/highlightStates.d.ts +11 -7
- package/esm/internals/plugins/featurePlugins/useChartHighlight/highlightStates.js +3 -3
- package/esm/internals/plugins/featurePlugins/useChartHighlight/useChartHighlight.selectors.d.ts +17 -19
- package/esm/internals/plugins/featurePlugins/useChartHighlight/useChartHighlight.selectors.js +4 -4
- package/esm/internals/plugins/featurePlugins/useChartInteraction/useChartInteraction.selectors.d.ts +6 -6
- package/esm/internals/plugins/featurePlugins/useChartItemClick/useChartItemClick.js +4 -4
- package/esm/internals/plugins/featurePlugins/useChartItemClick/useChartItemClick.types.d.ts +5 -4
- package/esm/internals/plugins/featurePlugins/useChartKeyboardNavigation/keyboardFocusHandler.types.d.ts +2 -2
- package/esm/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.js +8 -3
- package/esm/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.selectors.d.ts +7 -7
- package/esm/internals/plugins/featurePlugins/useChartPolarAxis/computeAxisValue.d.ts +1 -1
- package/esm/internals/plugins/featurePlugins/useChartPolarAxis/getAxisExtremum.d.ts +1 -1
- package/esm/internals/plugins/featurePlugins/useChartPolarAxis/getAxisTriggerTooltip.d.ts +1 -1
- package/esm/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.js +8 -7
- package/esm/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.selectors.d.ts +5 -5
- package/esm/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.selectors.js +2 -1
- package/esm/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarInteraction.selectors.d.ts +6 -6
- package/esm/internals/plugins/featurePlugins/useChartTooltip/useChartTooltip.js +14 -7
- package/esm/internals/plugins/featurePlugins/useChartTooltip/useChartTooltip.selectors.d.ts +5 -5
- package/esm/internals/plugins/featurePlugins/useChartTooltip/useChartTooltip.selectors.js +2 -1
- package/esm/internals/plugins/featurePlugins/useChartTooltip/useChartTooltip.types.d.ts +4 -4
- package/esm/internals/plugins/featurePlugins/useChartVisibilityManager/useChartVisibilityManager.js +9 -8
- package/esm/internals/plugins/featurePlugins/useChartVisibilityManager/useChartVisibilityManager.selectors.d.ts +3 -6
- package/esm/internals/plugins/featurePlugins/useChartVisibilityManager/useChartVisibilityManager.selectors.js +9 -4
- package/esm/internals/plugins/featurePlugins/useChartVisibilityManager/useChartVisibilityManager.types.d.ts +6 -3
- package/esm/internals/plugins/featurePlugins/useChartVisibilityManager/visibilityParamToMap.d.ts +3 -3
- package/esm/internals/plugins/featurePlugins/useChartVisibilityManager/visibilityParamToMap.js +1 -1
- package/esm/internals/plugins/featurePlugins/useChartZAxis/useChartZAxis.selectors.d.ts +1 -1
- package/esm/internals/plugins/models/index.d.ts +1 -2
- package/esm/internals/plugins/models/index.js +1 -2
- package/esm/internals/plugins/models/plugin.d.ts +1 -16
- package/esm/internals/plugins/utils/defaultSeriesConfig.d.ts +2 -0
- package/esm/internals/plugins/utils/defaultSeriesConfig.js +10 -0
- package/esm/internals/seriesSelectorOfType.d.ts +8 -8
- package/esm/internals/seriesSelectorOfType.js +1 -1
- package/esm/internals/sliceUntil.js +3 -1
- package/esm/internals/stacking/stackSeries.d.ts +3 -2
- package/esm/internals/stacking/stackSeries.js +0 -1
- package/esm/internals/store/useCharts.d.ts +2 -7
- package/esm/internals/store/useCharts.js +4 -12
- package/esm/internals/store/useCharts.types.d.ts +6 -0
- package/esm/models/axis.d.ts +16 -3
- package/esm/models/index.d.ts +1 -0
- package/esm/models/seriesType/bar.d.ts +1 -1
- package/esm/models/seriesType/common.d.ts +5 -5
- package/esm/models/seriesType/config.d.ts +8 -1
- package/esm/models/seriesType/index.d.ts +8 -30
- package/esm/models/seriesType/index.js +1 -32
- package/esm/models/seriesType/line.d.ts +1 -1
- package/esm/models/seriesType/pie.d.ts +1 -1
- package/esm/models/seriesType/radar.d.ts +1 -1
- package/esm/models/seriesType/scatter.d.ts +1 -1
- package/hooks/getValueToPositionMapper.d.ts +12 -0
- package/hooks/getValueToPositionMapper.js +26 -0
- package/hooks/index.d.ts +5 -1
- package/hooks/index.js +40 -1
- package/hooks/useAxisCoordinates.d.ts +30 -0
- package/hooks/useAxisCoordinates.js +115 -0
- package/hooks/useAxisTicks.d.ts +14 -0
- package/hooks/useAxisTicks.js +75 -0
- package/hooks/useChartRootRef.d.ts +1 -1
- package/hooks/useChartRootRef.js +4 -2
- package/hooks/useInteractionItemProps.d.ts +3 -3
- package/hooks/useLegend.d.ts +2 -2
- package/hooks/useLegend.js +2 -2
- package/hooks/useScale.d.ts +1 -12
- package/hooks/useScale.js +0 -21
- package/hooks/useSvgRef.js +4 -5
- package/hooks/useTicks.d.ts +19 -4
- package/index.d.ts +3 -1
- package/index.js +9 -1
- package/internals/commonNextFocusItem.d.ts +2 -0
- package/internals/commonNextFocusItem.js +4 -2
- package/internals/components/WebGLContext.d.ts +3 -0
- package/internals/components/WebGLContext.js +116 -0
- package/internals/consumeSlots.js +1 -1
- package/internals/consumeThemeProps.js +1 -1
- package/internals/createCommonKeyboardFocusHandler.d.ts +25 -0
- package/internals/createCommonKeyboardFocusHandler.js +27 -0
- package/internals/{getBarDimensions.d.ts → createGetBarDimensions.d.ts} +2 -4
- package/internals/createGetBarDimensions.js +61 -0
- package/internals/getChartPoint.d.ts +7 -0
- package/internals/getChartPoint.js +19 -0
- package/internals/getGraphemeCount.js +3 -1
- package/internals/getSeriesColorFn.d.ts +3 -2
- package/internals/identifierCleaner.d.ts +11 -0
- package/internals/identifierCleaner.js +19 -0
- package/internals/index.d.ts +8 -2
- package/internals/index.js +72 -4
- package/internals/plugins/corePlugins/corePlugins.d.ts +5 -3
- package/internals/plugins/corePlugins/corePlugins.js +3 -1
- package/internals/plugins/corePlugins/index.d.ts +2 -1
- package/internals/plugins/corePlugins/useChartAnimation/useChartAnimation.selectors.d.ts +1 -1
- package/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.js +4 -1
- package/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.selectors.d.ts +5 -5
- package/internals/plugins/corePlugins/useChartElementRef/index.d.ts +2 -0
- package/internals/plugins/corePlugins/useChartElementRef/index.js +12 -0
- package/internals/plugins/corePlugins/useChartElementRef/useChartElementRef.d.ts +3 -0
- package/internals/plugins/corePlugins/useChartElementRef/useChartElementRef.js +21 -0
- package/internals/plugins/corePlugins/useChartElementRef/useChartElementRef.types.d.ts +15 -0
- package/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.selectors.d.ts +1 -1
- package/internals/plugins/corePlugins/useChartId/useChartId.selectors.d.ts +1 -1
- package/internals/plugins/corePlugins/useChartInteractionListener/useChartInteractionListener.js +5 -2
- package/internals/plugins/corePlugins/useChartSeries/index.d.ts +1 -1
- package/internals/plugins/corePlugins/useChartSeries/processSeries.d.ts +6 -3
- package/internals/plugins/corePlugins/useChartSeries/processSeries.js +9 -1
- package/internals/plugins/corePlugins/useChartSeries/useChartSeries.d.ts +12 -2
- package/internals/plugins/corePlugins/useChartSeries/useChartSeries.js +42 -19
- package/internals/plugins/corePlugins/useChartSeries/useChartSeries.selectors.d.ts +4 -7
- package/internals/plugins/corePlugins/useChartSeries/useChartSeries.selectors.js +5 -5
- package/internals/plugins/corePlugins/useChartSeries/useChartSeries.types.d.ts +19 -14
- package/internals/plugins/corePlugins/useChartSeries/useColorProcessor.d.ts +1 -1
- package/internals/plugins/corePlugins/useChartSeries/useColorProcessor.js +2 -2
- package/internals/plugins/corePlugins/useChartSeriesConfig/index.d.ts +4 -0
- package/internals/plugins/corePlugins/useChartSeriesConfig/index.js +39 -0
- package/{esm/internals/plugins/models/seriesConfig → internals/plugins/corePlugins/useChartSeriesConfig/types}/cartesianExtremumGetter.types.d.ts +3 -3
- package/internals/plugins/{models/seriesConfig → corePlugins/useChartSeriesConfig/types}/colorProcessor.types.d.ts +4 -4
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/getItemAtPosition.types.d.ts +8 -0
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/getSeriesWithDefaultValues.types.d.ts +3 -0
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/identifierCleaner.types.d.ts +3 -0
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/identifierSerializer.types.d.ts +3 -0
- package/internals/plugins/{models/seriesConfig → corePlugins/useChartSeriesConfig/types}/index.d.ts +3 -1
- package/internals/plugins/{models/seriesConfig → corePlugins/useChartSeriesConfig/types}/index.js +22 -0
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/legendGetter.types.d.ts +4 -0
- package/internals/plugins/{models/seriesConfig → corePlugins/useChartSeriesConfig/types}/polarExtremumGetter.types.d.ts +3 -3
- package/{esm/internals/plugins/models/seriesConfig → internals/plugins/corePlugins/useChartSeriesConfig/types}/seriesConfig.types.d.ts +13 -5
- package/internals/plugins/{models/seriesConfig → corePlugins/useChartSeriesConfig/types}/seriesLayout.types.d.ts +3 -3
- package/{esm/internals/plugins/models/seriesConfig → internals/plugins/corePlugins/useChartSeriesConfig/types}/seriesProcessor.types.d.ts +4 -4
- package/internals/plugins/{models/seriesConfig → corePlugins/useChartSeriesConfig/types}/tooltipGetter.types.d.ts +7 -7
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/tooltipGetter.types.js +5 -0
- package/{esm/internals/plugins/models/seriesConfig → internals/plugins/corePlugins/useChartSeriesConfig/types}/tooltipItemPositionGetter.types.d.ts +7 -7
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/tooltipItemPositionGetter.types.js +5 -0
- package/internals/plugins/corePlugins/useChartSeriesConfig/useChartSeriesConfig.d.ts +3 -0
- package/internals/plugins/corePlugins/useChartSeriesConfig/useChartSeriesConfig.js +42 -0
- package/internals/plugins/corePlugins/useChartSeriesConfig/useChartSeriesConfig.selectors.d.ts +6 -0
- package/internals/plugins/corePlugins/useChartSeriesConfig/useChartSeriesConfig.selectors.js +10 -0
- package/internals/plugins/corePlugins/useChartSeriesConfig/useChartSeriesConfig.types.d.ts +48 -0
- package/internals/plugins/corePlugins/useChartSeriesConfig/useChartSeriesConfig.types.js +5 -0
- package/internals/plugins/corePlugins/useChartSeriesConfig/utils/cleanIdentifier.d.ts +15 -0
- package/internals/plugins/corePlugins/useChartSeriesConfig/utils/cleanIdentifier.js +25 -0
- package/internals/plugins/corePlugins/{useChartSeries → useChartSeriesConfig/utils}/serializeIdentifier.d.ts +2 -2
- package/internals/plugins/featurePlugins/shared/useRegisterPointerInteractions.d.ts +4 -3
- package/internals/plugins/featurePlugins/shared/useRegisterPointerInteractions.js +2 -2
- package/internals/plugins/featurePlugins/useChartBrush/useChartBrush.js +6 -4
- package/internals/plugins/featurePlugins/useChartBrush/useChartBrush.selectors.d.ts +14 -14
- package/internals/plugins/featurePlugins/useChartCartesianAxis/computeAxisValue.d.ts +1 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/defaultizeAxis.d.ts +2 -2
- package/internals/plugins/featurePlugins/useChartCartesianAxis/defaultizeAxis.js +4 -4
- package/internals/plugins/featurePlugins/useChartCartesianAxis/getAxisDomainLimit.d.ts +4 -3
- package/internals/plugins/featurePlugins/useChartCartesianAxis/getAxisExtrema.d.ts +1 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/getAxisTriggerTooltip.d.ts +1 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/index.d.ts +1 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/index.js +12 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisSize.selectors.d.ts +5 -5
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisSize.selectors.js +21 -8
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxis.js +38 -15
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxis.types.d.ts +24 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisLayout.selectors.d.ts +3 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisLayout.selectors.js +4 -2
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisPosition.selectors.d.ts +1 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisPreview.selectors.d.ts +4 -4
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisPreview.selectors.js +3 -2
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.d.ts +50 -51
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.js +7 -6
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianHighlight.selectors.d.ts +6 -6
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianInteraction.selectors.d.ts +6 -24
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianInteraction.selectors.js +2 -53
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianTooltip.selectors.d.ts +25 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianTooltip.selectors.js +155 -0
- package/internals/plugins/featurePlugins/useChartClosestPoint/useChartClosestPoint.js +5 -3
- package/internals/plugins/featurePlugins/useChartClosestPoint/useChartClosestPoint.selectors.d.ts +1 -1
- package/internals/plugins/featurePlugins/useChartHighlight/createIsFaded.d.ts +2 -2
- package/internals/plugins/featurePlugins/useChartHighlight/createIsHighlighted.d.ts +2 -2
- package/internals/plugins/featurePlugins/useChartHighlight/highlightConfig.types.d.ts +1 -1
- package/internals/plugins/featurePlugins/useChartHighlight/highlightStates.d.ts +11 -7
- package/internals/plugins/featurePlugins/useChartHighlight/highlightStates.js +5 -5
- package/internals/plugins/featurePlugins/useChartHighlight/useChartHighlight.selectors.d.ts +17 -19
- package/internals/plugins/featurePlugins/useChartHighlight/useChartHighlight.selectors.js +3 -3
- package/internals/plugins/featurePlugins/useChartInteraction/useChartInteraction.selectors.d.ts +6 -6
- package/internals/plugins/featurePlugins/useChartItemClick/useChartItemClick.js +4 -4
- package/internals/plugins/featurePlugins/useChartItemClick/useChartItemClick.types.d.ts +5 -4
- package/internals/plugins/featurePlugins/useChartKeyboardNavigation/keyboardFocusHandler.types.d.ts +2 -2
- package/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.js +8 -3
- package/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.selectors.d.ts +7 -7
- package/internals/plugins/featurePlugins/useChartPolarAxis/computeAxisValue.d.ts +1 -1
- package/internals/plugins/featurePlugins/useChartPolarAxis/getAxisExtremum.d.ts +1 -1
- package/internals/plugins/featurePlugins/useChartPolarAxis/getAxisTriggerTooltip.d.ts +1 -1
- package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.js +8 -7
- package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.selectors.d.ts +5 -5
- package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.selectors.js +3 -2
- package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarInteraction.selectors.d.ts +6 -6
- package/internals/plugins/featurePlugins/useChartTooltip/useChartTooltip.js +14 -7
- package/internals/plugins/featurePlugins/useChartTooltip/useChartTooltip.selectors.d.ts +5 -5
- package/internals/plugins/featurePlugins/useChartTooltip/useChartTooltip.selectors.js +2 -1
- package/internals/plugins/featurePlugins/useChartTooltip/useChartTooltip.types.d.ts +4 -4
- package/internals/plugins/featurePlugins/useChartVisibilityManager/useChartVisibilityManager.js +9 -8
- package/internals/plugins/featurePlugins/useChartVisibilityManager/useChartVisibilityManager.selectors.d.ts +3 -6
- package/internals/plugins/featurePlugins/useChartVisibilityManager/useChartVisibilityManager.selectors.js +9 -4
- package/internals/plugins/featurePlugins/useChartVisibilityManager/useChartVisibilityManager.types.d.ts +6 -3
- package/internals/plugins/featurePlugins/useChartVisibilityManager/visibilityParamToMap.d.ts +3 -3
- package/internals/plugins/featurePlugins/useChartVisibilityManager/visibilityParamToMap.js +1 -1
- package/internals/plugins/featurePlugins/useChartZAxis/useChartZAxis.selectors.d.ts +1 -1
- package/internals/plugins/models/index.d.ts +1 -2
- package/internals/plugins/models/index.js +0 -11
- package/internals/plugins/models/plugin.d.ts +1 -16
- package/internals/plugins/utils/defaultSeriesConfig.d.ts +2 -0
- package/internals/plugins/utils/defaultSeriesConfig.js +16 -0
- package/internals/seriesSelectorOfType.d.ts +8 -8
- package/internals/seriesSelectorOfType.js +1 -1
- package/internals/sliceUntil.js +3 -1
- package/internals/stacking/stackSeries.d.ts +3 -2
- package/internals/stacking/stackSeries.js +0 -1
- package/internals/store/useCharts.d.ts +2 -7
- package/internals/store/useCharts.js +4 -12
- package/internals/store/useCharts.types.d.ts +6 -0
- package/models/axis.d.ts +16 -3
- package/models/index.d.ts +1 -0
- package/models/seriesType/bar.d.ts +1 -1
- package/models/seriesType/common.d.ts +5 -5
- package/models/seriesType/config.d.ts +8 -1
- package/models/seriesType/index.d.ts +8 -30
- package/models/seriesType/index.js +1 -48
- package/models/seriesType/line.d.ts +1 -1
- package/models/seriesType/pie.d.ts +1 -1
- package/models/seriesType/radar.d.ts +1 -1
- package/models/seriesType/scatter.d.ts +1 -1
- package/package.json +20 -8
- package/ChartsTooltip/useAxisTooltip.d.ts +0 -42
- package/ChartsTooltip/useAxisTooltip.js +0 -181
- package/esm/ChartsTooltip/useAxisTooltip.d.ts +0 -42
- package/esm/ChartsTooltip/useAxisTooltip.js +0 -176
- package/esm/internals/getBarDimensions.js +0 -55
- package/esm/internals/getSVGPoint.d.ts +0 -6
- package/esm/internals/getSVGPoint.js +0 -11
- package/esm/internals/plugins/featurePlugins/useChartVisibilityManager/isIdentifierVisible.d.ts +0 -4
- package/esm/internals/plugins/featurePlugins/useChartVisibilityManager/isIdentifierVisible.js +0 -5
- package/esm/internals/plugins/models/seriesConfig/getItemAtPosition.types.d.ts +0 -8
- package/esm/internals/plugins/models/seriesConfig/getSeriesWithDefaultValues.types.d.ts +0 -3
- package/esm/internals/plugins/models/seriesConfig/identifierSerializer.types.d.ts +0 -2
- package/esm/internals/plugins/models/seriesConfig/legendGetter.types.d.ts +0 -4
- package/internals/getBarDimensions.js +0 -61
- package/internals/getSVGPoint.d.ts +0 -6
- package/internals/getSVGPoint.js +0 -17
- package/internals/plugins/featurePlugins/useChartVisibilityManager/isIdentifierVisible.d.ts +0 -4
- package/internals/plugins/featurePlugins/useChartVisibilityManager/isIdentifierVisible.js +0 -12
- package/internals/plugins/models/seriesConfig/getItemAtPosition.types.d.ts +0 -8
- package/internals/plugins/models/seriesConfig/getSeriesWithDefaultValues.types.d.ts +0 -3
- package/internals/plugins/models/seriesConfig/identifierSerializer.types.d.ts +0 -2
- package/internals/plugins/models/seriesConfig/legendGetter.types.d.ts +0 -4
- /package/esm/internals/plugins/{models/seriesConfig/cartesianExtremumGetter.types.js → corePlugins/useChartElementRef/useChartElementRef.types.js} +0 -0
- /package/esm/internals/plugins/{models/seriesConfig/colorProcessor.types.js → corePlugins/useChartSeriesConfig/types/cartesianExtremumGetter.types.js} +0 -0
- /package/esm/internals/plugins/{models/seriesConfig/getItemAtPosition.types.js → corePlugins/useChartSeriesConfig/types/colorProcessor.types.js} +0 -0
- /package/esm/internals/plugins/{models/seriesConfig/getSeriesWithDefaultValues.types.js → corePlugins/useChartSeriesConfig/types/getItemAtPosition.types.js} +0 -0
- /package/esm/internals/plugins/{models/seriesConfig/identifierSerializer.types.js → corePlugins/useChartSeriesConfig/types/getSeriesWithDefaultValues.types.js} +0 -0
- /package/esm/internals/plugins/{models/seriesConfig/legendGetter.types.js → corePlugins/useChartSeriesConfig/types/identifierCleaner.types.js} +0 -0
- /package/esm/internals/plugins/{models/seriesConfig/polarExtremumGetter.types.js → corePlugins/useChartSeriesConfig/types/identifierSerializer.types.js} +0 -0
- /package/esm/internals/plugins/{models/seriesConfig/seriesConfig.types.js → corePlugins/useChartSeriesConfig/types/legendGetter.types.js} +0 -0
- /package/esm/internals/plugins/{models/seriesConfig/seriesLayout.types.js → corePlugins/useChartSeriesConfig/types/polarExtremumGetter.types.js} +0 -0
- /package/esm/internals/plugins/{models/seriesConfig/seriesProcessor.types.js → corePlugins/useChartSeriesConfig/types/seriesConfig.types.js} +0 -0
- /package/esm/internals/plugins/{models/seriesConfig/tooltipGetter.types.js → corePlugins/useChartSeriesConfig/types/seriesLayout.types.js} +0 -0
- /package/esm/internals/plugins/{models/seriesConfig/tooltipItemPositionGetter.types.js → corePlugins/useChartSeriesConfig/types/seriesProcessor.types.js} +0 -0
- /package/esm/internals/plugins/corePlugins/{useChartSeries → useChartSeriesConfig/utils}/serializeIdentifier.js +0 -0
- /package/internals/plugins/{models/seriesConfig/cartesianExtremumGetter.types.js → corePlugins/useChartElementRef/useChartElementRef.types.js} +0 -0
- /package/internals/plugins/{models/seriesConfig/colorProcessor.types.js → corePlugins/useChartSeriesConfig/types/cartesianExtremumGetter.types.js} +0 -0
- /package/internals/plugins/{models/seriesConfig/getItemAtPosition.types.js → corePlugins/useChartSeriesConfig/types/colorProcessor.types.js} +0 -0
- /package/internals/plugins/{models/seriesConfig/getSeriesWithDefaultValues.types.js → corePlugins/useChartSeriesConfig/types/getItemAtPosition.types.js} +0 -0
- /package/internals/plugins/{models/seriesConfig/identifierSerializer.types.js → corePlugins/useChartSeriesConfig/types/getSeriesWithDefaultValues.types.js} +0 -0
- /package/internals/plugins/{models/seriesConfig/legendGetter.types.js → corePlugins/useChartSeriesConfig/types/identifierCleaner.types.js} +0 -0
- /package/internals/plugins/{models/seriesConfig/polarExtremumGetter.types.js → corePlugins/useChartSeriesConfig/types/identifierSerializer.types.js} +0 -0
- /package/internals/plugins/{models/seriesConfig/seriesConfig.types.js → corePlugins/useChartSeriesConfig/types/legendGetter.types.js} +0 -0
- /package/internals/plugins/{models/seriesConfig/seriesLayout.types.js → corePlugins/useChartSeriesConfig/types/polarExtremumGetter.types.js} +0 -0
- /package/internals/plugins/{models/seriesConfig/seriesProcessor.types.js → corePlugins/useChartSeriesConfig/types/seriesConfig.types.js} +0 -0
- /package/internals/plugins/{models/seriesConfig/tooltipGetter.types.js → corePlugins/useChartSeriesConfig/types/seriesLayout.types.js} +0 -0
- /package/internals/plugins/{models/seriesConfig/tooltipItemPositionGetter.types.js → corePlugins/useChartSeriesConfig/types/seriesProcessor.types.js} +0 -0
- /package/internals/plugins/corePlugins/{useChartSeries → useChartSeriesConfig/utils}/serializeIdentifier.js +0 -0
|
@@ -29,7 +29,7 @@ function useAxisTicksProps(inProps) {
|
|
|
29
29
|
} = _yAxis,
|
|
30
30
|
settings = (0, _objectWithoutPropertiesLoose2.default)(_yAxis, _excluded);
|
|
31
31
|
|
|
32
|
-
// eslint-disable-next-line material-ui
|
|
32
|
+
// eslint-disable-next-line mui/material-ui-name-matches-component-name
|
|
33
33
|
const themedProps = (0, _styles.useThemeProps)({
|
|
34
34
|
props: (0, _extends2.default)({}, settings, inProps),
|
|
35
35
|
name: 'MuiChartsYAxis'
|
package/ChartsYAxis/utilities.js
CHANGED
|
@@ -10,11 +10,10 @@ var _axisClasses = require("../ChartsAxis/axisClasses");
|
|
|
10
10
|
const useUtilityClasses = ownerState => {
|
|
11
11
|
const {
|
|
12
12
|
classes,
|
|
13
|
-
position
|
|
14
|
-
id
|
|
13
|
+
position
|
|
15
14
|
} = ownerState;
|
|
16
15
|
const slots = {
|
|
17
|
-
root: ['root', 'directionY', position
|
|
16
|
+
root: ['root', 'directionY', position],
|
|
18
17
|
line: ['line'],
|
|
19
18
|
tickContainer: ['tickContainer'],
|
|
20
19
|
tick: ['tick'],
|
|
@@ -3,7 +3,7 @@ import { type ChartsSurfaceProps } from "../ChartsSurface/index.js";
|
|
|
3
3
|
import { type GaugeProviderProps } from "./GaugeProvider.js";
|
|
4
4
|
import { type MergeSignaturesProperty } from "../internals/plugins/models/index.js";
|
|
5
5
|
import { type ChartCorePluginSignatures } from "../internals/plugins/corePlugins/index.js";
|
|
6
|
-
export interface GaugeContainerProps extends Omit<ChartsSurfaceProps, 'children'>, Omit<MergeSignaturesProperty<ChartCorePluginSignatures, 'params'>, 'series' | 'dataset' | 'colors' | 'theme' | 'experimentalFeatures'>, Omit<GaugeProviderProps, 'children'>, Omit<React.SVGProps<SVGSVGElement>, 'width' | 'height'> {
|
|
6
|
+
export interface GaugeContainerProps extends Omit<ChartsSurfaceProps, 'children'>, Omit<MergeSignaturesProperty<ChartCorePluginSignatures, 'params'>, 'series' | 'dataset' | 'colors' | 'theme' | 'experimentalFeatures' | 'seriesConfig'>, Omit<GaugeProviderProps, 'children'>, Omit<React.SVGProps<SVGSVGElement>, 'width' | 'height'> {
|
|
7
7
|
children?: React.ReactNode;
|
|
8
8
|
}
|
|
9
9
|
declare const GaugeContainer: React.ForwardRefExoticComponent<Omit<GaugeContainerProps, "ref"> & React.RefAttributes<SVGSVGElement>>;
|
package/Gauge/GaugeContainer.js
CHANGED
|
@@ -58,7 +58,9 @@ const GaugeContainer = exports.GaugeContainer = /*#__PURE__*/React.forwardRef(fu
|
|
|
58
58
|
top: 10,
|
|
59
59
|
bottom: 10
|
|
60
60
|
})
|
|
61
|
-
}
|
|
61
|
+
}
|
|
62
|
+
// We just use some of the core plugins for dimension management.
|
|
63
|
+
,
|
|
62
64
|
plugins: [],
|
|
63
65
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_GaugeProvider.GaugeProvider, {
|
|
64
66
|
value: value,
|
|
@@ -34,7 +34,7 @@ function AnimatedArea(props) {
|
|
|
34
34
|
const animatedProps = (0, _useAnimateArea.useAnimateArea)(props);
|
|
35
35
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_AppearingMask.AppearingMask, {
|
|
36
36
|
skipAnimation: skipAnimation,
|
|
37
|
-
|
|
37
|
+
seriesId: `${ownerState.seriesId}-area-clip`,
|
|
38
38
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("path", (0, _extends2.default)({
|
|
39
39
|
fill: ownerState.gradientId ? `url(#${ownerState.gradientId})` : ownerState.color,
|
|
40
40
|
filter:
|
|
@@ -42,7 +42,7 @@ function AnimatedArea(props) {
|
|
|
42
42
|
ownerState.isHighlighted ? 'brightness(140%)' : ownerState.gradientId ? undefined : 'brightness(120%)',
|
|
43
43
|
opacity: ownerState.isFaded ? 0.3 : 1,
|
|
44
44
|
stroke: "none",
|
|
45
|
-
"data-series": ownerState.
|
|
45
|
+
"data-series": ownerState.seriesId,
|
|
46
46
|
"data-highlighted": ownerState.isHighlighted || undefined,
|
|
47
47
|
"data-faded": ownerState.isFaded || undefined
|
|
48
48
|
}, other, animatedProps))
|
|
@@ -58,7 +58,7 @@ process.env.NODE_ENV !== "production" ? AnimatedArea.propTypes = {
|
|
|
58
58
|
classes: _propTypes.default.object,
|
|
59
59
|
color: _propTypes.default.string.isRequired,
|
|
60
60
|
gradientId: _propTypes.default.string,
|
|
61
|
-
|
|
61
|
+
seriesId: _propTypes.default.string.isRequired,
|
|
62
62
|
isFaded: _propTypes.default.bool.isRequired,
|
|
63
63
|
isHighlighted: _propTypes.default.bool.isRequired
|
|
64
64
|
}).isRequired,
|
|
@@ -39,7 +39,7 @@ const AnimatedLine = exports.AnimatedLine = /*#__PURE__*/React.forwardRef(functi
|
|
|
39
39
|
const fadedOpacity = ownerState.isFaded ? 0.3 : 1;
|
|
40
40
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_AppearingMask.AppearingMask, {
|
|
41
41
|
skipAnimation: skipAnimation,
|
|
42
|
-
|
|
42
|
+
seriesId: `${ownerState.seriesId}-line-clip`,
|
|
43
43
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("path", (0, _extends2.default)({
|
|
44
44
|
stroke: ownerState.gradientId ? `url(#${ownerState.gradientId})` : ownerState.color,
|
|
45
45
|
strokeWidth: 2,
|
|
@@ -47,7 +47,7 @@ const AnimatedLine = exports.AnimatedLine = /*#__PURE__*/React.forwardRef(functi
|
|
|
47
47
|
fill: "none",
|
|
48
48
|
filter: ownerState.isHighlighted ? 'brightness(120%)' : undefined,
|
|
49
49
|
opacity: ownerState.hidden ? 0 : fadedOpacity,
|
|
50
|
-
"data-series": ownerState.
|
|
50
|
+
"data-series": ownerState.seriesId,
|
|
51
51
|
"data-highlighted": ownerState.isHighlighted || undefined,
|
|
52
52
|
"data-faded": ownerState.isFaded || undefined
|
|
53
53
|
}, other, animateProps))
|
|
@@ -65,9 +65,9 @@ process.env.NODE_ENV !== "production" ? AnimatedLine.propTypes = {
|
|
|
65
65
|
color: _propTypes.default.string.isRequired,
|
|
66
66
|
gradientId: _propTypes.default.string,
|
|
67
67
|
hidden: _propTypes.default.bool,
|
|
68
|
-
id: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string]).isRequired,
|
|
69
68
|
isFaded: _propTypes.default.bool.isRequired,
|
|
70
|
-
isHighlighted: _propTypes.default.bool.isRequired
|
|
69
|
+
isHighlighted: _propTypes.default.bool.isRequired,
|
|
70
|
+
seriesId: _propTypes.default.string.isRequired
|
|
71
71
|
}).isRequired,
|
|
72
72
|
/**
|
|
73
73
|
* If `true`, animations are skipped.
|
|
@@ -39,7 +39,7 @@ const AnimatedRect = (0, _styles.styled)('rect', {
|
|
|
39
39
|
function AppearingMask(props) {
|
|
40
40
|
const drawingArea = (0, _hooks.useDrawingArea)();
|
|
41
41
|
const chartId = (0, _hooks.useChartId)();
|
|
42
|
-
const clipId = (0, _cleanId.cleanId)(`${chartId}-${props.
|
|
42
|
+
const clipId = (0, _cleanId.cleanId)(`${chartId}-${props.seriesId}`);
|
|
43
43
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(React.Fragment, {
|
|
44
44
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("clipPath", {
|
|
45
45
|
id: clipId,
|
|
@@ -17,7 +17,7 @@ export interface AreaElementClasses {
|
|
|
17
17
|
}
|
|
18
18
|
export type AreaElementClassKey = keyof AreaElementClasses;
|
|
19
19
|
export interface AreaElementOwnerState {
|
|
20
|
-
|
|
20
|
+
seriesId: SeriesId;
|
|
21
21
|
color: string;
|
|
22
22
|
gradientId?: string;
|
|
23
23
|
isFaded: boolean;
|
|
@@ -36,7 +36,7 @@ export interface AreaElementSlots {
|
|
|
36
36
|
export interface AreaElementSlotProps {
|
|
37
37
|
area?: SlotComponentPropsFromProps<AnimatedAreaProps, {}, AreaElementOwnerState>;
|
|
38
38
|
}
|
|
39
|
-
export interface AreaElementProps extends Omit<AreaElementOwnerState, 'isFaded' | 'isHighlighted'>, Pick<AnimatedAreaProps, 'skipAnimation'>, Omit<React.SVGProps<SVGPathElement>, 'ref' | 'color'
|
|
39
|
+
export interface AreaElementProps extends Omit<AreaElementOwnerState, 'isFaded' | 'isHighlighted'>, Pick<AnimatedAreaProps, 'skipAnimation'>, Omit<React.SVGProps<SVGPathElement>, 'ref' | 'color'> {
|
|
40
40
|
d: string;
|
|
41
41
|
/**
|
|
42
42
|
* The props used for each component slot.
|
package/LineChart/AreaElement.js
CHANGED
|
@@ -21,7 +21,7 @@ var _useInteractionItemProps = require("../hooks/useInteractionItemProps");
|
|
|
21
21
|
var _useItemHighlighted = require("../hooks/useItemHighlighted");
|
|
22
22
|
var _AnimatedArea = require("./AnimatedArea");
|
|
23
23
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
24
|
-
const _excluded = ["
|
|
24
|
+
const _excluded = ["seriesId", "classes", "color", "gradientId", "slots", "slotProps", "onClick"];
|
|
25
25
|
function getAreaElementUtilityClass(slot) {
|
|
26
26
|
return (0, _generateUtilityClass.default)('MuiAreaElement', slot);
|
|
27
27
|
}
|
|
@@ -29,12 +29,12 @@ const areaElementClasses = exports.areaElementClasses = (0, _generateUtilityClas
|
|
|
29
29
|
const useUtilityClasses = ownerState => {
|
|
30
30
|
const {
|
|
31
31
|
classes,
|
|
32
|
-
|
|
32
|
+
seriesId,
|
|
33
33
|
isFaded,
|
|
34
34
|
isHighlighted
|
|
35
35
|
} = ownerState;
|
|
36
36
|
const slots = {
|
|
37
|
-
root: ['root', `series-${
|
|
37
|
+
root: ['root', `series-${seriesId}`, isHighlighted && 'highlighted', isFaded && 'faded']
|
|
38
38
|
};
|
|
39
39
|
return (0, _composeClasses.default)(slots, getAreaElementUtilityClass, classes);
|
|
40
40
|
};
|
|
@@ -50,7 +50,7 @@ const useUtilityClasses = ownerState => {
|
|
|
50
50
|
*/
|
|
51
51
|
function AreaElement(props) {
|
|
52
52
|
const {
|
|
53
|
-
|
|
53
|
+
seriesId,
|
|
54
54
|
classes: innerClasses,
|
|
55
55
|
color,
|
|
56
56
|
gradientId,
|
|
@@ -61,16 +61,16 @@ function AreaElement(props) {
|
|
|
61
61
|
other = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded);
|
|
62
62
|
const interactionProps = (0, _useInteractionItemProps.useInteractionItemProps)({
|
|
63
63
|
type: 'line',
|
|
64
|
-
seriesId
|
|
64
|
+
seriesId
|
|
65
65
|
});
|
|
66
66
|
const {
|
|
67
67
|
isFaded,
|
|
68
68
|
isHighlighted
|
|
69
69
|
} = (0, _useItemHighlighted.useItemHighlighted)({
|
|
70
|
-
seriesId
|
|
70
|
+
seriesId
|
|
71
71
|
});
|
|
72
72
|
const ownerState = {
|
|
73
|
-
|
|
73
|
+
seriesId,
|
|
74
74
|
classes: innerClasses,
|
|
75
75
|
color,
|
|
76
76
|
gradientId,
|
|
@@ -100,7 +100,7 @@ process.env.NODE_ENV !== "production" ? AreaElement.propTypes = {
|
|
|
100
100
|
color: _propTypes.default.string.isRequired,
|
|
101
101
|
d: _propTypes.default.string.isRequired,
|
|
102
102
|
gradientId: _propTypes.default.string,
|
|
103
|
-
|
|
103
|
+
seriesId: _propTypes.default.string.isRequired,
|
|
104
104
|
/**
|
|
105
105
|
* If `true`, animations are skipped.
|
|
106
106
|
* @default false
|
package/LineChart/AreaPlot.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { type MarkElementOwnerState } from "./markElementClasses.js";
|
|
3
|
-
export type CircleMarkElementProps = Omit<MarkElementOwnerState, 'isFaded' | 'isHighlighted'> & Omit<React.SVGProps<SVGPathElement>, 'ref'
|
|
3
|
+
export type CircleMarkElementProps = Omit<MarkElementOwnerState, 'isFaded' | 'isHighlighted'> & Omit<React.SVGProps<SVGPathElement>, 'ref'> & {
|
|
4
4
|
/**
|
|
5
5
|
* If `true`, the marker is hidden.
|
|
6
6
|
* @default false
|
|
@@ -16,7 +16,7 @@ var _animation = require("../internals/animation/animation");
|
|
|
16
16
|
var _useInteractionItemProps = require("../hooks/useInteractionItemProps");
|
|
17
17
|
var _markElementClasses = require("./markElementClasses");
|
|
18
18
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
19
|
-
const _excluded = ["x", "y", "
|
|
19
|
+
const _excluded = ["x", "y", "seriesId", "classes", "color", "dataIndex", "onClick", "skipAnimation", "isFaded", "isHighlighted", "shape", "hidden"];
|
|
20
20
|
const Circle = (0, _styles.styled)('circle', {
|
|
21
21
|
slot: 'internal',
|
|
22
22
|
shouldForwardProp: undefined
|
|
@@ -44,7 +44,7 @@ function CircleMarkElement(props) {
|
|
|
44
44
|
const {
|
|
45
45
|
x,
|
|
46
46
|
y,
|
|
47
|
-
|
|
47
|
+
seriesId,
|
|
48
48
|
classes: innerClasses,
|
|
49
49
|
color,
|
|
50
50
|
dataIndex,
|
|
@@ -61,11 +61,11 @@ function CircleMarkElement(props) {
|
|
|
61
61
|
const theme = (0, _styles.useTheme)();
|
|
62
62
|
const interactionProps = (0, _useInteractionItemProps.useInteractionItemProps)({
|
|
63
63
|
type: 'line',
|
|
64
|
-
seriesId
|
|
64
|
+
seriesId,
|
|
65
65
|
dataIndex
|
|
66
66
|
});
|
|
67
67
|
const ownerState = {
|
|
68
|
-
|
|
68
|
+
seriesId,
|
|
69
69
|
classes: innerClasses,
|
|
70
70
|
isHighlighted,
|
|
71
71
|
isFaded,
|
|
@@ -99,7 +99,7 @@ process.env.NODE_ENV !== "production" ? CircleMarkElement.propTypes = {
|
|
|
99
99
|
* The index to the element in the series' data array.
|
|
100
100
|
*/
|
|
101
101
|
dataIndex: _propTypes.default.number.isRequired,
|
|
102
|
-
|
|
102
|
+
seriesId: _propTypes.default.string.isRequired,
|
|
103
103
|
/**
|
|
104
104
|
* The shape of the marker.
|
|
105
105
|
*/
|
package/LineChart/LineChart.d.ts
CHANGED
|
@@ -86,5 +86,5 @@ export interface LineChartProps extends Omit<ChartContainerProps<'line', LineCha
|
|
|
86
86
|
*
|
|
87
87
|
* - [LineChart API](https://mui.com/x/api/charts/line-chart/)
|
|
88
88
|
*/
|
|
89
|
-
declare const LineChart: React.ForwardRefExoticComponent<LineChartProps & React.RefAttributes<
|
|
89
|
+
declare const LineChart: React.ForwardRefExoticComponent<LineChartProps & React.RefAttributes<HTMLDivElement>>;
|
|
90
90
|
export { LineChart };
|
package/LineChart/LineChart.js
CHANGED
|
@@ -63,11 +63,12 @@ const LineChart = exports.LineChart = /*#__PURE__*/React.forwardRef(function Lin
|
|
|
63
63
|
const {
|
|
64
64
|
chartDataProviderProps,
|
|
65
65
|
chartsSurfaceProps
|
|
66
|
-
} = (0, _useChartContainerProps.useChartContainerProps)(chartContainerProps
|
|
66
|
+
} = (0, _useChartContainerProps.useChartContainerProps)(chartContainerProps);
|
|
67
67
|
const Tooltip = props.slots?.tooltip ?? _ChartsTooltip.ChartsTooltip;
|
|
68
68
|
const Toolbar = props.slots?.toolbar;
|
|
69
69
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartDataProvider.ChartDataProvider, (0, _extends2.default)({}, chartDataProviderProps, {
|
|
70
70
|
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_ChartsWrapper.ChartsWrapper, (0, _extends2.default)({}, chartsWrapperProps, {
|
|
71
|
+
ref: ref,
|
|
71
72
|
children: [props.showToolbar && Toolbar ? /*#__PURE__*/(0, _jsxRuntime.jsx)(Toolbar, (0, _extends2.default)({}, props.slotProps?.toolbar)) : null, !props.hideLegend && /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsLegend.ChartsLegend, (0, _extends2.default)({}, legendProps)), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_ChartsSurface.ChartsSurface, (0, _extends2.default)({}, chartsSurfaceProps, {
|
|
72
73
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsGrid.ChartsGrid, (0, _extends2.default)({}, gridProps)), /*#__PURE__*/(0, _jsxRuntime.jsxs)("g", (0, _extends2.default)({}, clipPathGroupProps, {
|
|
73
74
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_AreaPlot.AreaPlot, (0, _extends2.default)({}, areaPlotProps)), /*#__PURE__*/(0, _jsxRuntime.jsx)(_LinePlot.LinePlot, (0, _extends2.default)({}, linePlotProps)), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsOverlay.ChartsOverlay, (0, _extends2.default)({}, overlayProps)), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsAxisHighlight.ChartsAxisHighlight, (0, _extends2.default)({}, axisHighlightProps))]
|
|
@@ -88,6 +89,11 @@ process.env.NODE_ENV !== "production" ? LineChart.propTypes = {
|
|
|
88
89
|
apiRef: _propTypes.default.shape({
|
|
89
90
|
current: _propTypes.default.object
|
|
90
91
|
}),
|
|
92
|
+
/**
|
|
93
|
+
* A gap added between axes when multiple axes are rendered on the same side of the chart.
|
|
94
|
+
* @default 0
|
|
95
|
+
*/
|
|
96
|
+
axesGap: _propTypes.default.number,
|
|
91
97
|
/**
|
|
92
98
|
* The configuration of axes highlight.
|
|
93
99
|
* @see See {@link https://mui.com/x/react-charts/highlighting/ highlighting docs} for more details.
|
|
@@ -167,8 +173,8 @@ process.env.NODE_ENV !== "production" ? LineChart.propTypes = {
|
|
|
167
173
|
*/
|
|
168
174
|
hiddenItems: _propTypes.default.arrayOf(_propTypes.default.shape({
|
|
169
175
|
dataIndex: _propTypes.default.number,
|
|
170
|
-
seriesId: _propTypes.default.
|
|
171
|
-
type: _propTypes.default.oneOf(['line'])
|
|
176
|
+
seriesId: _propTypes.default.string.isRequired,
|
|
177
|
+
type: _propTypes.default.oneOf(['line'])
|
|
172
178
|
})),
|
|
173
179
|
/**
|
|
174
180
|
* If `true`, the legend is not rendered.
|
|
@@ -188,7 +194,7 @@ process.env.NODE_ENV !== "production" ? LineChart.propTypes = {
|
|
|
188
194
|
*/
|
|
189
195
|
highlightedItem: _propTypes.default.shape({
|
|
190
196
|
dataIndex: _propTypes.default.number,
|
|
191
|
-
seriesId: _propTypes.default.
|
|
197
|
+
seriesId: _propTypes.default.string.isRequired
|
|
192
198
|
}),
|
|
193
199
|
/**
|
|
194
200
|
* This prop is used to help implement the accessibility logic.
|
|
@@ -218,8 +224,8 @@ process.env.NODE_ENV !== "production" ? LineChart.propTypes = {
|
|
|
218
224
|
*/
|
|
219
225
|
initialHiddenItems: _propTypes.default.arrayOf(_propTypes.default.shape({
|
|
220
226
|
dataIndex: _propTypes.default.number,
|
|
221
|
-
seriesId: _propTypes.default.
|
|
222
|
-
type: _propTypes.default.oneOf(['line'])
|
|
227
|
+
seriesId: _propTypes.default.string.isRequired,
|
|
228
|
+
type: _propTypes.default.oneOf(['line'])
|
|
223
229
|
})),
|
|
224
230
|
/**
|
|
225
231
|
* If `true`, a loading overlay is displayed.
|
|
@@ -280,6 +286,14 @@ process.env.NODE_ENV !== "production" ? LineChart.propTypes = {
|
|
|
280
286
|
* Callback fired when a mark element is clicked.
|
|
281
287
|
*/
|
|
282
288
|
onMarkClick: _propTypes.default.func,
|
|
289
|
+
/**
|
|
290
|
+
* The function called when the pointer position corresponds to a new axis data item.
|
|
291
|
+
* This update can either be caused by a pointer movement, or an axis update.
|
|
292
|
+
* In case of multiple axes, the function is called if at least one axis is updated.
|
|
293
|
+
* The argument contains the identifier for all axes with a `data` property.
|
|
294
|
+
* @param {AxisItemIdentifier[]} axisItems The array of axes item identifiers.
|
|
295
|
+
*/
|
|
296
|
+
onTooltipAxisChange: _propTypes.default.func,
|
|
283
297
|
/**
|
|
284
298
|
* The callback fired when the tooltip item changes.
|
|
285
299
|
*
|
|
@@ -314,14 +328,22 @@ process.env.NODE_ENV !== "production" ? LineChart.propTypes = {
|
|
|
314
328
|
sx: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object, _propTypes.default.bool])), _propTypes.default.func, _propTypes.default.object]),
|
|
315
329
|
theme: _propTypes.default.oneOf(['dark', 'light']),
|
|
316
330
|
title: _propTypes.default.string,
|
|
331
|
+
/**
|
|
332
|
+
* The controlled axis tooltip.
|
|
333
|
+
* Identified by the axis id, and data index.
|
|
334
|
+
*/
|
|
335
|
+
tooltipAxis: _propTypes.default.arrayOf(_propTypes.default.shape({
|
|
336
|
+
axisId: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string]).isRequired,
|
|
337
|
+
dataIndex: _propTypes.default.number.isRequired
|
|
338
|
+
})),
|
|
317
339
|
/**
|
|
318
340
|
* The tooltip item.
|
|
319
341
|
* Used when the tooltip is controlled.
|
|
320
342
|
*/
|
|
321
343
|
tooltipItem: _propTypes.default.shape({
|
|
322
344
|
dataIndex: _propTypes.default.number,
|
|
323
|
-
seriesId: _propTypes.default.
|
|
324
|
-
type: _propTypes.default.oneOf(['line'])
|
|
345
|
+
seriesId: _propTypes.default.string.isRequired,
|
|
346
|
+
type: _propTypes.default.oneOf(['line'])
|
|
325
347
|
}),
|
|
326
348
|
/**
|
|
327
349
|
* The width of the chart in px. If not defined, it takes the width of the parent element.
|
|
@@ -17,7 +17,7 @@ export interface LineElementClasses {
|
|
|
17
17
|
}
|
|
18
18
|
export type LineElementClassKey = keyof LineElementClasses;
|
|
19
19
|
export interface LineElementOwnerState {
|
|
20
|
-
|
|
20
|
+
seriesId: SeriesId;
|
|
21
21
|
color: string;
|
|
22
22
|
gradientId?: string;
|
|
23
23
|
isFaded: boolean;
|
|
@@ -38,7 +38,7 @@ export interface LineElementSlots {
|
|
|
38
38
|
export interface LineElementSlotProps {
|
|
39
39
|
line?: SlotComponentPropsFromProps<AnimatedLineProps, {}, LineElementOwnerState>;
|
|
40
40
|
}
|
|
41
|
-
export interface LineElementProps extends Omit<LineElementOwnerState, 'isFaded' | 'isHighlighted'>, Pick<AnimatedLineProps, 'skipAnimation'>, Omit<React.SVGProps<SVGPathElement>, 'ref' | 'color'
|
|
41
|
+
export interface LineElementProps extends Omit<LineElementOwnerState, 'isFaded' | 'isHighlighted'>, Pick<AnimatedLineProps, 'skipAnimation'>, Omit<React.SVGProps<SVGPathElement>, 'ref' | 'color'> {
|
|
42
42
|
d: string;
|
|
43
43
|
/** If `true`, the line is hidden. */
|
|
44
44
|
hidden?: boolean;
|
package/LineChart/LineElement.js
CHANGED
|
@@ -21,7 +21,7 @@ var _useInteractionItemProps = require("../hooks/useInteractionItemProps");
|
|
|
21
21
|
var _AnimatedLine = require("./AnimatedLine");
|
|
22
22
|
var _useItemHighlighted = require("../hooks/useItemHighlighted");
|
|
23
23
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
24
|
-
const _excluded = ["
|
|
24
|
+
const _excluded = ["seriesId", "classes", "color", "gradientId", "slots", "slotProps", "onClick", "hidden"];
|
|
25
25
|
function getLineElementUtilityClass(slot) {
|
|
26
26
|
return (0, _generateUtilityClass.default)('MuiLineElement', slot);
|
|
27
27
|
}
|
|
@@ -29,12 +29,12 @@ const lineElementClasses = exports.lineElementClasses = (0, _generateUtilityClas
|
|
|
29
29
|
const useUtilityClasses = ownerState => {
|
|
30
30
|
const {
|
|
31
31
|
classes,
|
|
32
|
-
|
|
32
|
+
seriesId,
|
|
33
33
|
isFaded,
|
|
34
34
|
isHighlighted
|
|
35
35
|
} = ownerState;
|
|
36
36
|
const slots = {
|
|
37
|
-
root: ['root', `series-${
|
|
37
|
+
root: ['root', `series-${seriesId}`, isHighlighted && 'highlighted', isFaded && 'faded']
|
|
38
38
|
};
|
|
39
39
|
return (0, _composeClasses.default)(slots, getLineElementUtilityClass, classes);
|
|
40
40
|
};
|
|
@@ -50,7 +50,7 @@ const useUtilityClasses = ownerState => {
|
|
|
50
50
|
*/
|
|
51
51
|
function LineElement(props) {
|
|
52
52
|
const {
|
|
53
|
-
|
|
53
|
+
seriesId,
|
|
54
54
|
classes: innerClasses,
|
|
55
55
|
color,
|
|
56
56
|
gradientId,
|
|
@@ -62,16 +62,16 @@ function LineElement(props) {
|
|
|
62
62
|
other = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded);
|
|
63
63
|
const interactionProps = (0, _useInteractionItemProps.useInteractionItemProps)({
|
|
64
64
|
type: 'line',
|
|
65
|
-
seriesId
|
|
65
|
+
seriesId
|
|
66
66
|
});
|
|
67
67
|
const {
|
|
68
68
|
isFaded,
|
|
69
69
|
isHighlighted
|
|
70
70
|
} = (0, _useItemHighlighted.useItemHighlighted)({
|
|
71
|
-
seriesId
|
|
71
|
+
seriesId
|
|
72
72
|
});
|
|
73
73
|
const ownerState = {
|
|
74
|
-
|
|
74
|
+
seriesId,
|
|
75
75
|
classes: innerClasses,
|
|
76
76
|
color,
|
|
77
77
|
gradientId,
|
|
@@ -104,7 +104,7 @@ process.env.NODE_ENV !== "production" ? LineElement.propTypes = {
|
|
|
104
104
|
gradientId: _propTypes.default.string,
|
|
105
105
|
/** If `true`, the line is hidden. */
|
|
106
106
|
hidden: _propTypes.default.bool,
|
|
107
|
-
|
|
107
|
+
seriesId: _propTypes.default.string.isRequired,
|
|
108
108
|
/**
|
|
109
109
|
* If `true`, animations are skipped.
|
|
110
110
|
* @default false
|
|
@@ -6,7 +6,7 @@ export interface LineHighlightElementClasses {
|
|
|
6
6
|
}
|
|
7
7
|
export type HighlightElementClassKey = keyof LineHighlightElementClasses;
|
|
8
8
|
interface LineHighlightElementCommonProps {
|
|
9
|
-
|
|
9
|
+
seriesId: SeriesId;
|
|
10
10
|
color: string;
|
|
11
11
|
x: number;
|
|
12
12
|
y: number;
|
|
@@ -14,11 +14,11 @@ interface LineHighlightElementCommonProps {
|
|
|
14
14
|
}
|
|
15
15
|
export declare function getHighlightElementUtilityClass(slot: string): string;
|
|
16
16
|
export declare const lineHighlightElementClasses: LineHighlightElementClasses;
|
|
17
|
-
export type LineHighlightElementProps = (LineHighlightElementCommonProps &
|
|
17
|
+
export type LineHighlightElementProps = (LineHighlightElementCommonProps & {
|
|
18
18
|
shape: 'circle';
|
|
19
|
-
} & Omit<React.SVGProps<SVGCircleElement>, 'ref'
|
|
19
|
+
} & Omit<React.SVGProps<SVGCircleElement>, 'ref'>) | (LineHighlightElementCommonProps & {
|
|
20
20
|
shape: 'cross' | 'diamond' | 'square' | 'star' | 'triangle' | 'wye';
|
|
21
|
-
} & Omit<React.SVGProps<SVGPathElement>, 'ref'
|
|
21
|
+
} & Omit<React.SVGProps<SVGPathElement>, 'ref'>);
|
|
22
22
|
/**
|
|
23
23
|
* Demos:
|
|
24
24
|
*
|
|
@@ -20,7 +20,7 @@ var _generateUtilityClass = _interopRequireDefault(require("@mui/utils/generateU
|
|
|
20
20
|
var _generateUtilityClasses = _interopRequireDefault(require("@mui/utils/generateUtilityClasses"));
|
|
21
21
|
var _getSymbol = require("../internals/getSymbol");
|
|
22
22
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
23
|
-
const _excluded = ["x", "y", "
|
|
23
|
+
const _excluded = ["x", "y", "seriesId", "classes", "color", "shape"];
|
|
24
24
|
function getHighlightElementUtilityClass(slot) {
|
|
25
25
|
return (0, _generateUtilityClass.default)('MuiHighlightElement', slot);
|
|
26
26
|
}
|
|
@@ -28,10 +28,10 @@ const lineHighlightElementClasses = exports.lineHighlightElementClasses = (0, _g
|
|
|
28
28
|
const useUtilityClasses = ownerState => {
|
|
29
29
|
const {
|
|
30
30
|
classes,
|
|
31
|
-
|
|
31
|
+
seriesId
|
|
32
32
|
} = ownerState;
|
|
33
33
|
const slots = {
|
|
34
|
-
root: ['root', `series-${
|
|
34
|
+
root: ['root', `series-${seriesId}`]
|
|
35
35
|
};
|
|
36
36
|
return (0, _composeClasses.default)(slots, getHighlightElementUtilityClass, classes);
|
|
37
37
|
};
|
|
@@ -82,6 +82,6 @@ process.env.NODE_ENV !== "production" ? LineHighlightElement.propTypes = {
|
|
|
82
82
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
83
83
|
// ----------------------------------------------------------------------
|
|
84
84
|
classes: _propTypes.default.object,
|
|
85
|
-
|
|
85
|
+
seriesId: _propTypes.default.string.isRequired,
|
|
86
86
|
shape: _propTypes.default.oneOf(['circle', 'cross', 'diamond', 'square', 'star', 'triangle', 'wye']).isRequired
|
|
87
87
|
} : void 0;
|
|
@@ -13,7 +13,7 @@ var React = _interopRequireWildcard(require("react"));
|
|
|
13
13
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
14
14
|
var _useStore = require("../internals/store/useStore");
|
|
15
15
|
var _LineHighlightElement = require("./LineHighlightElement");
|
|
16
|
-
var
|
|
16
|
+
var _getValueToPositionMapper = require("../hooks/getValueToPositionMapper");
|
|
17
17
|
var _constants = require("../constants");
|
|
18
18
|
var _useLineSeries = require("../hooks/useLineSeries");
|
|
19
19
|
var _getColor = _interopRequireDefault(require("./seriesConfig/getColor"));
|
|
@@ -87,7 +87,7 @@ function LineHighlightPlot(props) {
|
|
|
87
87
|
if (highlightedAxisId !== xAxisId) {
|
|
88
88
|
return null;
|
|
89
89
|
}
|
|
90
|
-
const xScale = (0,
|
|
90
|
+
const xScale = (0, _getValueToPositionMapper.getValueToPositionMapper)(xAxis[xAxisId].scale);
|
|
91
91
|
const yScale = yAxis[yAxisId].scale;
|
|
92
92
|
const xData = xAxis[xAxisId].data;
|
|
93
93
|
if (xData === undefined) {
|
|
@@ -101,7 +101,7 @@ function LineHighlightPlot(props) {
|
|
|
101
101
|
}
|
|
102
102
|
const colorGetter = (0, _getColor.default)(series[seriesId], xAxis[xAxisId], yAxis[yAxisId]);
|
|
103
103
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(Element, (0, _extends2.default)({
|
|
104
|
-
|
|
104
|
+
seriesId: seriesId,
|
|
105
105
|
color: colorGetter(highlightedIndex),
|
|
106
106
|
x: x,
|
|
107
107
|
y: y,
|
package/LineChart/LinePlot.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { type MarkElementOwnerState } from "./markElementClasses.js";
|
|
3
|
-
export type MarkElementProps = Omit<MarkElementOwnerState, 'isFaded' | 'isHighlighted'> & Omit<React.SVGProps<SVGPathElement>, 'ref'
|
|
3
|
+
export type MarkElementProps = Omit<MarkElementOwnerState, 'isFaded' | 'isHighlighted'> & Omit<React.SVGProps<SVGPathElement>, 'ref'> & {
|
|
4
4
|
/**
|
|
5
5
|
* If `true`, the marker is hidden.
|
|
6
6
|
* @default false
|
package/LineChart/MarkElement.js
CHANGED
|
@@ -18,7 +18,7 @@ var _getSymbol = require("../internals/getSymbol");
|
|
|
18
18
|
var _useInteractionItemProps = require("../hooks/useInteractionItemProps");
|
|
19
19
|
var _markElementClasses = require("./markElementClasses");
|
|
20
20
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
21
|
-
const _excluded = ["x", "y", "
|
|
21
|
+
const _excluded = ["x", "y", "seriesId", "classes", "color", "shape", "dataIndex", "onClick", "skipAnimation", "isFaded", "isHighlighted", "hidden", "style"];
|
|
22
22
|
const MarkElementPath = (0, _styles.styled)('path', {
|
|
23
23
|
name: 'MuiMarkElement',
|
|
24
24
|
slot: 'Root'
|
|
@@ -46,7 +46,7 @@ function MarkElement(props) {
|
|
|
46
46
|
const {
|
|
47
47
|
x,
|
|
48
48
|
y,
|
|
49
|
-
|
|
49
|
+
seriesId,
|
|
50
50
|
classes: innerClasses,
|
|
51
51
|
color,
|
|
52
52
|
shape,
|
|
@@ -61,11 +61,11 @@ function MarkElement(props) {
|
|
|
61
61
|
other = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded);
|
|
62
62
|
const interactionProps = (0, _useInteractionItemProps.useInteractionItemProps)({
|
|
63
63
|
type: 'line',
|
|
64
|
-
seriesId
|
|
64
|
+
seriesId,
|
|
65
65
|
dataIndex
|
|
66
66
|
});
|
|
67
67
|
const ownerState = {
|
|
68
|
-
|
|
68
|
+
seriesId,
|
|
69
69
|
classes: innerClasses,
|
|
70
70
|
isHighlighted,
|
|
71
71
|
isFaded,
|
|
@@ -106,7 +106,7 @@ process.env.NODE_ENV !== "production" ? MarkElement.propTypes = {
|
|
|
106
106
|
* @default false
|
|
107
107
|
*/
|
|
108
108
|
hidden: _propTypes.default.bool,
|
|
109
|
-
|
|
109
|
+
seriesId: _propTypes.default.string.isRequired,
|
|
110
110
|
/**
|
|
111
111
|
* If `true`, the marker is faded.
|
|
112
112
|
* @default false
|
package/LineChart/MarkPlot.js
CHANGED
|
@@ -16,7 +16,7 @@ export interface MarkElementClasses {
|
|
|
16
16
|
}
|
|
17
17
|
export type MarkElementClassKey = keyof MarkElementClasses;
|
|
18
18
|
export interface MarkElementOwnerState {
|
|
19
|
-
|
|
19
|
+
seriesId: SeriesId;
|
|
20
20
|
isFaded: boolean;
|
|
21
21
|
isHighlighted: boolean;
|
|
22
22
|
classes?: Partial<MarkElementClasses>;
|
|
@@ -16,13 +16,13 @@ const markElementClasses = exports.markElementClasses = (0, _generateUtilityClas
|
|
|
16
16
|
const useUtilityClasses = ownerState => {
|
|
17
17
|
const {
|
|
18
18
|
classes,
|
|
19
|
-
|
|
19
|
+
seriesId,
|
|
20
20
|
isFaded,
|
|
21
21
|
isHighlighted,
|
|
22
22
|
skipAnimation
|
|
23
23
|
} = ownerState;
|
|
24
24
|
const slots = {
|
|
25
|
-
root: ['root', `series-${
|
|
25
|
+
root: ['root', `series-${seriesId}`, isHighlighted && 'highlighted', isFaded && 'faded', skipAnimation ? undefined : 'animate']
|
|
26
26
|
};
|
|
27
27
|
return (0, _composeClasses.default)(slots, getMarkElementUtilityClass, classes);
|
|
28
28
|
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { type CartesianExtremumGetter } from "../../internals/plugins/
|
|
1
|
+
import { type CartesianExtremumGetter } from "../../internals/plugins/corePlugins/useChartSeriesConfig/index.js";
|
|
2
2
|
export declare const getExtremumX: CartesianExtremumGetter<'line'>;
|
|
3
3
|
export declare const getExtremumY: CartesianExtremumGetter<'line'>;
|