@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
|
@@ -9,7 +9,7 @@ import useId from '@mui/utils/useId';
|
|
|
9
9
|
import { ChartsClipPath } from "../ChartsClipPath/index.mjs";
|
|
10
10
|
import { BarPlot } from "../BarChart/index.mjs";
|
|
11
11
|
import { LinePlot, AreaPlot, LineHighlightPlot } from "../LineChart/index.mjs";
|
|
12
|
-
import {
|
|
12
|
+
import { ChartsDataProvider } from "../ChartsDataProvider/index.mjs";
|
|
13
13
|
import { ChartsSurface } from "../ChartsSurface/index.mjs";
|
|
14
14
|
import { DEFAULT_X_AXIS_KEY, DEFAULT_Y_AXIS_KEY } from "../constants/index.mjs";
|
|
15
15
|
import { ChartsTooltip } from "../ChartsTooltip/index.mjs";
|
|
@@ -103,7 +103,7 @@ const SparkLineChart = /*#__PURE__*/React.forwardRef(function SparkLineChart(pro
|
|
|
103
103
|
}, yAxisProps, {
|
|
104
104
|
position: 'none'
|
|
105
105
|
})], [yAxisProps]);
|
|
106
|
-
return /*#__PURE__*/_jsxs(
|
|
106
|
+
return /*#__PURE__*/_jsxs(ChartsDataProvider, {
|
|
107
107
|
series: series,
|
|
108
108
|
width: width,
|
|
109
109
|
height: height,
|
|
@@ -219,6 +219,10 @@ process.env.NODE_ENV !== "production" ? SparkLineChart.propTypes = {
|
|
|
219
219
|
* An array of objects that can be used to populate series and axes data using their `dataKey` property.
|
|
220
220
|
*/
|
|
221
221
|
dataset: PropTypes.arrayOf(PropTypes.object),
|
|
222
|
+
/**
|
|
223
|
+
* The description of the chart.
|
|
224
|
+
* Used to provide an accessible description for the chart.
|
|
225
|
+
*/
|
|
222
226
|
desc: PropTypes.string,
|
|
223
227
|
/**
|
|
224
228
|
* If `true`, the charts will not listen to the mouse move event.
|
|
@@ -232,14 +236,20 @@ process.env.NODE_ENV !== "production" ? SparkLineChart.propTypes = {
|
|
|
232
236
|
* @default false
|
|
233
237
|
*/
|
|
234
238
|
disableClipping: PropTypes.bool,
|
|
239
|
+
/**
|
|
240
|
+
* If true, the hit area interaction is disabled and falls back to hover events.
|
|
241
|
+
*/
|
|
242
|
+
disableHitArea: PropTypes.bool,
|
|
235
243
|
/**
|
|
236
244
|
* If `true`, disables keyboard navigation for the chart.
|
|
237
245
|
*/
|
|
238
246
|
disableKeyboardNavigation: PropTypes.bool,
|
|
239
247
|
/**
|
|
240
|
-
*
|
|
248
|
+
* Options to enable features planned for the next major.
|
|
241
249
|
*/
|
|
242
|
-
|
|
250
|
+
experimentalFeatures: PropTypes.shape({
|
|
251
|
+
enablePositionBasedPointerInteraction: PropTypes.bool
|
|
252
|
+
}),
|
|
243
253
|
/**
|
|
244
254
|
* The height of the chart in px. If not defined, it takes the height of the parent element.
|
|
245
255
|
*/
|
|
@@ -341,6 +351,12 @@ process.env.NODE_ENV !== "production" ? SparkLineChart.propTypes = {
|
|
|
341
351
|
seriesId: PropTypes.string.isRequired,
|
|
342
352
|
type: PropTypes.oneOf(['radar']).isRequired
|
|
343
353
|
})]),
|
|
354
|
+
/**
|
|
355
|
+
* Defines the maximum distance between a scatter point and the pointer that triggers the interaction.
|
|
356
|
+
* If set to `'item'`, the radius is the `markerSize`.
|
|
357
|
+
* If `undefined`, the radius is assumed to be infinite.
|
|
358
|
+
*/
|
|
359
|
+
hitAreaRadius: PropTypes.oneOfType([PropTypes.oneOf(['item']), PropTypes.number]),
|
|
344
360
|
/**
|
|
345
361
|
* This prop is used to help implement the accessibility logic.
|
|
346
362
|
* If you don't provide this prop. It falls back to a randomly generated id.
|
|
@@ -506,6 +522,10 @@ process.env.NODE_ENV !== "production" ? SparkLineChart.propTypes = {
|
|
|
506
522
|
slots: PropTypes.object,
|
|
507
523
|
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
|
508
524
|
theme: PropTypes.oneOf(['dark', 'light']),
|
|
525
|
+
/**
|
|
526
|
+
* The title of the chart.
|
|
527
|
+
* Used to provide an accessible label for the chart.
|
|
528
|
+
*/
|
|
509
529
|
title: PropTypes.string,
|
|
510
530
|
/**
|
|
511
531
|
* The controlled axis tooltip.
|
|
@@ -553,12 +573,6 @@ process.env.NODE_ENV !== "production" ? SparkLineChart.propTypes = {
|
|
|
553
573
|
* @default (value: number | null) => (value === null ? '' : value.toString())
|
|
554
574
|
*/
|
|
555
575
|
valueFormatter: PropTypes.func,
|
|
556
|
-
/**
|
|
557
|
-
* Defines the maximum distance between a scatter point and the pointer that triggers the interaction.
|
|
558
|
-
* If set to `'item'`, the radius is the `markerSize`.
|
|
559
|
-
* If `undefined`, the radius is assumed to be infinite.
|
|
560
|
-
*/
|
|
561
|
-
voronoiMaxRadius: PropTypes.oneOfType([PropTypes.oneOf(['item']), PropTypes.number]),
|
|
562
576
|
/**
|
|
563
577
|
* The width of the chart in px. If not defined, it takes the width of the parent element.
|
|
564
578
|
*/
|
|
@@ -572,6 +586,7 @@ process.env.NODE_ENV !== "production" ? SparkLineChart.propTypes = {
|
|
|
572
586
|
barGapRatio: PropTypes.number,
|
|
573
587
|
categoryGapRatio: PropTypes.number,
|
|
574
588
|
classes: PropTypes.object,
|
|
589
|
+
className: PropTypes.string,
|
|
575
590
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
576
591
|
colors: PropTypes.arrayOf(PropTypes.string).isRequired,
|
|
577
592
|
type: PropTypes.oneOf(['ordinal']).isRequired,
|
|
@@ -597,7 +612,7 @@ process.env.NODE_ENV !== "production" ? SparkLineChart.propTypes = {
|
|
|
597
612
|
tickLabelStyle: PropTypes.object,
|
|
598
613
|
tickSize: PropTypes.number
|
|
599
614
|
})),
|
|
600
|
-
height: PropTypes.number,
|
|
615
|
+
height: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number]),
|
|
601
616
|
hideTooltip: PropTypes.bool,
|
|
602
617
|
id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
603
618
|
ignoreTooltip: PropTypes.bool,
|
|
@@ -630,6 +645,7 @@ process.env.NODE_ENV !== "production" ? SparkLineChart.propTypes = {
|
|
|
630
645
|
}), PropTypes.shape({
|
|
631
646
|
axis: PropTypes.oneOf(['x']),
|
|
632
647
|
classes: PropTypes.object,
|
|
648
|
+
className: PropTypes.string,
|
|
633
649
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
634
650
|
colors: PropTypes.arrayOf(PropTypes.string).isRequired,
|
|
635
651
|
type: PropTypes.oneOf(['ordinal']).isRequired,
|
|
@@ -655,7 +671,7 @@ process.env.NODE_ENV !== "production" ? SparkLineChart.propTypes = {
|
|
|
655
671
|
tickLabelStyle: PropTypes.object,
|
|
656
672
|
tickSize: PropTypes.number
|
|
657
673
|
})),
|
|
658
|
-
height: PropTypes.number,
|
|
674
|
+
height: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number]),
|
|
659
675
|
hideTooltip: PropTypes.bool,
|
|
660
676
|
id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
661
677
|
ignoreTooltip: PropTypes.bool,
|
|
@@ -688,6 +704,7 @@ process.env.NODE_ENV !== "production" ? SparkLineChart.propTypes = {
|
|
|
688
704
|
}), PropTypes.shape({
|
|
689
705
|
axis: PropTypes.oneOf(['x']),
|
|
690
706
|
classes: PropTypes.object,
|
|
707
|
+
className: PropTypes.string,
|
|
691
708
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
692
709
|
color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
|
|
693
710
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
@@ -703,7 +720,7 @@ process.env.NODE_ENV !== "production" ? SparkLineChart.propTypes = {
|
|
|
703
720
|
disableLine: PropTypes.bool,
|
|
704
721
|
disableTicks: PropTypes.bool,
|
|
705
722
|
domainLimit: PropTypes.oneOfType([PropTypes.oneOf(['nice', 'strict']), PropTypes.func]),
|
|
706
|
-
height: PropTypes.number,
|
|
723
|
+
height: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number]),
|
|
707
724
|
hideTooltip: PropTypes.bool,
|
|
708
725
|
id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
709
726
|
ignoreTooltip: PropTypes.bool,
|
|
@@ -733,6 +750,7 @@ process.env.NODE_ENV !== "production" ? SparkLineChart.propTypes = {
|
|
|
733
750
|
}), PropTypes.shape({
|
|
734
751
|
axis: PropTypes.oneOf(['x']),
|
|
735
752
|
classes: PropTypes.object,
|
|
753
|
+
className: PropTypes.string,
|
|
736
754
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
737
755
|
color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
|
|
738
756
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
@@ -749,7 +767,7 @@ process.env.NODE_ENV !== "production" ? SparkLineChart.propTypes = {
|
|
|
749
767
|
disableLine: PropTypes.bool,
|
|
750
768
|
disableTicks: PropTypes.bool,
|
|
751
769
|
domainLimit: PropTypes.oneOfType([PropTypes.oneOf(['nice', 'strict']), PropTypes.func]),
|
|
752
|
-
height: PropTypes.number,
|
|
770
|
+
height: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number]),
|
|
753
771
|
hideTooltip: PropTypes.bool,
|
|
754
772
|
id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
755
773
|
ignoreTooltip: PropTypes.bool,
|
|
@@ -779,6 +797,7 @@ process.env.NODE_ENV !== "production" ? SparkLineChart.propTypes = {
|
|
|
779
797
|
}), PropTypes.shape({
|
|
780
798
|
axis: PropTypes.oneOf(['x']),
|
|
781
799
|
classes: PropTypes.object,
|
|
800
|
+
className: PropTypes.string,
|
|
782
801
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
783
802
|
color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
|
|
784
803
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
@@ -794,7 +813,7 @@ process.env.NODE_ENV !== "production" ? SparkLineChart.propTypes = {
|
|
|
794
813
|
disableLine: PropTypes.bool,
|
|
795
814
|
disableTicks: PropTypes.bool,
|
|
796
815
|
domainLimit: PropTypes.oneOfType([PropTypes.oneOf(['nice', 'strict']), PropTypes.func]),
|
|
797
|
-
height: PropTypes.number,
|
|
816
|
+
height: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number]),
|
|
798
817
|
hideTooltip: PropTypes.bool,
|
|
799
818
|
id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
800
819
|
ignoreTooltip: PropTypes.bool,
|
|
@@ -824,6 +843,7 @@ process.env.NODE_ENV !== "production" ? SparkLineChart.propTypes = {
|
|
|
824
843
|
}), PropTypes.shape({
|
|
825
844
|
axis: PropTypes.oneOf(['x']),
|
|
826
845
|
classes: PropTypes.object,
|
|
846
|
+
className: PropTypes.string,
|
|
827
847
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
828
848
|
color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
|
|
829
849
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
@@ -839,7 +859,7 @@ process.env.NODE_ENV !== "production" ? SparkLineChart.propTypes = {
|
|
|
839
859
|
disableLine: PropTypes.bool,
|
|
840
860
|
disableTicks: PropTypes.bool,
|
|
841
861
|
domainLimit: PropTypes.oneOfType([PropTypes.oneOf(['nice', 'strict']), PropTypes.func]),
|
|
842
|
-
height: PropTypes.number,
|
|
862
|
+
height: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number]),
|
|
843
863
|
hideTooltip: PropTypes.bool,
|
|
844
864
|
id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
845
865
|
ignoreTooltip: PropTypes.bool,
|
|
@@ -869,6 +889,7 @@ process.env.NODE_ENV !== "production" ? SparkLineChart.propTypes = {
|
|
|
869
889
|
}), PropTypes.shape({
|
|
870
890
|
axis: PropTypes.oneOf(['x']),
|
|
871
891
|
classes: PropTypes.object,
|
|
892
|
+
className: PropTypes.string,
|
|
872
893
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
873
894
|
color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
|
|
874
895
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
@@ -884,7 +905,7 @@ process.env.NODE_ENV !== "production" ? SparkLineChart.propTypes = {
|
|
|
884
905
|
disableLine: PropTypes.bool,
|
|
885
906
|
disableTicks: PropTypes.bool,
|
|
886
907
|
domainLimit: PropTypes.oneOfType([PropTypes.oneOf(['nice', 'strict']), PropTypes.func]),
|
|
887
|
-
height: PropTypes.number,
|
|
908
|
+
height: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number]),
|
|
888
909
|
hideTooltip: PropTypes.bool,
|
|
889
910
|
id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
890
911
|
ignoreTooltip: PropTypes.bool,
|
|
@@ -918,6 +939,7 @@ process.env.NODE_ENV !== "production" ? SparkLineChart.propTypes = {
|
|
|
918
939
|
}), PropTypes.shape({
|
|
919
940
|
axis: PropTypes.oneOf(['x']),
|
|
920
941
|
classes: PropTypes.object,
|
|
942
|
+
className: PropTypes.string,
|
|
921
943
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
922
944
|
color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
|
|
923
945
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
@@ -933,7 +955,7 @@ process.env.NODE_ENV !== "production" ? SparkLineChart.propTypes = {
|
|
|
933
955
|
disableLine: PropTypes.bool,
|
|
934
956
|
disableTicks: PropTypes.bool,
|
|
935
957
|
domainLimit: PropTypes.oneOfType([PropTypes.oneOf(['nice', 'strict']), PropTypes.func]),
|
|
936
|
-
height: PropTypes.number,
|
|
958
|
+
height: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number]),
|
|
937
959
|
hideTooltip: PropTypes.bool,
|
|
938
960
|
id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
939
961
|
ignoreTooltip: PropTypes.bool,
|
|
@@ -967,6 +989,7 @@ process.env.NODE_ENV !== "production" ? SparkLineChart.propTypes = {
|
|
|
967
989
|
}), PropTypes.shape({
|
|
968
990
|
axis: PropTypes.oneOf(['x']),
|
|
969
991
|
classes: PropTypes.object,
|
|
992
|
+
className: PropTypes.string,
|
|
970
993
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
971
994
|
color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
|
|
972
995
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
@@ -982,7 +1005,7 @@ process.env.NODE_ENV !== "production" ? SparkLineChart.propTypes = {
|
|
|
982
1005
|
disableLine: PropTypes.bool,
|
|
983
1006
|
disableTicks: PropTypes.bool,
|
|
984
1007
|
domainLimit: PropTypes.oneOfType([PropTypes.oneOf(['nice', 'strict']), PropTypes.func]),
|
|
985
|
-
height: PropTypes.number,
|
|
1008
|
+
height: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number]),
|
|
986
1009
|
hideTooltip: PropTypes.bool,
|
|
987
1010
|
id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
988
1011
|
ignoreTooltip: PropTypes.bool,
|
|
@@ -1019,6 +1042,7 @@ process.env.NODE_ENV !== "production" ? SparkLineChart.propTypes = {
|
|
|
1019
1042
|
barGapRatio: PropTypes.number,
|
|
1020
1043
|
categoryGapRatio: PropTypes.number,
|
|
1021
1044
|
classes: PropTypes.object,
|
|
1045
|
+
className: PropTypes.string,
|
|
1022
1046
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
1023
1047
|
colors: PropTypes.arrayOf(PropTypes.string).isRequired,
|
|
1024
1048
|
type: PropTypes.oneOf(['ordinal']).isRequired,
|
|
@@ -1072,10 +1096,11 @@ process.env.NODE_ENV !== "production" ? SparkLineChart.propTypes = {
|
|
|
1072
1096
|
tickSize: PropTypes.number,
|
|
1073
1097
|
tickSpacing: PropTypes.number,
|
|
1074
1098
|
valueFormatter: PropTypes.func,
|
|
1075
|
-
width: PropTypes.number
|
|
1099
|
+
width: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number])
|
|
1076
1100
|
}), PropTypes.shape({
|
|
1077
1101
|
axis: PropTypes.oneOf(['y']),
|
|
1078
1102
|
classes: PropTypes.object,
|
|
1103
|
+
className: PropTypes.string,
|
|
1079
1104
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
1080
1105
|
colors: PropTypes.arrayOf(PropTypes.string).isRequired,
|
|
1081
1106
|
type: PropTypes.oneOf(['ordinal']).isRequired,
|
|
@@ -1129,10 +1154,11 @@ process.env.NODE_ENV !== "production" ? SparkLineChart.propTypes = {
|
|
|
1129
1154
|
tickSize: PropTypes.number,
|
|
1130
1155
|
tickSpacing: PropTypes.number,
|
|
1131
1156
|
valueFormatter: PropTypes.func,
|
|
1132
|
-
width: PropTypes.number
|
|
1157
|
+
width: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number])
|
|
1133
1158
|
}), PropTypes.shape({
|
|
1134
1159
|
axis: PropTypes.oneOf(['y']),
|
|
1135
1160
|
classes: PropTypes.object,
|
|
1161
|
+
className: PropTypes.string,
|
|
1136
1162
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
1137
1163
|
color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
|
|
1138
1164
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
@@ -1173,10 +1199,11 @@ process.env.NODE_ENV !== "production" ? SparkLineChart.propTypes = {
|
|
|
1173
1199
|
tickSize: PropTypes.number,
|
|
1174
1200
|
tickSpacing: PropTypes.number,
|
|
1175
1201
|
valueFormatter: PropTypes.func,
|
|
1176
|
-
width: PropTypes.number
|
|
1202
|
+
width: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number])
|
|
1177
1203
|
}), PropTypes.shape({
|
|
1178
1204
|
axis: PropTypes.oneOf(['y']),
|
|
1179
1205
|
classes: PropTypes.object,
|
|
1206
|
+
className: PropTypes.string,
|
|
1180
1207
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
1181
1208
|
color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
|
|
1182
1209
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
@@ -1218,10 +1245,11 @@ process.env.NODE_ENV !== "production" ? SparkLineChart.propTypes = {
|
|
|
1218
1245
|
tickSize: PropTypes.number,
|
|
1219
1246
|
tickSpacing: PropTypes.number,
|
|
1220
1247
|
valueFormatter: PropTypes.func,
|
|
1221
|
-
width: PropTypes.number
|
|
1248
|
+
width: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number])
|
|
1222
1249
|
}), PropTypes.shape({
|
|
1223
1250
|
axis: PropTypes.oneOf(['y']),
|
|
1224
1251
|
classes: PropTypes.object,
|
|
1252
|
+
className: PropTypes.string,
|
|
1225
1253
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
1226
1254
|
color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
|
|
1227
1255
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
@@ -1262,10 +1290,11 @@ process.env.NODE_ENV !== "production" ? SparkLineChart.propTypes = {
|
|
|
1262
1290
|
tickSize: PropTypes.number,
|
|
1263
1291
|
tickSpacing: PropTypes.number,
|
|
1264
1292
|
valueFormatter: PropTypes.func,
|
|
1265
|
-
width: PropTypes.number
|
|
1293
|
+
width: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number])
|
|
1266
1294
|
}), PropTypes.shape({
|
|
1267
1295
|
axis: PropTypes.oneOf(['y']),
|
|
1268
1296
|
classes: PropTypes.object,
|
|
1297
|
+
className: PropTypes.string,
|
|
1269
1298
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
1270
1299
|
color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
|
|
1271
1300
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
@@ -1306,10 +1335,11 @@ process.env.NODE_ENV !== "production" ? SparkLineChart.propTypes = {
|
|
|
1306
1335
|
tickSize: PropTypes.number,
|
|
1307
1336
|
tickSpacing: PropTypes.number,
|
|
1308
1337
|
valueFormatter: PropTypes.func,
|
|
1309
|
-
width: PropTypes.number
|
|
1338
|
+
width: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number])
|
|
1310
1339
|
}), PropTypes.shape({
|
|
1311
1340
|
axis: PropTypes.oneOf(['y']),
|
|
1312
1341
|
classes: PropTypes.object,
|
|
1342
|
+
className: PropTypes.string,
|
|
1313
1343
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
1314
1344
|
color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
|
|
1315
1345
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
@@ -1354,10 +1384,11 @@ process.env.NODE_ENV !== "production" ? SparkLineChart.propTypes = {
|
|
|
1354
1384
|
tickSize: PropTypes.number,
|
|
1355
1385
|
tickSpacing: PropTypes.number,
|
|
1356
1386
|
valueFormatter: PropTypes.func,
|
|
1357
|
-
width: PropTypes.number
|
|
1387
|
+
width: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number])
|
|
1358
1388
|
}), PropTypes.shape({
|
|
1359
1389
|
axis: PropTypes.oneOf(['y']),
|
|
1360
1390
|
classes: PropTypes.object,
|
|
1391
|
+
className: PropTypes.string,
|
|
1361
1392
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
1362
1393
|
color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
|
|
1363
1394
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
@@ -1402,10 +1433,11 @@ process.env.NODE_ENV !== "production" ? SparkLineChart.propTypes = {
|
|
|
1402
1433
|
tickSize: PropTypes.number,
|
|
1403
1434
|
tickSpacing: PropTypes.number,
|
|
1404
1435
|
valueFormatter: PropTypes.func,
|
|
1405
|
-
width: PropTypes.number
|
|
1436
|
+
width: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number])
|
|
1406
1437
|
}), PropTypes.shape({
|
|
1407
1438
|
axis: PropTypes.oneOf(['y']),
|
|
1408
1439
|
classes: PropTypes.object,
|
|
1440
|
+
className: PropTypes.string,
|
|
1409
1441
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
1410
1442
|
color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
|
|
1411
1443
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
@@ -1446,7 +1478,7 @@ process.env.NODE_ENV !== "production" ? SparkLineChart.propTypes = {
|
|
|
1446
1478
|
tickSize: PropTypes.number,
|
|
1447
1479
|
tickSpacing: PropTypes.number,
|
|
1448
1480
|
valueFormatter: PropTypes.func,
|
|
1449
|
-
width: PropTypes.number
|
|
1481
|
+
width: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number])
|
|
1450
1482
|
})])
|
|
1451
1483
|
} : void 0;
|
|
1452
1484
|
export { SparkLineChart };
|
package/constants/index.js
CHANGED
|
@@ -16,6 +16,4 @@ const DEFAULT_MARGINS = exports.DEFAULT_MARGINS = {
|
|
|
16
16
|
};
|
|
17
17
|
const DEFAULT_AXIS_SIZE_WIDTH = exports.DEFAULT_AXIS_SIZE_WIDTH = 45;
|
|
18
18
|
const DEFAULT_AXIS_SIZE_HEIGHT = exports.DEFAULT_AXIS_SIZE_HEIGHT = 25;
|
|
19
|
-
|
|
20
|
-
// How many pixels to add to the default axis size if that axis has a label
|
|
21
19
|
const AXIS_LABEL_DEFAULT_HEIGHT = exports.AXIS_LABEL_DEFAULT_HEIGHT = 20;
|
package/constants/index.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
import { type ChartApi } from "./ChartApi.mjs";
|
|
3
3
|
/**
|
|
4
4
|
* The `useChartApiContext` hook provides access to the chart API.
|
|
5
|
-
* This is only available when the chart is rendered within a chart or a `
|
|
5
|
+
* This is only available when the chart is rendered within a chart or a `ChartsDataProvider` component.
|
|
6
6
|
* If you want to access the chart API outside those components, you should use the `apiRef` prop instead.
|
|
7
7
|
* @example
|
|
8
8
|
* const apiRef = useChartApiContext<ChartApi<'bar'>>();
|
|
@@ -2,7 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
import { type ChartApi } from "./ChartApi.js";
|
|
3
3
|
/**
|
|
4
4
|
* The `useChartApiContext` hook provides access to the chart API.
|
|
5
|
-
* This is only available when the chart is rendered within a chart or a `
|
|
5
|
+
* This is only available when the chart is rendered within a chart or a `ChartsDataProvider` component.
|
|
6
6
|
* If you want to access the chart API outside those components, you should use the `apiRef` prop instead.
|
|
7
7
|
* @example
|
|
8
8
|
* const apiRef = useChartApiContext<ChartApi<'bar'>>();
|
|
@@ -7,10 +7,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
});
|
|
8
8
|
exports.useChartApiContext = useChartApiContext;
|
|
9
9
|
var React = _interopRequireWildcard(require("react"));
|
|
10
|
-
var
|
|
10
|
+
var _ChartsProvider = require("./ChartsProvider");
|
|
11
11
|
/**
|
|
12
12
|
* The `useChartApiContext` hook provides access to the chart API.
|
|
13
|
-
* This is only available when the chart is rendered within a chart or a `
|
|
13
|
+
* This is only available when the chart is rendered within a chart or a `ChartsDataProvider` component.
|
|
14
14
|
* If you want to access the chart API outside those components, you should use the `apiRef` prop instead.
|
|
15
15
|
* @example
|
|
16
16
|
* const apiRef = useChartApiContext<ChartApi<'bar'>>();
|
|
@@ -18,7 +18,7 @@ var _ChartProvider = require("./ChartProvider");
|
|
|
18
18
|
function useChartApiContext() {
|
|
19
19
|
const {
|
|
20
20
|
publicAPI
|
|
21
|
-
} = (0,
|
|
21
|
+
} = (0, _ChartsProvider.useChartsContext)();
|
|
22
22
|
const apiRef = React.useRef(publicAPI);
|
|
23
23
|
React.useEffect(() => {
|
|
24
24
|
apiRef.current = publicAPI;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
3
|
import * as React from 'react';
|
|
4
|
-
import {
|
|
4
|
+
import { useChartsContext } from "./ChartsProvider/index.mjs";
|
|
5
5
|
/**
|
|
6
6
|
* The `useChartApiContext` hook provides access to the chart API.
|
|
7
|
-
* This is only available when the chart is rendered within a chart or a `
|
|
7
|
+
* This is only available when the chart is rendered within a chart or a `ChartsDataProvider` component.
|
|
8
8
|
* If you want to access the chart API outside those components, you should use the `apiRef` prop instead.
|
|
9
9
|
* @example
|
|
10
10
|
* const apiRef = useChartApiContext<ChartApi<'bar'>>();
|
|
@@ -12,7 +12,7 @@ import { useChartContext } from "./ChartProvider/index.mjs";
|
|
|
12
12
|
export function useChartApiContext() {
|
|
13
13
|
const {
|
|
14
14
|
publicAPI
|
|
15
|
-
} =
|
|
15
|
+
} = useChartsContext();
|
|
16
16
|
const apiRef = React.useRef(publicAPI);
|
|
17
17
|
React.useEffect(() => {
|
|
18
18
|
apiRef.current = publicAPI;
|
|
@@ -1,16 +1,7 @@
|
|
|
1
1
|
import type * as React from 'react';
|
|
2
2
|
import type { PieArcLabelProps } from "../../PieChart/index.mjs";
|
|
3
|
-
type UseAnimatePieArcLabelParams = Pick<PieArcLabelProps, 'startAngle' | 'endAngle' | 'cornerRadius' | 'paddingAngle' | 'skipAnimation'> & {
|
|
3
|
+
type UseAnimatePieArcLabelParams = Pick<PieArcLabelProps, 'startAngle' | 'endAngle' | 'arcLabelRadius' | 'cornerRadius' | 'paddingAngle' | 'skipAnimation'> & {
|
|
4
4
|
ref?: React.Ref<SVGTextElement>;
|
|
5
|
-
arcLabelRadius?: number;
|
|
6
|
-
/**
|
|
7
|
-
* @deprecated Use `arcLabelRadius` instead. This prop will be removed in the next major version.
|
|
8
|
-
*/
|
|
9
|
-
innerRadius: PieArcLabelProps['innerRadius'];
|
|
10
|
-
/**
|
|
11
|
-
* @deprecated Use `arcLabelRadius` instead. This prop will be removed in the next major version.
|
|
12
|
-
*/
|
|
13
|
-
outerRadius: PieArcLabelProps['outerRadius'];
|
|
14
5
|
};
|
|
15
6
|
type UseAnimatePieArcLabelReturn = {
|
|
16
7
|
ref: React.Ref<SVGTextElement>;
|
|
@@ -1,16 +1,7 @@
|
|
|
1
1
|
import type * as React from 'react';
|
|
2
2
|
import type { PieArcLabelProps } from "../../PieChart/index.js";
|
|
3
|
-
type UseAnimatePieArcLabelParams = Pick<PieArcLabelProps, 'startAngle' | 'endAngle' | 'cornerRadius' | 'paddingAngle' | 'skipAnimation'> & {
|
|
3
|
+
type UseAnimatePieArcLabelParams = Pick<PieArcLabelProps, 'startAngle' | 'endAngle' | 'arcLabelRadius' | 'cornerRadius' | 'paddingAngle' | 'skipAnimation'> & {
|
|
4
4
|
ref?: React.Ref<SVGTextElement>;
|
|
5
|
-
arcLabelRadius?: number;
|
|
6
|
-
/**
|
|
7
|
-
* @deprecated Use `arcLabelRadius` instead. This prop will be removed in the next major version.
|
|
8
|
-
*/
|
|
9
|
-
innerRadius: PieArcLabelProps['innerRadius'];
|
|
10
|
-
/**
|
|
11
|
-
* @deprecated Use `arcLabelRadius` instead. This prop will be removed in the next major version.
|
|
12
|
-
*/
|
|
13
|
-
outerRadius: PieArcLabelProps['outerRadius'];
|
|
14
5
|
};
|
|
15
6
|
type UseAnimatePieArcLabelReturn = {
|
|
16
7
|
ref: React.Ref<SVGTextElement>;
|
|
@@ -10,16 +10,14 @@ var _useAnimate = require("./useAnimate");
|
|
|
10
10
|
function pieArcLabelPropsInterpolator(from, to) {
|
|
11
11
|
const interpolateStartAngle = (0, _d3Interpolate.interpolateNumber)(from.startAngle, to.startAngle);
|
|
12
12
|
const interpolateEndAngle = (0, _d3Interpolate.interpolateNumber)(from.endAngle, to.endAngle);
|
|
13
|
-
const
|
|
14
|
-
const interpolateOuterRadius = (0, _d3Interpolate.interpolateNumber)(from.outerRadius, to.outerRadius);
|
|
13
|
+
const interpolateArcLabelRadius = (0, _d3Interpolate.interpolateNumber)(from.arcLabelRadius, to.arcLabelRadius);
|
|
15
14
|
const interpolatePaddingAngle = (0, _d3Interpolate.interpolateNumber)(from.paddingAngle, to.paddingAngle);
|
|
16
15
|
const interpolateCornerRadius = (0, _d3Interpolate.interpolateNumber)(from.cornerRadius, to.cornerRadius);
|
|
17
16
|
return t => {
|
|
18
17
|
return {
|
|
19
18
|
startAngle: interpolateStartAngle(t),
|
|
20
19
|
endAngle: interpolateEndAngle(t),
|
|
21
|
-
|
|
22
|
-
outerRadius: interpolateOuterRadius(t),
|
|
20
|
+
arcLabelRadius: interpolateArcLabelRadius(t),
|
|
23
21
|
paddingAngle: interpolatePaddingAngle(t),
|
|
24
22
|
cornerRadius: interpolateCornerRadius(t)
|
|
25
23
|
};
|
|
@@ -33,16 +31,14 @@ function useAnimatePieArcLabel(props) {
|
|
|
33
31
|
const initialProps = {
|
|
34
32
|
startAngle: (props.startAngle + props.endAngle) / 2,
|
|
35
33
|
endAngle: (props.startAngle + props.endAngle) / 2,
|
|
36
|
-
|
|
37
|
-
outerRadius: props.arcLabelRadius ?? props.outerRadius,
|
|
34
|
+
arcLabelRadius: props.arcLabelRadius,
|
|
38
35
|
paddingAngle: props.paddingAngle,
|
|
39
36
|
cornerRadius: props.cornerRadius
|
|
40
37
|
};
|
|
41
38
|
return (0, _useAnimate.useAnimate)({
|
|
42
39
|
startAngle: props.startAngle,
|
|
43
40
|
endAngle: props.endAngle,
|
|
44
|
-
|
|
45
|
-
outerRadius: props.arcLabelRadius ?? props.outerRadius,
|
|
41
|
+
arcLabelRadius: props.arcLabelRadius,
|
|
46
42
|
paddingAngle: props.paddingAngle,
|
|
47
43
|
cornerRadius: props.cornerRadius
|
|
48
44
|
}, {
|
|
@@ -52,8 +48,8 @@ function useAnimatePieArcLabel(props) {
|
|
|
52
48
|
padAngle: animatedProps.paddingAngle,
|
|
53
49
|
startAngle: animatedProps.startAngle,
|
|
54
50
|
endAngle: animatedProps.endAngle,
|
|
55
|
-
innerRadius: animatedProps.
|
|
56
|
-
outerRadius: animatedProps.
|
|
51
|
+
innerRadius: animatedProps.arcLabelRadius,
|
|
52
|
+
outerRadius: animatedProps.arcLabelRadius
|
|
57
53
|
});
|
|
58
54
|
return {
|
|
59
55
|
x,
|
|
@@ -4,16 +4,14 @@ import { useAnimate } from "./useAnimate.mjs";
|
|
|
4
4
|
function pieArcLabelPropsInterpolator(from, to) {
|
|
5
5
|
const interpolateStartAngle = interpolateNumber(from.startAngle, to.startAngle);
|
|
6
6
|
const interpolateEndAngle = interpolateNumber(from.endAngle, to.endAngle);
|
|
7
|
-
const
|
|
8
|
-
const interpolateOuterRadius = interpolateNumber(from.outerRadius, to.outerRadius);
|
|
7
|
+
const interpolateArcLabelRadius = interpolateNumber(from.arcLabelRadius, to.arcLabelRadius);
|
|
9
8
|
const interpolatePaddingAngle = interpolateNumber(from.paddingAngle, to.paddingAngle);
|
|
10
9
|
const interpolateCornerRadius = interpolateNumber(from.cornerRadius, to.cornerRadius);
|
|
11
10
|
return t => {
|
|
12
11
|
return {
|
|
13
12
|
startAngle: interpolateStartAngle(t),
|
|
14
13
|
endAngle: interpolateEndAngle(t),
|
|
15
|
-
|
|
16
|
-
outerRadius: interpolateOuterRadius(t),
|
|
14
|
+
arcLabelRadius: interpolateArcLabelRadius(t),
|
|
17
15
|
paddingAngle: interpolatePaddingAngle(t),
|
|
18
16
|
cornerRadius: interpolateCornerRadius(t)
|
|
19
17
|
};
|
|
@@ -27,16 +25,14 @@ export function useAnimatePieArcLabel(props) {
|
|
|
27
25
|
const initialProps = {
|
|
28
26
|
startAngle: (props.startAngle + props.endAngle) / 2,
|
|
29
27
|
endAngle: (props.startAngle + props.endAngle) / 2,
|
|
30
|
-
|
|
31
|
-
outerRadius: props.arcLabelRadius ?? props.outerRadius,
|
|
28
|
+
arcLabelRadius: props.arcLabelRadius,
|
|
32
29
|
paddingAngle: props.paddingAngle,
|
|
33
30
|
cornerRadius: props.cornerRadius
|
|
34
31
|
};
|
|
35
32
|
return useAnimate({
|
|
36
33
|
startAngle: props.startAngle,
|
|
37
34
|
endAngle: props.endAngle,
|
|
38
|
-
|
|
39
|
-
outerRadius: props.arcLabelRadius ?? props.outerRadius,
|
|
35
|
+
arcLabelRadius: props.arcLabelRadius,
|
|
40
36
|
paddingAngle: props.paddingAngle,
|
|
41
37
|
cornerRadius: props.cornerRadius
|
|
42
38
|
}, {
|
|
@@ -46,8 +42,8 @@ export function useAnimatePieArcLabel(props) {
|
|
|
46
42
|
padAngle: animatedProps.paddingAngle,
|
|
47
43
|
startAngle: animatedProps.startAngle,
|
|
48
44
|
endAngle: animatedProps.endAngle,
|
|
49
|
-
innerRadius: animatedProps.
|
|
50
|
-
outerRadius: animatedProps.
|
|
45
|
+
innerRadius: animatedProps.arcLabelRadius,
|
|
46
|
+
outerRadius: animatedProps.arcLabelRadius
|
|
51
47
|
});
|
|
52
48
|
return {
|
|
53
49
|
x,
|
package/hooks/useChartRootRef.js
CHANGED
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.useChartRootRef = useChartRootRef;
|
|
8
|
-
var
|
|
8
|
+
var _ChartsProvider = require("../context/ChartsProvider");
|
|
9
9
|
/**
|
|
10
10
|
* Get the ref for the root chart element.
|
|
11
11
|
* @returns The root chart element ref.
|
|
@@ -13,6 +13,6 @@ var _ChartProvider = require("../context/ChartProvider");
|
|
|
13
13
|
function useChartRootRef() {
|
|
14
14
|
const {
|
|
15
15
|
instance
|
|
16
|
-
} = (0,
|
|
16
|
+
} = (0, _ChartsProvider.useChartsContext)();
|
|
17
17
|
return instance.chartRootRef;
|
|
18
18
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { useChartsContext } from "../context/ChartsProvider/index.mjs";
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Get the ref for the root chart element.
|
|
@@ -9,6 +9,6 @@ import { useChartContext } from "../context/ChartProvider/index.mjs";
|
|
|
9
9
|
export function useChartRootRef() {
|
|
10
10
|
const {
|
|
11
11
|
instance
|
|
12
|
-
} =
|
|
12
|
+
} = useChartsContext();
|
|
13
13
|
return instance.chartRootRef;
|
|
14
14
|
}
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.useChartsLayerContainerRef = useChartsLayerContainerRef;
|
|
8
|
-
var
|
|
8
|
+
var _ChartsProvider = require("../context/ChartsProvider");
|
|
9
9
|
/**
|
|
10
10
|
* Get the ref for the chart surface element.
|
|
11
11
|
* @returns The chart surface ref.
|
|
@@ -13,6 +13,6 @@ var _ChartProvider = require("../context/ChartProvider");
|
|
|
13
13
|
function useChartsLayerContainerRef() {
|
|
14
14
|
const {
|
|
15
15
|
instance
|
|
16
|
-
} = (0,
|
|
16
|
+
} = (0, _ChartsProvider.useChartsContext)();
|
|
17
17
|
return instance.chartsLayerContainerRef;
|
|
18
18
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { useChartsContext } from "../context/ChartsProvider/index.mjs";
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Get the ref for the chart surface element.
|
|
@@ -9,6 +9,6 @@ import { useChartContext } from "../context/ChartProvider/index.mjs";
|
|
|
9
9
|
export function useChartsLayerContainerRef() {
|
|
10
10
|
const {
|
|
11
11
|
instance
|
|
12
|
-
} =
|
|
12
|
+
} = useChartsContext();
|
|
13
13
|
return instance.chartsLayerContainerRef;
|
|
14
14
|
}
|
package/hooks/useDataset.js
CHANGED
|
@@ -13,5 +13,5 @@ var _useChartSeries = require("../internals/plugins/corePlugins/useChartSeries/u
|
|
|
13
13
|
*/
|
|
14
14
|
function useDataset() {
|
|
15
15
|
const store = (0, _useStore.useStore)();
|
|
16
|
-
return store.use(_useChartSeries.
|
|
16
|
+
return store.use(_useChartSeries.selectorChartsDataset);
|
|
17
17
|
}
|