@mui/x-charts 9.0.0-alpha.3 → 9.0.0-beta.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.d.mts +2 -2
- package/BarChart/BarChart.d.ts +2 -2
- package/BarChart/BarChart.js +55 -34
- package/BarChart/BarChart.mjs +55 -34
- package/BarChart/BarElement.js +4 -8
- package/BarChart/BarElement.mjs +4 -8
- package/BarChart/BarLabel/BarLabel.js +1 -11
- package/BarChart/BarLabel/BarLabel.mjs +1 -11
- package/BarChart/BarLabel/BarLabelItem.js +1 -3
- package/BarChart/BarLabel/BarLabelItem.mjs +1 -3
- package/BarChart/BarLabel/BarLabelPlot.d.mts +0 -2
- package/BarChart/BarLabel/BarLabelPlot.d.ts +0 -2
- package/BarChart/BarLabel/BarLabelPlot.js +2 -3
- package/BarChart/BarLabel/BarLabelPlot.mjs +2 -3
- package/BarChart/BarLabel/index.d.mts +1 -3
- package/BarChart/BarLabel/index.d.ts +1 -3
- package/BarChart/BarLabel/index.js +1 -14
- package/BarChart/BarLabel/index.mjs +1 -2
- package/BarChart/BarPlot.d.mts +6 -12
- package/BarChart/BarPlot.d.ts +6 -12
- package/BarChart/BarPlot.js +11 -19
- package/BarChart/BarPlot.mjs +11 -19
- package/BarChart/BatchBarPlot/BatchBarPlot.js +3 -30
- package/BarChart/BatchBarPlot/BatchBarPlot.mjs +3 -30
- package/BarChart/IndividualBarPlot.d.mts +1 -2
- package/BarChart/IndividualBarPlot.d.ts +1 -2
- package/BarChart/IndividualBarPlot.js +5 -10
- package/BarChart/IndividualBarPlot.mjs +5 -10
- package/BarChart/index.d.mts +0 -1
- package/BarChart/index.d.ts +0 -1
- package/BarChart/index.js +0 -12
- package/BarChart/index.mjs +0 -1
- package/BarChart/seriesConfig/bar/descriptionGetter.d.mts +3 -0
- package/BarChart/seriesConfig/bar/descriptionGetter.d.ts +3 -0
- package/BarChart/seriesConfig/bar/descriptionGetter.js +36 -0
- package/BarChart/seriesConfig/bar/descriptionGetter.mjs +30 -0
- package/BarChart/seriesConfig/bar/legend.js +2 -21
- package/BarChart/seriesConfig/bar/legend.mjs +2 -21
- package/BarChart/seriesConfig/index.js +5 -1
- package/BarChart/seriesConfig/index.mjs +5 -1
- package/BarChart/useBarChartProps.d.mts +2 -2
- package/BarChart/useBarChartProps.d.ts +2 -2
- package/BarChart/useBarChartProps.js +4 -6
- package/BarChart/useBarChartProps.mjs +4 -6
- package/BarChart/useRegisterItemClickHandlers.js +2 -2
- package/BarChart/useRegisterItemClickHandlers.mjs +2 -2
- package/CHANGELOG.md +229 -0
- package/ChartsAxis/index.d.mts +2 -1
- package/ChartsAxis/index.d.ts +2 -1
- package/ChartsAxis/index.js +11 -11
- package/ChartsAxis/index.mjs +1 -1
- package/ChartsAxisHighlight/index.d.mts +2 -1
- package/ChartsAxisHighlight/index.d.ts +2 -1
- package/ChartsAxisHighlight/index.js +12 -10
- package/ChartsAxisHighlight/index.mjs +1 -1
- package/ChartsBrushOverlay/ChartsBrushOverlay.d.mts +6 -1
- package/ChartsBrushOverlay/ChartsBrushOverlay.d.ts +6 -1
- package/ChartsBrushOverlay/ChartsBrushOverlay.js +12 -9
- package/ChartsBrushOverlay/ChartsBrushOverlay.mjs +12 -9
- package/ChartsContainer/ChartsContainer.js +77 -43
- package/ChartsContainer/ChartsContainer.mjs +77 -43
- package/ChartsContainer/useChartsContainerProps.d.mts +2 -2
- package/ChartsContainer/useChartsContainerProps.d.ts +2 -2
- package/ChartsContainer/useChartsContainerProps.js +8 -8
- package/ChartsContainer/useChartsContainerProps.mjs +8 -8
- package/ChartsDataProvider/ChartsDataProvider.js +0 -6
- package/ChartsDataProvider/ChartsDataProvider.mjs +0 -6
- package/ChartsDataProvider/useChartsDataProviderProps.js +1 -1
- package/ChartsDataProvider/useChartsDataProviderProps.mjs +1 -1
- package/ChartsGrid/ChartsGrid.d.mts +4 -0
- package/ChartsGrid/ChartsGrid.d.ts +4 -0
- package/ChartsGrid/ChartsGrid.js +4 -2
- package/ChartsGrid/ChartsGrid.mjs +4 -2
- package/ChartsGrid/ChartsHorizontalGrid.js +2 -2
- package/ChartsGrid/ChartsHorizontalGrid.mjs +2 -2
- package/ChartsGrid/ChartsVerticalGrid.js +2 -2
- package/ChartsGrid/ChartsVerticalGrid.mjs +2 -2
- package/ChartsGrid/index.d.mts +2 -1
- package/ChartsGrid/index.d.ts +2 -1
- package/ChartsGrid/index.js +11 -11
- package/ChartsGrid/index.mjs +1 -1
- package/ChartsLayerContainer/ChartsLayerContainer.d.mts +10 -0
- package/ChartsLayerContainer/ChartsLayerContainer.d.ts +10 -0
- package/ChartsLayerContainer/ChartsLayerContainer.js +53 -9
- package/ChartsLayerContainer/ChartsLayerContainer.mjs +55 -10
- package/ChartsLayerContainer/chartsLayerContainerClasses.d.mts +6 -0
- package/ChartsLayerContainer/chartsLayerContainerClasses.d.ts +6 -0
- package/ChartsLayerContainer/chartsLayerContainerClasses.js +21 -0
- package/ChartsLayerContainer/chartsLayerContainerClasses.mjs +13 -0
- package/ChartsLegend/ChartsLegend.js +2 -2
- package/ChartsLegend/ChartsLegend.mjs +2 -2
- package/ChartsLegend/legendContext.types.d.mts +0 -6
- package/ChartsLegend/legendContext.types.d.ts +0 -6
- package/ChartsLegend/onClickContextBuilder.js +0 -1
- package/ChartsLegend/onClickContextBuilder.mjs +0 -1
- package/ChartsOverlay/ChartsLoadingOverlay.js +2 -8
- package/ChartsOverlay/ChartsLoadingOverlay.mjs +2 -8
- package/ChartsOverlay/ChartsNoDataOverlay.js +2 -8
- package/ChartsOverlay/ChartsNoDataOverlay.mjs +2 -8
- package/ChartsOverlay/ChartsOverlay.d.mts +0 -6
- package/ChartsOverlay/ChartsOverlay.d.ts +0 -6
- package/ChartsReferenceLine/index.d.mts +2 -1
- package/ChartsReferenceLine/index.d.ts +2 -1
- package/ChartsReferenceLine/index.js +11 -11
- package/ChartsReferenceLine/index.mjs +1 -2
- package/ChartsSurface/ChartsSurface.d.mts +2 -3
- package/ChartsSurface/ChartsSurface.d.ts +2 -3
- package/ChartsSurface/ChartsSurface.js +14 -2
- package/ChartsSurface/ChartsSurface.mjs +14 -2
- package/ChartsSvgLayer/ChartsSvgLayer.d.mts +0 -4
- package/ChartsSvgLayer/ChartsSvgLayer.d.ts +0 -4
- package/ChartsSvgLayer/ChartsSvgLayer.js +8 -30
- package/ChartsSvgLayer/ChartsSvgLayer.mjs +8 -30
- package/ChartsTooltip/ChartsAxisTooltipContent.js +45 -31
- package/ChartsTooltip/ChartsAxisTooltipContent.mjs +45 -31
- package/ChartsTooltip/ChartsItemTooltipContent.js +77 -41
- package/ChartsTooltip/ChartsItemTooltipContent.mjs +76 -41
- package/ChartsTooltip/ChartsTooltipContainer.js +5 -1
- package/ChartsTooltip/ChartsTooltipContainer.mjs +5 -1
- package/ChartsTooltip/index.d.mts +1 -2
- package/ChartsTooltip/index.d.ts +1 -2
- package/ChartsTooltip/index.js +1 -16
- package/ChartsTooltip/index.mjs +1 -2
- package/ChartsTooltip/useAxesTooltip.d.mts +2 -3
- package/ChartsTooltip/useAxesTooltip.d.ts +2 -3
- package/ChartsTooltip/useItemTooltip.d.mts +2 -4
- package/ChartsTooltip/useItemTooltip.d.ts +2 -4
- package/ChartsTooltip/utils.d.mts +0 -4
- package/ChartsTooltip/utils.d.ts +0 -4
- package/ChartsTooltip/utils.js +0 -39
- package/ChartsTooltip/utils.mjs +0 -38
- package/ChartsXAxis/ChartsGroupedXAxisTicks.js +14 -5
- package/ChartsXAxis/ChartsGroupedXAxisTicks.mjs +14 -5
- package/ChartsXAxis/ChartsSingleXAxisTicks.js +2 -2
- package/ChartsXAxis/ChartsSingleXAxisTicks.mjs +2 -2
- package/ChartsXAxis/ChartsXAxisImpl.js +3 -1
- package/ChartsXAxis/ChartsXAxisImpl.mjs +3 -1
- package/ChartsXAxis/useAxisTicksProps.d.mts +170 -89
- package/ChartsXAxis/useAxisTicksProps.d.ts +170 -89
- package/ChartsYAxis/ChartsGroupedYAxisTicks.js +14 -5
- package/ChartsYAxis/ChartsGroupedYAxisTicks.mjs +14 -5
- package/ChartsYAxis/ChartsSingleYAxisTicks.js +2 -2
- package/ChartsYAxis/ChartsSingleYAxisTicks.mjs +2 -2
- package/ChartsYAxis/ChartsYAxisImpl.js +3 -1
- package/ChartsYAxis/ChartsYAxisImpl.mjs +3 -1
- package/ChartsYAxis/useAxisTicksProps.d.mts +170 -89
- package/ChartsYAxis/useAxisTicksProps.d.ts +170 -89
- package/Gauge/Gauge.js +8 -0
- package/Gauge/Gauge.mjs +8 -0
- package/Gauge/GaugeContainer.d.mts +1 -1
- package/Gauge/GaugeContainer.d.ts +1 -1
- package/Gauge/GaugeContainer.js +10 -2
- package/Gauge/GaugeContainer.mjs +10 -2
- package/Gauge/index.d.mts +2 -1
- package/Gauge/index.d.ts +2 -1
- package/Gauge/index.js +7 -11
- package/Gauge/index.mjs +1 -1
- package/LineChart/AreaElement.d.mts +2 -35
- package/LineChart/AreaElement.d.ts +2 -35
- package/LineChart/AreaElement.js +8 -42
- package/LineChart/AreaElement.mjs +8 -42
- package/LineChart/CircleMarkElement.d.mts +1 -1
- package/LineChart/CircleMarkElement.d.ts +1 -1
- package/LineChart/CircleMarkElement.js +11 -16
- package/LineChart/CircleMarkElement.mjs +12 -17
- package/LineChart/LineChart.d.mts +2 -2
- package/LineChart/LineChart.d.ts +2 -2
- package/LineChart/LineChart.js +51 -25
- package/LineChart/LineChart.mjs +51 -25
- package/LineChart/LineElement.d.mts +2 -35
- package/LineChart/LineElement.d.ts +2 -35
- package/LineChart/LineElement.js +8 -42
- package/LineChart/LineElement.mjs +8 -42
- package/LineChart/LineHighlightElement.d.mts +0 -20
- package/LineChart/LineHighlightElement.d.ts +0 -20
- package/LineChart/LineHighlightElement.js +2 -39
- package/LineChart/LineHighlightElement.mjs +2 -39
- package/LineChart/LineHighlightPlot.js +2 -2
- package/LineChart/LineHighlightPlot.mjs +2 -2
- package/LineChart/MarkElement.d.mts +1 -1
- package/LineChart/MarkElement.d.ts +1 -1
- package/LineChart/MarkElement.js +10 -8
- package/LineChart/MarkElement.mjs +11 -9
- package/LineChart/MarkPlot.js +2 -2
- package/LineChart/MarkPlot.mjs +2 -2
- package/LineChart/index.d.mts +0 -2
- package/LineChart/index.d.ts +0 -2
- package/LineChart/index.js +0 -15
- package/LineChart/index.mjs +0 -1
- package/LineChart/seriesConfig/curveEvaluation.d.mts +11 -0
- package/LineChart/seriesConfig/curveEvaluation.d.ts +11 -0
- package/LineChart/seriesConfig/curveEvaluation.js +134 -0
- package/LineChart/seriesConfig/curveEvaluation.mjs +129 -0
- package/LineChart/seriesConfig/descriptionGetter.d.mts +3 -0
- package/LineChart/seriesConfig/descriptionGetter.d.ts +3 -0
- package/LineChart/seriesConfig/descriptionGetter.js +37 -0
- package/LineChart/seriesConfig/descriptionGetter.mjs +31 -0
- package/LineChart/seriesConfig/getItemAtPosition.d.mts +7 -0
- package/LineChart/seriesConfig/getItemAtPosition.d.ts +7 -0
- package/LineChart/seriesConfig/getItemAtPosition.js +356 -0
- package/LineChart/seriesConfig/getItemAtPosition.mjs +351 -0
- package/LineChart/seriesConfig/index.js +4 -0
- package/LineChart/seriesConfig/index.mjs +4 -0
- package/LineChart/seriesConfig/seriesProcessor.js +8 -5
- package/LineChart/seriesConfig/seriesProcessor.mjs +8 -5
- package/LineChart/useLineChartProps.d.mts +2 -2
- package/LineChart/useLineChartProps.d.ts +2 -2
- package/LineChart/useLineChartProps.js +2 -2
- package/LineChart/useLineChartProps.mjs +2 -2
- package/LineChart/useMarkPlotData.js +2 -2
- package/LineChart/useMarkPlotData.mjs +2 -2
- package/PieChart/FocusedPieArc.js +1 -4
- package/PieChart/FocusedPieArc.mjs +2 -4
- package/PieChart/PieArc.d.mts +0 -37
- package/PieChart/PieArc.d.ts +0 -37
- package/PieChart/PieArc.js +5 -45
- package/PieChart/PieArc.mjs +5 -45
- package/PieChart/PieArcLabel.d.mts +2 -43
- package/PieChart/PieArcLabel.d.ts +2 -43
- package/PieChart/PieArcLabel.js +3 -46
- package/PieChart/PieArcLabel.mjs +5 -48
- package/PieChart/PieArcLabelPlot.js +0 -2
- package/PieChart/PieArcLabelPlot.mjs +0 -2
- package/PieChart/PieChart.d.mts +2 -2
- package/PieChart/PieChart.d.ts +2 -2
- package/PieChart/PieChart.js +17 -5
- package/PieChart/PieChart.mjs +17 -5
- package/PieChart/index.d.mts +1 -1
- package/PieChart/index.d.ts +1 -1
- package/PieChart/seriesConfig/descriptionGetter.d.mts +3 -0
- package/PieChart/seriesConfig/descriptionGetter.d.ts +3 -0
- package/PieChart/seriesConfig/descriptionGetter.js +26 -0
- package/PieChart/seriesConfig/descriptionGetter.mjs +20 -0
- package/PieChart/seriesConfig/index.js +2 -0
- package/PieChart/seriesConfig/index.mjs +2 -0
- package/PieChart/seriesConfig/legend.js +0 -2
- package/PieChart/seriesConfig/legend.mjs +0 -2
- package/RadarChart/RadarAxis/RadarAxis.d.mts +6 -2
- package/RadarChart/RadarAxis/RadarAxis.d.ts +6 -2
- package/RadarChart/RadarAxis/RadarAxis.js +7 -5
- package/RadarChart/RadarAxis/RadarAxis.mjs +6 -4
- package/RadarChart/RadarAxis/index.d.mts +1 -2
- package/RadarChart/RadarAxis/index.d.ts +1 -2
- package/RadarChart/RadarAxis/index.js +1 -13
- package/RadarChart/RadarAxis/index.mjs +1 -2
- package/RadarChart/RadarAxis/useRadarAxis.js +2 -2
- package/RadarChart/RadarAxis/useRadarAxis.mjs +2 -2
- package/RadarChart/RadarAxisHighlight/RadarAxisHighlight.d.mts +6 -2
- package/RadarChart/RadarAxisHighlight/RadarAxisHighlight.d.ts +6 -2
- package/RadarChart/RadarAxisHighlight/RadarAxisHighlight.js +9 -14
- package/RadarChart/RadarAxisHighlight/RadarAxisHighlight.mjs +8 -13
- package/RadarChart/RadarAxisHighlight/index.d.mts +1 -2
- package/RadarChart/RadarAxisHighlight/index.d.ts +1 -2
- package/RadarChart/RadarAxisHighlight/index.mjs +1 -2
- package/RadarChart/RadarAxisHighlight/useRadarAxisHighlight.js +2 -2
- package/RadarChart/RadarAxisHighlight/useRadarAxisHighlight.mjs +2 -2
- package/RadarChart/RadarChart.js +15 -0
- package/RadarChart/RadarChart.mjs +15 -0
- package/RadarChart/RadarDataProvider/RadarDataProvider.d.mts +2 -2
- package/RadarChart/RadarDataProvider/RadarDataProvider.d.ts +2 -2
- package/RadarChart/RadarDataProvider/RadarDataProvider.js +2 -2
- package/RadarChart/RadarDataProvider/RadarDataProvider.mjs +2 -2
- package/RadarChart/RadarGrid/CircularRadarGrid.js +2 -2
- package/RadarChart/RadarGrid/CircularRadarGrid.mjs +2 -2
- package/RadarChart/RadarGrid/CircularRadarStripes.js +1 -1
- package/RadarChart/RadarGrid/CircularRadarStripes.mjs +1 -1
- package/RadarChart/RadarGrid/RadarGrid.js +2 -2
- package/RadarChart/RadarGrid/RadarGrid.mjs +2 -2
- package/RadarChart/RadarGrid/RadarGrid.types.d.mts +6 -7
- package/RadarChart/RadarGrid/RadarGrid.types.d.ts +6 -7
- package/RadarChart/RadarGrid/SharpRadarGrid.js +2 -2
- package/RadarChart/RadarGrid/SharpRadarGrid.mjs +2 -2
- package/RadarChart/RadarGrid/SharpRadarStripes.js +1 -1
- package/RadarChart/RadarGrid/SharpRadarStripes.mjs +1 -1
- package/RadarChart/RadarGrid/index.d.mts +1 -2
- package/RadarChart/RadarGrid/index.d.ts +1 -2
- package/RadarChart/RadarGrid/useRadarGridData.js +2 -2
- package/RadarChart/RadarGrid/useRadarGridData.mjs +2 -2
- package/RadarChart/RadarSeriesPlot/RadarSeriesArea.d.mts +2 -2
- package/RadarChart/RadarSeriesPlot/RadarSeriesArea.d.ts +2 -2
- package/RadarChart/RadarSeriesPlot/RadarSeriesArea.js +6 -6
- package/RadarChart/RadarSeriesPlot/RadarSeriesArea.mjs +6 -6
- package/RadarChart/RadarSeriesPlot/RadarSeriesMarks.d.mts +13 -4
- package/RadarChart/RadarSeriesPlot/RadarSeriesMarks.d.ts +13 -4
- package/RadarChart/RadarSeriesPlot/RadarSeriesMarks.js +8 -6
- package/RadarChart/RadarSeriesPlot/RadarSeriesMarks.mjs +8 -6
- package/RadarChart/RadarSeriesPlot/RadarSeriesPlot.js +5 -3
- package/RadarChart/RadarSeriesPlot/RadarSeriesPlot.mjs +4 -2
- package/RadarChart/RadarSeriesPlot/RadarSeriesPlot.types.d.mts +6 -4
- package/RadarChart/RadarSeriesPlot/RadarSeriesPlot.types.d.ts +6 -4
- package/RadarChart/RadarSeriesPlot/index.d.mts +1 -3
- package/RadarChart/RadarSeriesPlot/index.d.ts +1 -3
- package/RadarChart/RadarSeriesPlot/index.js +2 -10
- package/RadarChart/RadarSeriesPlot/index.mjs +1 -2
- package/RadarChart/RadarSeriesPlot/useInteractionAllItemProps.js +2 -2
- package/RadarChart/RadarSeriesPlot/useInteractionAllItemProps.mjs +2 -2
- package/RadarChart/RadarSeriesPlot/useRadarSeriesData.js +2 -2
- package/RadarChart/RadarSeriesPlot/useRadarSeriesData.mjs +2 -2
- package/RadarChart/index.d.mts +3 -1
- package/RadarChart/index.d.ts +3 -1
- package/RadarChart/index.js +9 -1
- package/RadarChart/index.mjs +2 -1
- package/RadarChart/radarClasses.d.mts +30 -0
- package/RadarChart/radarClasses.d.ts +30 -0
- package/RadarChart/radarClasses.js +33 -0
- package/RadarChart/radarClasses.mjs +24 -0
- package/RadarChart/seriesConfig/descriptionGetter.d.mts +3 -0
- package/RadarChart/seriesConfig/descriptionGetter.d.ts +3 -0
- package/RadarChart/seriesConfig/descriptionGetter.js +37 -0
- package/RadarChart/seriesConfig/descriptionGetter.mjs +31 -0
- package/RadarChart/seriesConfig/index.js +2 -0
- package/RadarChart/seriesConfig/index.mjs +2 -0
- package/RadarChart/seriesConfig/legend.js +2 -21
- package/RadarChart/seriesConfig/legend.mjs +2 -21
- package/ScatterChart/BatchScatter.js +3 -3
- package/ScatterChart/BatchScatter.mjs +3 -3
- package/ScatterChart/Scatter.js +3 -3
- package/ScatterChart/Scatter.mjs +3 -3
- package/ScatterChart/ScatterChart.d.mts +15 -3
- package/ScatterChart/ScatterChart.d.ts +15 -3
- package/ScatterChart/ScatterChart.js +73 -31
- package/ScatterChart/ScatterChart.mjs +73 -31
- package/ScatterChart/seriesConfig/descriptionGetter.d.mts +3 -0
- package/ScatterChart/seriesConfig/descriptionGetter.d.ts +3 -0
- package/ScatterChart/seriesConfig/descriptionGetter.js +34 -0
- package/ScatterChart/seriesConfig/descriptionGetter.mjs +28 -0
- package/ScatterChart/seriesConfig/index.js +2 -0
- package/ScatterChart/seriesConfig/index.mjs +2 -0
- package/ScatterChart/seriesConfig/legend.js +2 -21
- package/ScatterChart/seriesConfig/legend.mjs +2 -21
- package/ScatterChart/useScatterChartProps.d.mts +2 -2
- package/ScatterChart/useScatterChartProps.d.ts +2 -2
- package/ScatterChart/useScatterChartProps.js +9 -8
- package/ScatterChart/useScatterChartProps.mjs +9 -8
- package/SparkLineChart/SparkLineChart.d.mts +2 -2
- package/SparkLineChart/SparkLineChart.d.ts +2 -2
- package/SparkLineChart/SparkLineChart.js +60 -28
- package/SparkLineChart/SparkLineChart.mjs +60 -28
- package/constants/index.js +0 -2
- package/constants/index.mjs +0 -2
- package/context/useChartApiContext.d.mts +1 -1
- package/context/useChartApiContext.d.ts +1 -1
- package/context/useChartApiContext.js +3 -3
- package/context/useChartApiContext.mjs +3 -3
- package/hooks/animation/useAnimatePieArcLabel.d.mts +1 -10
- package/hooks/animation/useAnimatePieArcLabel.d.ts +1 -10
- package/hooks/animation/useAnimatePieArcLabel.js +6 -10
- package/hooks/animation/useAnimatePieArcLabel.mjs +6 -10
- package/hooks/useChartRootRef.js +2 -2
- package/hooks/useChartRootRef.mjs +2 -2
- package/hooks/useChartsLayerContainerRef.js +2 -2
- package/hooks/useChartsLayerContainerRef.mjs +2 -2
- package/hooks/useDataset.js +1 -1
- package/hooks/useDataset.mjs +2 -2
- package/hooks/useInteractionItemProps.d.mts +1 -1
- package/hooks/useInteractionItemProps.d.ts +1 -1
- package/hooks/useInteractionItemProps.js +5 -5
- package/hooks/useInteractionItemProps.mjs +5 -5
- package/hooks/useTicks.js +2 -2
- package/hooks/useTicks.mjs +2 -2
- package/index.d.mts +0 -3
- package/index.d.ts +0 -3
- package/index.js +2 -22
- package/index.mjs +1 -3
- package/internals/components/ChartsAccessibilityProxy/ChartsAccessibilityProxy.d.mts +5 -0
- package/internals/components/ChartsAccessibilityProxy/ChartsAccessibilityProxy.d.ts +5 -0
- package/internals/components/ChartsAccessibilityProxy/ChartsAccessibilityProxy.js +100 -0
- package/internals/components/ChartsAccessibilityProxy/ChartsAccessibilityProxy.mjs +96 -0
- package/internals/components/ChartsAccessibilityProxy/index.d.mts +1 -0
- package/internals/components/ChartsAccessibilityProxy/index.d.ts +1 -0
- package/internals/components/ChartsAccessibilityProxy/index.js +16 -0
- package/internals/components/ChartsAccessibilityProxy/index.mjs +1 -0
- package/internals/components/ChartsAccessibilityProxy/useDescription.d.mts +5 -0
- package/internals/components/ChartsAccessibilityProxy/useDescription.d.ts +5 -0
- package/internals/components/ChartsAccessibilityProxy/useDescription.js +71 -0
- package/internals/components/ChartsAccessibilityProxy/useDescription.mjs +66 -0
- package/internals/consumeSlots.d.mts +1 -1
- package/internals/consumeSlots.d.ts +1 -1
- package/internals/getChartPoint.js +18 -1
- package/internals/getChartPoint.mjs +18 -1
- package/internals/identifierCleaner.d.mts +5 -5
- package/internals/identifierCleaner.d.ts +5 -5
- package/internals/identifierCleaner.js +0 -1
- package/internals/identifierCleaner.mjs +0 -1
- package/internals/index.d.mts +2 -3
- package/internals/index.d.ts +2 -3
- package/internals/index.js +27 -36
- package/internals/index.mjs +2 -3
- package/internals/legendUtils.d.mts +11 -0
- package/internals/legendUtils.d.ts +11 -0
- package/internals/legendUtils.js +28 -0
- package/internals/legendUtils.mjs +22 -0
- package/internals/plugins/corePlugins/corePlugins.d.mts +2 -2
- package/internals/plugins/corePlugins/corePlugins.d.ts +2 -2
- package/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.js +2 -2
- package/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.mjs +2 -2
- package/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.d.mts +2 -1
- package/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.d.ts +2 -1
- package/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.selectors.d.mts +2 -4
- package/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.selectors.d.ts +2 -4
- package/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.selectors.js +2 -4
- package/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.selectors.mjs +1 -3
- package/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.d.mts +19 -9
- package/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.d.ts +19 -9
- package/internals/plugins/corePlugins/useChartSeries/index.d.mts +2 -1
- package/internals/plugins/corePlugins/useChartSeries/index.d.ts +2 -1
- package/internals/plugins/corePlugins/useChartSeries/index.js +12 -0
- package/internals/plugins/corePlugins/useChartSeries/index.mjs +2 -1
- package/internals/plugins/corePlugins/useChartSeries/useChartSeries.selectors.d.mts +21 -6
- package/internals/plugins/corePlugins/useChartSeries/useChartSeries.selectors.d.ts +21 -6
- package/internals/plugins/corePlugins/useChartSeries/useChartSeries.selectors.js +20 -9
- package/internals/plugins/corePlugins/useChartSeries/useChartSeries.selectors.mjs +20 -9
- package/internals/plugins/corePlugins/useChartSeries/useChartSeriesLayout.selectors.d.mts +8 -0
- package/internals/plugins/corePlugins/useChartSeries/useChartSeriesLayout.selectors.d.ts +8 -0
- package/internals/plugins/corePlugins/useChartSeries/useChartSeriesLayout.selectors.js +19 -0
- package/internals/plugins/corePlugins/useChartSeries/useChartSeriesLayout.selectors.mjs +14 -0
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/TooltipContent.types.d.mts +18 -0
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/TooltipContent.types.d.ts +18 -0
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/descriptionGetter.types.d.mts +5 -0
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/descriptionGetter.types.d.ts +5 -0
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/descriptionGetter.types.js +5 -0
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/descriptionGetter.types.mjs +1 -0
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/index.d.mts +3 -1
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/index.d.ts +3 -1
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/index.js +22 -0
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/index.mjs +3 -1
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/seriesConfig.types.d.mts +7 -0
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/seriesConfig.types.d.ts +7 -0
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/tooltipGetter.types.d.mts +16 -37
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/tooltipGetter.types.d.ts +16 -37
- package/internals/plugins/featurePlugins/shared/useRegisterPointerInteractions.d.mts +4 -10
- package/internals/plugins/featurePlugins/shared/useRegisterPointerInteractions.d.ts +4 -10
- package/internals/plugins/featurePlugins/shared/useRegisterPointerInteractions.js +30 -21
- package/internals/plugins/featurePlugins/shared/useRegisterPointerInteractions.mjs +30 -20
- package/internals/plugins/featurePlugins/useChartCartesianAxis/autoSizeConstants.d.mts +5 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/autoSizeConstants.d.ts +5 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/autoSizeConstants.js +11 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/autoSizeConstants.mjs +5 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/computeAxisAutoSize.d.mts +33 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/computeAxisAutoSize.d.ts +33 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/computeAxisAutoSize.js +318 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/computeAxisAutoSize.mjs +311 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/computeAxisValue.d.mts +5 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/computeAxisValue.d.ts +5 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/computeAxisValue.js +63 -8
- package/internals/plugins/featurePlugins/useChartCartesianAxis/computeAxisValue.mjs +62 -8
- package/internals/plugins/featurePlugins/useChartCartesianAxis/defaultizeAxis.js +12 -4
- package/internals/plugins/featurePlugins/useChartCartesianAxis/defaultizeAxis.mjs +12 -4
- package/internals/plugins/featurePlugins/useChartCartesianAxis/domain.d.mts +13 -3
- package/internals/plugins/featurePlugins/useChartCartesianAxis/domain.d.ts +13 -3
- package/internals/plugins/featurePlugins/useChartCartesianAxis/domain.js +32 -7
- package/internals/plugins/featurePlugins/useChartCartesianAxis/domain.mjs +31 -7
- package/internals/plugins/featurePlugins/useChartCartesianAxis/index.d.mts +3 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/index.d.ts +3 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/index.js +22 -2
- package/internals/plugins/featurePlugins/useChartCartesianAxis/index.mjs +3 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisAutoSize.selectors.d.mts +30 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisAutoSize.selectors.d.ts +30 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisAutoSize.selectors.js +96 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisAutoSize.selectors.mjs +91 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisDomains.selectors.d.mts +16 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisDomains.selectors.d.ts +16 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisDomains.selectors.js +36 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisDomains.selectors.mjs +31 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisExtrema.selectors.d.mts +15 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisExtrema.selectors.d.ts +15 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisExtrema.selectors.js +45 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisExtrema.selectors.mjs +39 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisSize.selectors.d.mts +11 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisSize.selectors.d.ts +11 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisSize.selectors.js +53 -11
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisSize.selectors.mjs +52 -11
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.d.mts +4 -9
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.d.ts +4 -9
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.js +20 -45
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.mjs +23 -48
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianInteraction.selectors.d.mts +5 -5
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianInteraction.selectors.d.ts +5 -5
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianTooltip.selectors.d.mts +1 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianTooltip.selectors.d.ts +1 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianTooltip.selectors.js +20 -2
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianTooltip.selectors.mjs +20 -2
- package/internals/plugins/featurePlugins/useChartClosestPoint/useChartClosestPoint.js +13 -11
- package/internals/plugins/featurePlugins/useChartClosestPoint/useChartClosestPoint.mjs +13 -11
- package/internals/plugins/featurePlugins/useChartClosestPoint/useChartClosestPoint.types.d.mts +4 -9
- package/internals/plugins/featurePlugins/useChartClosestPoint/useChartClosestPoint.types.d.ts +4 -9
- package/internals/plugins/featurePlugins/useChartItemClick/useChartItemClick.types.d.mts +3 -3
- package/internals/plugins/featurePlugins/useChartItemClick/useChartItemClick.types.d.ts +3 -3
- package/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.js +36 -30
- package/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.mjs +36 -30
- package/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.selectors.d.mts +8 -0
- package/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.selectors.d.ts +8 -0
- package/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.selectors.js +9 -2
- package/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.selectors.mjs +9 -2
- package/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.types.d.mts +6 -0
- package/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.types.d.ts +6 -0
- package/internals/seriesSelectorOfType.d.mts +3 -3
- package/internals/seriesSelectorOfType.d.ts +3 -3
- package/internals/store/useCharts.d.mts +1 -1
- package/internals/store/useCharts.d.ts +1 -1
- package/internals/store/useStore.js +2 -2
- package/internals/store/useStore.mjs +2 -2
- package/locales/elGR.d.mts +80 -0
- package/locales/elGR.d.ts +80 -0
- package/locales/elGR.js +95 -0
- package/locales/elGR.mjs +95 -0
- package/locales/enUS.d.mts +80 -0
- package/locales/enUS.d.ts +80 -0
- package/locales/enUS.js +94 -1
- package/locales/enUS.mjs +94 -1
- package/locales/frFR.d.mts +80 -0
- package/locales/frFR.d.ts +80 -0
- package/locales/frFR.js +95 -1
- package/locales/frFR.mjs +95 -1
- package/locales/nbNO.d.mts +80 -0
- package/locales/nbNO.d.ts +80 -0
- package/locales/nbNO.js +95 -0
- package/locales/nbNO.mjs +95 -0
- package/locales/ptBR.d.mts +80 -0
- package/locales/ptBR.d.ts +80 -0
- package/locales/ptBR.js +95 -0
- package/locales/ptBR.mjs +95 -0
- package/locales/ptPT.d.mts +80 -0
- package/locales/ptPT.d.ts +80 -0
- package/locales/ptPT.js +191 -99
- package/locales/ptPT.mjs +191 -99
- package/locales/svSE.d.mts +80 -0
- package/locales/svSE.d.ts +80 -0
- package/locales/svSE.js +95 -0
- package/locales/svSE.mjs +95 -0
- package/locales/utils/chartsLocaleTextApi.d.mts +205 -0
- package/locales/utils/chartsLocaleTextApi.d.ts +205 -0
- package/locales/utils/getChartsLocalization.d.mts +80 -0
- package/locales/utils/getChartsLocalization.d.ts +80 -0
- package/models/axis.d.mts +15 -5
- package/models/axis.d.ts +15 -5
- package/models/seriesType/composition.d.mts +1 -1
- package/models/seriesType/composition.d.ts +1 -1
- package/models/seriesType/composition.js +1 -1
- package/models/seriesType/composition.mjs +1 -1
- package/models/seriesType/config.d.mts +29 -0
- package/models/seriesType/config.d.ts +29 -0
- package/models/seriesType/line.d.mts +2 -1
- package/models/seriesType/line.d.ts +2 -1
- package/models/seriesType/scatter.d.mts +0 -7
- package/models/seriesType/scatter.d.ts +0 -7
- package/package.json +3 -31
- package/themeAugmentation/components.d.mts +5 -25
- package/themeAugmentation/components.d.ts +5 -25
- package/themeAugmentation/overrides.d.mts +3 -15
- package/themeAugmentation/overrides.d.ts +3 -15
- package/themeAugmentation/props.d.mts +0 -2
- package/themeAugmentation/props.d.ts +0 -2
- package/BarChart/BarLabel/barLabelClasses.d.mts +0 -41
- package/BarChart/BarLabel/barLabelClasses.d.ts +0 -41
- package/BarChart/BarLabel/barLabelClasses.js +0 -49
- package/BarChart/BarLabel/barLabelClasses.mjs +0 -40
- package/BarChart/barElementClasses.d.mts +0 -40
- package/BarChart/barElementClasses.d.ts +0 -40
- package/BarChart/barElementClasses.js +0 -48
- package/BarChart/barElementClasses.mjs +0 -39
- package/ChartContainer/ChartContainer.d.mts +0 -22
- package/ChartContainer/ChartContainer.d.ts +0 -22
- package/ChartContainer/ChartContainer.js +0 -24
- package/ChartContainer/ChartContainer.mjs +0 -20
- package/ChartContainer/index.d.mts +0 -1
- package/ChartContainer/index.d.ts +0 -1
- package/ChartContainer/index.js +0 -16
- package/ChartContainer/index.mjs +0 -1
- package/ChartContainer/useChartContainerProps.d.mts +0 -13
- package/ChartContainer/useChartContainerProps.d.ts +0 -13
- package/ChartContainer/useChartContainerProps.js +0 -19
- package/ChartContainer/useChartContainerProps.mjs +0 -14
- package/ChartDataProvider/ChartDataProvider.d.mts +0 -20
- package/ChartDataProvider/ChartDataProvider.d.ts +0 -20
- package/ChartDataProvider/ChartDataProvider.js +0 -24
- package/ChartDataProvider/ChartDataProvider.mjs +0 -20
- package/ChartDataProvider/index.d.mts +0 -1
- package/ChartDataProvider/index.d.ts +0 -1
- package/ChartDataProvider/index.js +0 -16
- package/ChartDataProvider/index.mjs +0 -1
- package/ChartDataProvider/useChartDataProviderProps.d.mts +0 -10
- package/ChartDataProvider/useChartDataProviderProps.d.ts +0 -10
- package/ChartDataProvider/useChartDataProviderProps.js +0 -12
- package/ChartDataProvider/useChartDataProviderProps.mjs +0 -8
- package/LineChart/markElementClasses.d.mts +0 -42
- package/LineChart/markElementClasses.d.ts +0 -42
- package/LineChart/markElementClasses.js +0 -48
- package/LineChart/markElementClasses.mjs +0 -40
- package/RadarChart/RadarAxis/radarAxisClasses.d.mts +0 -12
- package/RadarChart/RadarAxis/radarAxisClasses.d.ts +0 -12
- package/RadarChart/RadarAxis/radarAxisClasses.js +0 -25
- package/RadarChart/RadarAxis/radarAxisClasses.mjs +0 -15
- package/RadarChart/RadarAxisHighlight/radarAxisHighlightClasses.d.mts +0 -11
- package/RadarChart/RadarAxisHighlight/radarAxisHighlightClasses.d.ts +0 -11
- package/RadarChart/RadarAxisHighlight/radarAxisHighlightClasses.js +0 -14
- package/RadarChart/RadarAxisHighlight/radarAxisHighlightClasses.mjs +0 -6
- package/RadarChart/RadarGrid/radarGridClasses.d.mts +0 -12
- package/RadarChart/RadarGrid/radarGridClasses.d.ts +0 -12
- package/RadarChart/RadarGrid/radarGridClasses.js +0 -25
- package/RadarChart/RadarGrid/radarGridClasses.mjs +0 -15
- package/RadarChart/RadarSeriesPlot/radarSeriesPlotClasses.d.mts +0 -22
- package/RadarChart/RadarSeriesPlot/radarSeriesPlotClasses.d.ts +0 -22
- package/RadarChart/RadarSeriesPlot/radarSeriesPlotClasses.js +0 -26
- package/RadarChart/RadarSeriesPlot/radarSeriesPlotClasses.mjs +0 -17
- package/context/ChartProvider/ChartContext.d.mts +0 -5
- package/context/ChartProvider/ChartContext.d.ts +0 -5
- package/context/ChartProvider/ChartContext.js +0 -13
- package/context/ChartProvider/ChartContext.mjs +0 -9
- package/context/ChartProvider/ChartProvider.d.mts +0 -5
- package/context/ChartProvider/ChartProvider.d.ts +0 -5
- package/context/ChartProvider/ChartProvider.js +0 -12
- package/context/ChartProvider/ChartProvider.mjs +0 -8
- package/context/ChartProvider/ChartProvider.types.d.mts +0 -15
- package/context/ChartProvider/ChartProvider.types.d.ts +0 -15
- package/context/ChartProvider/index.d.mts +0 -3
- package/context/ChartProvider/index.d.ts +0 -3
- package/context/ChartProvider/index.js +0 -38
- package/context/ChartProvider/index.mjs +0 -3
- package/context/ChartProvider/useChartContext.d.mts +0 -4
- package/context/ChartProvider/useChartContext.d.ts +0 -4
- package/context/ChartProvider/useChartContext.js +0 -12
- package/context/ChartProvider/useChartContext.mjs +0 -8
- package/tests/constants.js +0 -7
- package/tests/constants.mjs +0 -1
- /package/{context/ChartProvider/ChartProvider.types.js → internals/plugins/corePlugins/useChartSeriesConfig/types/TooltipContent.types.js} +0 -0
- /package/{context/ChartProvider/ChartProvider.types.mjs → internals/plugins/corePlugins/useChartSeriesConfig/types/TooltipContent.types.mjs} +0 -0
package/LineChart/LineChart.mjs
CHANGED
|
@@ -16,8 +16,8 @@ import { LineHighlightPlot } from "./LineHighlightPlot.mjs";
|
|
|
16
16
|
import { ChartsGrid } from "../ChartsGrid/index.mjs";
|
|
17
17
|
import { ChartsOverlay } from "../ChartsOverlay/index.mjs";
|
|
18
18
|
import { useLineChartProps } from "./useLineChartProps.mjs";
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
19
|
+
import { useChartsContainerProps } from "../ChartsContainer/useChartsContainerProps.mjs";
|
|
20
|
+
import { ChartsDataProvider } from "../ChartsDataProvider/index.mjs";
|
|
21
21
|
import { ChartsSurface } from "../ChartsSurface/index.mjs";
|
|
22
22
|
import { ChartsWrapper } from "../ChartsWrapper/index.mjs";
|
|
23
23
|
import { FocusedLineMark } from "./FocusedLineMark.mjs";
|
|
@@ -39,7 +39,7 @@ const LineChart = /*#__PURE__*/React.forwardRef(function LineChart(inProps, ref)
|
|
|
39
39
|
});
|
|
40
40
|
const {
|
|
41
41
|
chartsWrapperProps,
|
|
42
|
-
|
|
42
|
+
chartsContainerProps,
|
|
43
43
|
gridProps,
|
|
44
44
|
clipPathProps,
|
|
45
45
|
clipPathGroupProps,
|
|
@@ -54,12 +54,12 @@ const LineChart = /*#__PURE__*/React.forwardRef(function LineChart(inProps, ref)
|
|
|
54
54
|
children
|
|
55
55
|
} = useLineChartProps(props);
|
|
56
56
|
const {
|
|
57
|
-
|
|
57
|
+
chartsDataProviderProps,
|
|
58
58
|
chartsSurfaceProps
|
|
59
|
-
} =
|
|
59
|
+
} = useChartsContainerProps(chartsContainerProps);
|
|
60
60
|
const Tooltip = props.slots?.tooltip ?? ChartsTooltip;
|
|
61
61
|
const Toolbar = props.slots?.toolbar;
|
|
62
|
-
return /*#__PURE__*/_jsx(
|
|
62
|
+
return /*#__PURE__*/_jsx(ChartsDataProvider, _extends({}, chartsDataProviderProps, {
|
|
63
63
|
children: /*#__PURE__*/_jsxs(ChartsWrapper, _extends({}, chartsWrapperProps, {
|
|
64
64
|
ref: ref,
|
|
65
65
|
children: [props.showToolbar && Toolbar ? /*#__PURE__*/_jsx(Toolbar, _extends({}, props.slotProps?.toolbar)) : null, !props.hideLegend && /*#__PURE__*/_jsx(ChartsLegend, _extends({}, legendProps)), /*#__PURE__*/_jsxs(ChartsSurface, _extends({}, chartsSurfaceProps, {
|
|
@@ -115,6 +115,10 @@ process.env.NODE_ENV !== "production" ? LineChart.propTypes = {
|
|
|
115
115
|
* An array of objects that can be used to populate series and axes data using their `dataKey` property.
|
|
116
116
|
*/
|
|
117
117
|
dataset: PropTypes.arrayOf(PropTypes.object),
|
|
118
|
+
/**
|
|
119
|
+
* The description of the chart.
|
|
120
|
+
* Used to provide an accessible description for the chart.
|
|
121
|
+
*/
|
|
118
122
|
desc: PropTypes.string,
|
|
119
123
|
/**
|
|
120
124
|
* If `true`, the charts will not listen to the mouse move event.
|
|
@@ -134,7 +138,7 @@ process.env.NODE_ENV !== "production" ? LineChart.propTypes = {
|
|
|
134
138
|
* Options to enable features planned for the next major.
|
|
135
139
|
*/
|
|
136
140
|
experimentalFeatures: PropTypes.shape({
|
|
137
|
-
|
|
141
|
+
enablePositionBasedPointerInteraction: PropTypes.bool
|
|
138
142
|
}),
|
|
139
143
|
/**
|
|
140
144
|
* Option to display a cartesian grid in the background.
|
|
@@ -335,6 +339,10 @@ process.env.NODE_ENV !== "production" ? LineChart.propTypes = {
|
|
|
335
339
|
slots: PropTypes.object,
|
|
336
340
|
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
|
337
341
|
theme: PropTypes.oneOf(['dark', 'light']),
|
|
342
|
+
/**
|
|
343
|
+
* The title of the chart.
|
|
344
|
+
* Used to provide an accessible label for the chart.
|
|
345
|
+
*/
|
|
338
346
|
title: PropTypes.string,
|
|
339
347
|
/**
|
|
340
348
|
* The controlled axis tooltip.
|
|
@@ -370,6 +378,7 @@ process.env.NODE_ENV !== "production" ? LineChart.propTypes = {
|
|
|
370
378
|
barGapRatio: PropTypes.number,
|
|
371
379
|
categoryGapRatio: PropTypes.number,
|
|
372
380
|
classes: PropTypes.object,
|
|
381
|
+
className: PropTypes.string,
|
|
373
382
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
374
383
|
colors: PropTypes.arrayOf(PropTypes.string).isRequired,
|
|
375
384
|
type: PropTypes.oneOf(['ordinal']).isRequired,
|
|
@@ -395,7 +404,7 @@ process.env.NODE_ENV !== "production" ? LineChart.propTypes = {
|
|
|
395
404
|
tickLabelStyle: PropTypes.object,
|
|
396
405
|
tickSize: PropTypes.number
|
|
397
406
|
})),
|
|
398
|
-
height: PropTypes.number,
|
|
407
|
+
height: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number]),
|
|
399
408
|
hideTooltip: PropTypes.bool,
|
|
400
409
|
id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
401
410
|
ignoreTooltip: PropTypes.bool,
|
|
@@ -428,6 +437,7 @@ process.env.NODE_ENV !== "production" ? LineChart.propTypes = {
|
|
|
428
437
|
}), PropTypes.shape({
|
|
429
438
|
axis: PropTypes.oneOf(['x']),
|
|
430
439
|
classes: PropTypes.object,
|
|
440
|
+
className: PropTypes.string,
|
|
431
441
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
432
442
|
colors: PropTypes.arrayOf(PropTypes.string).isRequired,
|
|
433
443
|
type: PropTypes.oneOf(['ordinal']).isRequired,
|
|
@@ -453,7 +463,7 @@ process.env.NODE_ENV !== "production" ? LineChart.propTypes = {
|
|
|
453
463
|
tickLabelStyle: PropTypes.object,
|
|
454
464
|
tickSize: PropTypes.number
|
|
455
465
|
})),
|
|
456
|
-
height: PropTypes.number,
|
|
466
|
+
height: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number]),
|
|
457
467
|
hideTooltip: PropTypes.bool,
|
|
458
468
|
id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
459
469
|
ignoreTooltip: PropTypes.bool,
|
|
@@ -486,6 +496,7 @@ process.env.NODE_ENV !== "production" ? LineChart.propTypes = {
|
|
|
486
496
|
}), PropTypes.shape({
|
|
487
497
|
axis: PropTypes.oneOf(['x']),
|
|
488
498
|
classes: PropTypes.object,
|
|
499
|
+
className: PropTypes.string,
|
|
489
500
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
490
501
|
color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
|
|
491
502
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
@@ -501,7 +512,7 @@ process.env.NODE_ENV !== "production" ? LineChart.propTypes = {
|
|
|
501
512
|
disableLine: PropTypes.bool,
|
|
502
513
|
disableTicks: PropTypes.bool,
|
|
503
514
|
domainLimit: PropTypes.oneOfType([PropTypes.oneOf(['nice', 'strict']), PropTypes.func]),
|
|
504
|
-
height: PropTypes.number,
|
|
515
|
+
height: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number]),
|
|
505
516
|
hideTooltip: PropTypes.bool,
|
|
506
517
|
id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
507
518
|
ignoreTooltip: PropTypes.bool,
|
|
@@ -531,6 +542,7 @@ process.env.NODE_ENV !== "production" ? LineChart.propTypes = {
|
|
|
531
542
|
}), PropTypes.shape({
|
|
532
543
|
axis: PropTypes.oneOf(['x']),
|
|
533
544
|
classes: PropTypes.object,
|
|
545
|
+
className: PropTypes.string,
|
|
534
546
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
535
547
|
color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
|
|
536
548
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
@@ -547,7 +559,7 @@ process.env.NODE_ENV !== "production" ? LineChart.propTypes = {
|
|
|
547
559
|
disableLine: PropTypes.bool,
|
|
548
560
|
disableTicks: PropTypes.bool,
|
|
549
561
|
domainLimit: PropTypes.oneOfType([PropTypes.oneOf(['nice', 'strict']), PropTypes.func]),
|
|
550
|
-
height: PropTypes.number,
|
|
562
|
+
height: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number]),
|
|
551
563
|
hideTooltip: PropTypes.bool,
|
|
552
564
|
id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
553
565
|
ignoreTooltip: PropTypes.bool,
|
|
@@ -577,6 +589,7 @@ process.env.NODE_ENV !== "production" ? LineChart.propTypes = {
|
|
|
577
589
|
}), PropTypes.shape({
|
|
578
590
|
axis: PropTypes.oneOf(['x']),
|
|
579
591
|
classes: PropTypes.object,
|
|
592
|
+
className: PropTypes.string,
|
|
580
593
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
581
594
|
color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
|
|
582
595
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
@@ -592,7 +605,7 @@ process.env.NODE_ENV !== "production" ? LineChart.propTypes = {
|
|
|
592
605
|
disableLine: PropTypes.bool,
|
|
593
606
|
disableTicks: PropTypes.bool,
|
|
594
607
|
domainLimit: PropTypes.oneOfType([PropTypes.oneOf(['nice', 'strict']), PropTypes.func]),
|
|
595
|
-
height: PropTypes.number,
|
|
608
|
+
height: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number]),
|
|
596
609
|
hideTooltip: PropTypes.bool,
|
|
597
610
|
id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
598
611
|
ignoreTooltip: PropTypes.bool,
|
|
@@ -622,6 +635,7 @@ process.env.NODE_ENV !== "production" ? LineChart.propTypes = {
|
|
|
622
635
|
}), PropTypes.shape({
|
|
623
636
|
axis: PropTypes.oneOf(['x']),
|
|
624
637
|
classes: PropTypes.object,
|
|
638
|
+
className: PropTypes.string,
|
|
625
639
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
626
640
|
color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
|
|
627
641
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
@@ -637,7 +651,7 @@ process.env.NODE_ENV !== "production" ? LineChart.propTypes = {
|
|
|
637
651
|
disableLine: PropTypes.bool,
|
|
638
652
|
disableTicks: PropTypes.bool,
|
|
639
653
|
domainLimit: PropTypes.oneOfType([PropTypes.oneOf(['nice', 'strict']), PropTypes.func]),
|
|
640
|
-
height: PropTypes.number,
|
|
654
|
+
height: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number]),
|
|
641
655
|
hideTooltip: PropTypes.bool,
|
|
642
656
|
id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
643
657
|
ignoreTooltip: PropTypes.bool,
|
|
@@ -667,6 +681,7 @@ process.env.NODE_ENV !== "production" ? LineChart.propTypes = {
|
|
|
667
681
|
}), PropTypes.shape({
|
|
668
682
|
axis: PropTypes.oneOf(['x']),
|
|
669
683
|
classes: PropTypes.object,
|
|
684
|
+
className: PropTypes.string,
|
|
670
685
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
671
686
|
color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
|
|
672
687
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
@@ -682,7 +697,7 @@ process.env.NODE_ENV !== "production" ? LineChart.propTypes = {
|
|
|
682
697
|
disableLine: PropTypes.bool,
|
|
683
698
|
disableTicks: PropTypes.bool,
|
|
684
699
|
domainLimit: PropTypes.oneOfType([PropTypes.oneOf(['nice', 'strict']), PropTypes.func]),
|
|
685
|
-
height: PropTypes.number,
|
|
700
|
+
height: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number]),
|
|
686
701
|
hideTooltip: PropTypes.bool,
|
|
687
702
|
id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
688
703
|
ignoreTooltip: PropTypes.bool,
|
|
@@ -716,6 +731,7 @@ process.env.NODE_ENV !== "production" ? LineChart.propTypes = {
|
|
|
716
731
|
}), PropTypes.shape({
|
|
717
732
|
axis: PropTypes.oneOf(['x']),
|
|
718
733
|
classes: PropTypes.object,
|
|
734
|
+
className: PropTypes.string,
|
|
719
735
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
720
736
|
color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
|
|
721
737
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
@@ -731,7 +747,7 @@ process.env.NODE_ENV !== "production" ? LineChart.propTypes = {
|
|
|
731
747
|
disableLine: PropTypes.bool,
|
|
732
748
|
disableTicks: PropTypes.bool,
|
|
733
749
|
domainLimit: PropTypes.oneOfType([PropTypes.oneOf(['nice', 'strict']), PropTypes.func]),
|
|
734
|
-
height: PropTypes.number,
|
|
750
|
+
height: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number]),
|
|
735
751
|
hideTooltip: PropTypes.bool,
|
|
736
752
|
id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
737
753
|
ignoreTooltip: PropTypes.bool,
|
|
@@ -765,6 +781,7 @@ process.env.NODE_ENV !== "production" ? LineChart.propTypes = {
|
|
|
765
781
|
}), PropTypes.shape({
|
|
766
782
|
axis: PropTypes.oneOf(['x']),
|
|
767
783
|
classes: PropTypes.object,
|
|
784
|
+
className: PropTypes.string,
|
|
768
785
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
769
786
|
color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
|
|
770
787
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
@@ -780,7 +797,7 @@ process.env.NODE_ENV !== "production" ? LineChart.propTypes = {
|
|
|
780
797
|
disableLine: PropTypes.bool,
|
|
781
798
|
disableTicks: PropTypes.bool,
|
|
782
799
|
domainLimit: PropTypes.oneOfType([PropTypes.oneOf(['nice', 'strict']), PropTypes.func]),
|
|
783
|
-
height: PropTypes.number,
|
|
800
|
+
height: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number]),
|
|
784
801
|
hideTooltip: PropTypes.bool,
|
|
785
802
|
id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
786
803
|
ignoreTooltip: PropTypes.bool,
|
|
@@ -818,6 +835,7 @@ process.env.NODE_ENV !== "production" ? LineChart.propTypes = {
|
|
|
818
835
|
barGapRatio: PropTypes.number,
|
|
819
836
|
categoryGapRatio: PropTypes.number,
|
|
820
837
|
classes: PropTypes.object,
|
|
838
|
+
className: PropTypes.string,
|
|
821
839
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
822
840
|
colors: PropTypes.arrayOf(PropTypes.string).isRequired,
|
|
823
841
|
type: PropTypes.oneOf(['ordinal']).isRequired,
|
|
@@ -871,10 +889,11 @@ process.env.NODE_ENV !== "production" ? LineChart.propTypes = {
|
|
|
871
889
|
tickSize: PropTypes.number,
|
|
872
890
|
tickSpacing: PropTypes.number,
|
|
873
891
|
valueFormatter: PropTypes.func,
|
|
874
|
-
width: PropTypes.number
|
|
892
|
+
width: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number])
|
|
875
893
|
}), PropTypes.shape({
|
|
876
894
|
axis: PropTypes.oneOf(['y']),
|
|
877
895
|
classes: PropTypes.object,
|
|
896
|
+
className: PropTypes.string,
|
|
878
897
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
879
898
|
colors: PropTypes.arrayOf(PropTypes.string).isRequired,
|
|
880
899
|
type: PropTypes.oneOf(['ordinal']).isRequired,
|
|
@@ -928,10 +947,11 @@ process.env.NODE_ENV !== "production" ? LineChart.propTypes = {
|
|
|
928
947
|
tickSize: PropTypes.number,
|
|
929
948
|
tickSpacing: PropTypes.number,
|
|
930
949
|
valueFormatter: PropTypes.func,
|
|
931
|
-
width: PropTypes.number
|
|
950
|
+
width: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number])
|
|
932
951
|
}), PropTypes.shape({
|
|
933
952
|
axis: PropTypes.oneOf(['y']),
|
|
934
953
|
classes: PropTypes.object,
|
|
954
|
+
className: PropTypes.string,
|
|
935
955
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
936
956
|
color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
|
|
937
957
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
@@ -972,10 +992,11 @@ process.env.NODE_ENV !== "production" ? LineChart.propTypes = {
|
|
|
972
992
|
tickSize: PropTypes.number,
|
|
973
993
|
tickSpacing: PropTypes.number,
|
|
974
994
|
valueFormatter: PropTypes.func,
|
|
975
|
-
width: PropTypes.number
|
|
995
|
+
width: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number])
|
|
976
996
|
}), PropTypes.shape({
|
|
977
997
|
axis: PropTypes.oneOf(['y']),
|
|
978
998
|
classes: PropTypes.object,
|
|
999
|
+
className: PropTypes.string,
|
|
979
1000
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
980
1001
|
color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
|
|
981
1002
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
@@ -1017,10 +1038,11 @@ process.env.NODE_ENV !== "production" ? LineChart.propTypes = {
|
|
|
1017
1038
|
tickSize: PropTypes.number,
|
|
1018
1039
|
tickSpacing: PropTypes.number,
|
|
1019
1040
|
valueFormatter: PropTypes.func,
|
|
1020
|
-
width: PropTypes.number
|
|
1041
|
+
width: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number])
|
|
1021
1042
|
}), PropTypes.shape({
|
|
1022
1043
|
axis: PropTypes.oneOf(['y']),
|
|
1023
1044
|
classes: PropTypes.object,
|
|
1045
|
+
className: PropTypes.string,
|
|
1024
1046
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
1025
1047
|
color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
|
|
1026
1048
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
@@ -1061,10 +1083,11 @@ process.env.NODE_ENV !== "production" ? LineChart.propTypes = {
|
|
|
1061
1083
|
tickSize: PropTypes.number,
|
|
1062
1084
|
tickSpacing: PropTypes.number,
|
|
1063
1085
|
valueFormatter: PropTypes.func,
|
|
1064
|
-
width: PropTypes.number
|
|
1086
|
+
width: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number])
|
|
1065
1087
|
}), PropTypes.shape({
|
|
1066
1088
|
axis: PropTypes.oneOf(['y']),
|
|
1067
1089
|
classes: PropTypes.object,
|
|
1090
|
+
className: PropTypes.string,
|
|
1068
1091
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
1069
1092
|
color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
|
|
1070
1093
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
@@ -1105,10 +1128,11 @@ process.env.NODE_ENV !== "production" ? LineChart.propTypes = {
|
|
|
1105
1128
|
tickSize: PropTypes.number,
|
|
1106
1129
|
tickSpacing: PropTypes.number,
|
|
1107
1130
|
valueFormatter: PropTypes.func,
|
|
1108
|
-
width: PropTypes.number
|
|
1131
|
+
width: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number])
|
|
1109
1132
|
}), PropTypes.shape({
|
|
1110
1133
|
axis: PropTypes.oneOf(['y']),
|
|
1111
1134
|
classes: PropTypes.object,
|
|
1135
|
+
className: PropTypes.string,
|
|
1112
1136
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
1113
1137
|
color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
|
|
1114
1138
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
@@ -1153,10 +1177,11 @@ process.env.NODE_ENV !== "production" ? LineChart.propTypes = {
|
|
|
1153
1177
|
tickSize: PropTypes.number,
|
|
1154
1178
|
tickSpacing: PropTypes.number,
|
|
1155
1179
|
valueFormatter: PropTypes.func,
|
|
1156
|
-
width: PropTypes.number
|
|
1180
|
+
width: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number])
|
|
1157
1181
|
}), PropTypes.shape({
|
|
1158
1182
|
axis: PropTypes.oneOf(['y']),
|
|
1159
1183
|
classes: PropTypes.object,
|
|
1184
|
+
className: PropTypes.string,
|
|
1160
1185
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
1161
1186
|
color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
|
|
1162
1187
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
@@ -1201,10 +1226,11 @@ process.env.NODE_ENV !== "production" ? LineChart.propTypes = {
|
|
|
1201
1226
|
tickSize: PropTypes.number,
|
|
1202
1227
|
tickSpacing: PropTypes.number,
|
|
1203
1228
|
valueFormatter: PropTypes.func,
|
|
1204
|
-
width: PropTypes.number
|
|
1229
|
+
width: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number])
|
|
1205
1230
|
}), PropTypes.shape({
|
|
1206
1231
|
axis: PropTypes.oneOf(['y']),
|
|
1207
1232
|
classes: PropTypes.object,
|
|
1233
|
+
className: PropTypes.string,
|
|
1208
1234
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
1209
1235
|
color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
|
|
1210
1236
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
@@ -1245,7 +1271,7 @@ process.env.NODE_ENV !== "production" ? LineChart.propTypes = {
|
|
|
1245
1271
|
tickSize: PropTypes.number,
|
|
1246
1272
|
tickSpacing: PropTypes.number,
|
|
1247
1273
|
valueFormatter: PropTypes.func,
|
|
1248
|
-
width: PropTypes.number
|
|
1274
|
+
width: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number])
|
|
1249
1275
|
})]).isRequired)
|
|
1250
1276
|
} : void 0;
|
|
1251
1277
|
export { LineChart };
|
|
@@ -2,50 +2,17 @@ import * as React from 'react';
|
|
|
2
2
|
import { type SlotComponentPropsFromProps } from '@mui/x-internals/types';
|
|
3
3
|
import { type AnimatedLineProps } from "./AnimatedLine.mjs";
|
|
4
4
|
import { type SeriesId } from "../models/seriesType/common.mjs";
|
|
5
|
-
|
|
6
|
-
* @deprecated Use `LineClasses` from `./lineClasses` instead.
|
|
7
|
-
*/
|
|
8
|
-
export interface LineElementClasses {
|
|
9
|
-
/** Styles applied to the root element. */
|
|
10
|
-
root: string;
|
|
11
|
-
/**
|
|
12
|
-
* Styles applied to the root element when highlighted.
|
|
13
|
-
* @deprecated Use `[data-highlighted]` selector instead.
|
|
14
|
-
*/
|
|
15
|
-
highlighted: string;
|
|
16
|
-
/**
|
|
17
|
-
* Styles applied to the root element when faded.
|
|
18
|
-
* @deprecated Use `[data-faded]` selector instead.
|
|
19
|
-
*/
|
|
20
|
-
faded: string;
|
|
21
|
-
/**
|
|
22
|
-
* Styles applied to the root element for a specified series.
|
|
23
|
-
* Needs to be suffixed with the series ID: `.${lineElementClasses.series}-${seriesId}`.
|
|
24
|
-
*/
|
|
25
|
-
series: string;
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* @deprecated Use `LineClassKey` from `./lineClasses` instead.
|
|
29
|
-
*/
|
|
30
|
-
export type LineElementClassKey = keyof LineElementClasses;
|
|
5
|
+
import { type LineClasses } from "./lineClasses.mjs";
|
|
31
6
|
export interface LineElementOwnerState {
|
|
32
7
|
seriesId: SeriesId;
|
|
33
8
|
color: string;
|
|
34
9
|
gradientId?: string;
|
|
35
10
|
isFaded: boolean;
|
|
36
11
|
isHighlighted: boolean;
|
|
37
|
-
classes?: Partial<
|
|
12
|
+
classes?: Partial<LineClasses>;
|
|
38
13
|
/** If `true`, the line is hidden. */
|
|
39
14
|
hidden?: boolean;
|
|
40
15
|
}
|
|
41
|
-
/**
|
|
42
|
-
* @deprecated Use `getLineUtilityClass` from `./lineClasses` instead.
|
|
43
|
-
*/
|
|
44
|
-
export declare function getLineElementUtilityClass(slot: string): string;
|
|
45
|
-
/**
|
|
46
|
-
* @deprecated Use `lineClasses` from `./lineClasses` instead.
|
|
47
|
-
*/
|
|
48
|
-
export declare const lineElementClasses: LineElementClasses;
|
|
49
16
|
export interface LineElementSlots {
|
|
50
17
|
/**
|
|
51
18
|
* The component that renders the line.
|
|
@@ -2,50 +2,17 @@ import * as React from 'react';
|
|
|
2
2
|
import { type SlotComponentPropsFromProps } from '@mui/x-internals/types';
|
|
3
3
|
import { type AnimatedLineProps } from "./AnimatedLine.js";
|
|
4
4
|
import { type SeriesId } from "../models/seriesType/common.js";
|
|
5
|
-
|
|
6
|
-
* @deprecated Use `LineClasses` from `./lineClasses` instead.
|
|
7
|
-
*/
|
|
8
|
-
export interface LineElementClasses {
|
|
9
|
-
/** Styles applied to the root element. */
|
|
10
|
-
root: string;
|
|
11
|
-
/**
|
|
12
|
-
* Styles applied to the root element when highlighted.
|
|
13
|
-
* @deprecated Use `[data-highlighted]` selector instead.
|
|
14
|
-
*/
|
|
15
|
-
highlighted: string;
|
|
16
|
-
/**
|
|
17
|
-
* Styles applied to the root element when faded.
|
|
18
|
-
* @deprecated Use `[data-faded]` selector instead.
|
|
19
|
-
*/
|
|
20
|
-
faded: string;
|
|
21
|
-
/**
|
|
22
|
-
* Styles applied to the root element for a specified series.
|
|
23
|
-
* Needs to be suffixed with the series ID: `.${lineElementClasses.series}-${seriesId}`.
|
|
24
|
-
*/
|
|
25
|
-
series: string;
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* @deprecated Use `LineClassKey` from `./lineClasses` instead.
|
|
29
|
-
*/
|
|
30
|
-
export type LineElementClassKey = keyof LineElementClasses;
|
|
5
|
+
import { type LineClasses } from "./lineClasses.js";
|
|
31
6
|
export interface LineElementOwnerState {
|
|
32
7
|
seriesId: SeriesId;
|
|
33
8
|
color: string;
|
|
34
9
|
gradientId?: string;
|
|
35
10
|
isFaded: boolean;
|
|
36
11
|
isHighlighted: boolean;
|
|
37
|
-
classes?: Partial<
|
|
12
|
+
classes?: Partial<LineClasses>;
|
|
38
13
|
/** If `true`, the line is hidden. */
|
|
39
14
|
hidden?: boolean;
|
|
40
15
|
}
|
|
41
|
-
/**
|
|
42
|
-
* @deprecated Use `getLineUtilityClass` from `./lineClasses` instead.
|
|
43
|
-
*/
|
|
44
|
-
export declare function getLineElementUtilityClass(slot: string): string;
|
|
45
|
-
/**
|
|
46
|
-
* @deprecated Use `lineClasses` from `./lineClasses` instead.
|
|
47
|
-
*/
|
|
48
|
-
export declare const lineElementClasses: LineElementClasses;
|
|
49
16
|
export interface LineElementSlots {
|
|
50
17
|
/**
|
|
51
18
|
* The component that renders the line.
|
package/LineChart/LineElement.js
CHANGED
|
@@ -7,55 +7,19 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
value: true
|
|
8
8
|
});
|
|
9
9
|
exports.LineElement = LineElement;
|
|
10
|
-
exports.getLineElementUtilityClass = getLineElementUtilityClass;
|
|
11
|
-
exports.lineElementClasses = void 0;
|
|
12
10
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
13
11
|
var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
|
|
14
12
|
var React = _interopRequireWildcard(require("react"));
|
|
15
13
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
16
|
-
var _composeClasses = _interopRequireDefault(require("@mui/utils/composeClasses"));
|
|
17
14
|
var _useSlotProps = _interopRequireDefault(require("@mui/utils/useSlotProps"));
|
|
18
|
-
var _generateUtilityClass = _interopRequireDefault(require("@mui/utils/generateUtilityClass"));
|
|
19
|
-
var _generateUtilityClasses = _interopRequireDefault(require("@mui/utils/generateUtilityClasses"));
|
|
20
15
|
var _useInteractionItemProps = require("../hooks/useInteractionItemProps");
|
|
21
16
|
var _AnimatedLine = require("./AnimatedLine");
|
|
22
17
|
var _useItemHighlightState = require("../hooks/useItemHighlightState");
|
|
18
|
+
var _useChartExperimentalFeature = require("../internals/plugins/corePlugins/useChartExperimentalFeature");
|
|
19
|
+
var _useStore = require("../internals/store/useStore");
|
|
23
20
|
var _lineClasses = require("./lineClasses");
|
|
24
21
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
25
22
|
const _excluded = ["seriesId", "classes", "color", "gradientId", "slots", "slotProps", "onClick", "hidden"];
|
|
26
|
-
/**
|
|
27
|
-
* @deprecated Use `LineClasses` from `./lineClasses` instead.
|
|
28
|
-
*/
|
|
29
|
-
/**
|
|
30
|
-
* @deprecated Use `LineClassKey` from `./lineClasses` instead.
|
|
31
|
-
*/
|
|
32
|
-
/**
|
|
33
|
-
* @deprecated Use `getLineUtilityClass` from `./lineClasses` instead.
|
|
34
|
-
*/
|
|
35
|
-
function getLineElementUtilityClass(slot) {
|
|
36
|
-
return (0, _generateUtilityClass.default)('MuiLineElement', slot);
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* @deprecated Use `lineClasses` from `./lineClasses` instead.
|
|
41
|
-
*/
|
|
42
|
-
const lineElementClasses = exports.lineElementClasses = (0, _generateUtilityClasses.default)('MuiLineElement', ['root', 'highlighted', 'faded', 'series']);
|
|
43
|
-
|
|
44
|
-
/**
|
|
45
|
-
* @deprecated Use `useUtilityClasses` from `./lineClasses` instead.
|
|
46
|
-
*/
|
|
47
|
-
const useDeprecatedUtilityClasses = ownerState => {
|
|
48
|
-
const {
|
|
49
|
-
classes,
|
|
50
|
-
seriesId,
|
|
51
|
-
isFaded,
|
|
52
|
-
isHighlighted
|
|
53
|
-
} = ownerState;
|
|
54
|
-
const slots = {
|
|
55
|
-
root: ['root', `series-${seriesId}`, isHighlighted && 'highlighted', isFaded && 'faded']
|
|
56
|
-
};
|
|
57
|
-
return (0, _composeClasses.default)(slots, getLineElementUtilityClass, classes);
|
|
58
|
-
};
|
|
59
23
|
/**
|
|
60
24
|
* Demos:
|
|
61
25
|
*
|
|
@@ -78,6 +42,8 @@ function LineElement(props) {
|
|
|
78
42
|
hidden
|
|
79
43
|
} = props,
|
|
80
44
|
other = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded);
|
|
45
|
+
const store = (0, _useStore.useStore)();
|
|
46
|
+
const enablePositionBasedPointerInteraction = store.use(_useChartExperimentalFeature.selectorChartExperimentalFeaturesState)?.enablePositionBasedPointerInteraction;
|
|
81
47
|
const identifier = React.useMemo(() => ({
|
|
82
48
|
type: 'line',
|
|
83
49
|
seriesId
|
|
@@ -96,19 +62,19 @@ function LineElement(props) {
|
|
|
96
62
|
hidden
|
|
97
63
|
};
|
|
98
64
|
const classes = (0, _lineClasses.useUtilityClasses)();
|
|
99
|
-
const deprecatedClasses = useDeprecatedUtilityClasses(ownerState);
|
|
100
65
|
const Line = slots?.line ?? _AnimatedLine.AnimatedLine;
|
|
101
66
|
const lineProps = (0, _useSlotProps.default)({
|
|
102
67
|
elementType: Line,
|
|
103
68
|
externalSlotProps: slotProps?.line,
|
|
104
|
-
additionalProps: (0, _extends2.default)({}, interactionProps, {
|
|
69
|
+
additionalProps: (0, _extends2.default)({}, enablePositionBasedPointerInteraction ? {} : interactionProps, {
|
|
105
70
|
onClick,
|
|
106
71
|
cursor: onClick ? 'pointer' : 'unset',
|
|
107
72
|
'data-highlighted': isHighlighted || undefined,
|
|
108
73
|
'data-faded': isFaded || undefined,
|
|
109
|
-
'data-series-id': seriesId
|
|
74
|
+
'data-series-id': seriesId,
|
|
75
|
+
'data-series': seriesId
|
|
110
76
|
}),
|
|
111
|
-
className:
|
|
77
|
+
className: classes.line,
|
|
112
78
|
ownerState
|
|
113
79
|
});
|
|
114
80
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(Line, (0, _extends2.default)({}, other, lineProps));
|
|
@@ -5,50 +5,14 @@ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWith
|
|
|
5
5
|
const _excluded = ["seriesId", "classes", "color", "gradientId", "slots", "slotProps", "onClick", "hidden"];
|
|
6
6
|
import * as React from 'react';
|
|
7
7
|
import PropTypes from 'prop-types';
|
|
8
|
-
import composeClasses from '@mui/utils/composeClasses';
|
|
9
8
|
import useSlotProps from '@mui/utils/useSlotProps';
|
|
10
|
-
import generateUtilityClass from '@mui/utils/generateUtilityClass';
|
|
11
|
-
import generateUtilityClasses from '@mui/utils/generateUtilityClasses';
|
|
12
9
|
import { useInteractionItemProps } from "../hooks/useInteractionItemProps.mjs";
|
|
13
10
|
import { AnimatedLine } from "./AnimatedLine.mjs";
|
|
14
11
|
import { useItemHighlightState } from "../hooks/useItemHighlightState.mjs";
|
|
12
|
+
import { selectorChartExperimentalFeaturesState } from "../internals/plugins/corePlugins/useChartExperimentalFeature/index.mjs";
|
|
13
|
+
import { useStore } from "../internals/store/useStore.mjs";
|
|
15
14
|
import { useUtilityClasses as useLineUtilityClasses } from "./lineClasses.mjs";
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* @deprecated Use `LineClasses` from `./lineClasses` instead.
|
|
19
|
-
*/
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* @deprecated Use `LineClassKey` from `./lineClasses` instead.
|
|
23
|
-
*/
|
|
24
15
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
25
|
-
/**
|
|
26
|
-
* @deprecated Use `getLineUtilityClass` from `./lineClasses` instead.
|
|
27
|
-
*/
|
|
28
|
-
export function getLineElementUtilityClass(slot) {
|
|
29
|
-
return generateUtilityClass('MuiLineElement', slot);
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* @deprecated Use `lineClasses` from `./lineClasses` instead.
|
|
34
|
-
*/
|
|
35
|
-
export const lineElementClasses = generateUtilityClasses('MuiLineElement', ['root', 'highlighted', 'faded', 'series']);
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* @deprecated Use `useUtilityClasses` from `./lineClasses` instead.
|
|
39
|
-
*/
|
|
40
|
-
const useDeprecatedUtilityClasses = ownerState => {
|
|
41
|
-
const {
|
|
42
|
-
classes,
|
|
43
|
-
seriesId,
|
|
44
|
-
isFaded,
|
|
45
|
-
isHighlighted
|
|
46
|
-
} = ownerState;
|
|
47
|
-
const slots = {
|
|
48
|
-
root: ['root', `series-${seriesId}`, isHighlighted && 'highlighted', isFaded && 'faded']
|
|
49
|
-
};
|
|
50
|
-
return composeClasses(slots, getLineElementUtilityClass, classes);
|
|
51
|
-
};
|
|
52
16
|
/**
|
|
53
17
|
* Demos:
|
|
54
18
|
*
|
|
@@ -71,6 +35,8 @@ function LineElement(props) {
|
|
|
71
35
|
hidden
|
|
72
36
|
} = props,
|
|
73
37
|
other = _objectWithoutPropertiesLoose(props, _excluded);
|
|
38
|
+
const store = useStore();
|
|
39
|
+
const enablePositionBasedPointerInteraction = store.use(selectorChartExperimentalFeaturesState)?.enablePositionBasedPointerInteraction;
|
|
74
40
|
const identifier = React.useMemo(() => ({
|
|
75
41
|
type: 'line',
|
|
76
42
|
seriesId
|
|
@@ -89,19 +55,19 @@ function LineElement(props) {
|
|
|
89
55
|
hidden
|
|
90
56
|
};
|
|
91
57
|
const classes = useLineUtilityClasses();
|
|
92
|
-
const deprecatedClasses = useDeprecatedUtilityClasses(ownerState);
|
|
93
58
|
const Line = slots?.line ?? AnimatedLine;
|
|
94
59
|
const lineProps = useSlotProps({
|
|
95
60
|
elementType: Line,
|
|
96
61
|
externalSlotProps: slotProps?.line,
|
|
97
|
-
additionalProps: _extends({}, interactionProps, {
|
|
62
|
+
additionalProps: _extends({}, enablePositionBasedPointerInteraction ? {} : interactionProps, {
|
|
98
63
|
onClick,
|
|
99
64
|
cursor: onClick ? 'pointer' : 'unset',
|
|
100
65
|
'data-highlighted': isHighlighted || undefined,
|
|
101
66
|
'data-faded': isFaded || undefined,
|
|
102
|
-
'data-series-id': seriesId
|
|
67
|
+
'data-series-id': seriesId,
|
|
68
|
+
'data-series': seriesId
|
|
103
69
|
}),
|
|
104
|
-
className:
|
|
70
|
+
className: classes.line,
|
|
105
71
|
ownerState
|
|
106
72
|
});
|
|
107
73
|
return /*#__PURE__*/_jsx(Line, _extends({}, other, lineProps));
|
|
@@ -1,31 +1,11 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { type SeriesId } from "../models/seriesType/common.mjs";
|
|
3
|
-
/**
|
|
4
|
-
* @deprecated Use `LineClasses` from `./lineClasses` instead.
|
|
5
|
-
*/
|
|
6
|
-
export interface LineHighlightElementClasses {
|
|
7
|
-
/** Styles applied to the root element. */
|
|
8
|
-
root: string;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* @deprecated Use `LineClassKey` from `./lineClasses` instead.
|
|
12
|
-
*/
|
|
13
|
-
export type HighlightElementClassKey = keyof LineHighlightElementClasses;
|
|
14
3
|
interface LineHighlightElementCommonProps {
|
|
15
4
|
seriesId: SeriesId;
|
|
16
5
|
color: string;
|
|
17
6
|
x: number;
|
|
18
7
|
y: number;
|
|
19
|
-
classes?: Partial<LineHighlightElementClasses>;
|
|
20
8
|
}
|
|
21
|
-
/**
|
|
22
|
-
* @deprecated Use `getLineUtilityClass` from `./lineClasses` instead.
|
|
23
|
-
*/
|
|
24
|
-
export declare function getHighlightElementUtilityClass(slot: string): string;
|
|
25
|
-
/**
|
|
26
|
-
* @deprecated Use `lineClasses` from `./lineClasses` instead.
|
|
27
|
-
*/
|
|
28
|
-
export declare const lineHighlightElementClasses: LineHighlightElementClasses;
|
|
29
9
|
export type LineHighlightElementProps = (LineHighlightElementCommonProps & {
|
|
30
10
|
shape: 'circle';
|
|
31
11
|
} & Omit<React.SVGProps<SVGCircleElement>, 'ref'>) | (LineHighlightElementCommonProps & {
|