@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/BarChart/BarChart.mjs
CHANGED
|
@@ -13,9 +13,9 @@ import { ChartsClipPath } from "../ChartsClipPath/index.mjs";
|
|
|
13
13
|
import { ChartsGrid } from "../ChartsGrid/index.mjs";
|
|
14
14
|
import { ChartsOverlay } from "../ChartsOverlay/ChartsOverlay.mjs";
|
|
15
15
|
import { useBarChartProps } from "./useBarChartProps.mjs";
|
|
16
|
-
import {
|
|
16
|
+
import { ChartsDataProvider } from "../ChartsDataProvider/index.mjs";
|
|
17
17
|
import { ChartsSurface } from "../ChartsSurface/index.mjs";
|
|
18
|
-
import {
|
|
18
|
+
import { useChartsContainerProps } from "../ChartsContainer/useChartsContainerProps.mjs";
|
|
19
19
|
import { ChartsWrapper } from "../ChartsWrapper/index.mjs";
|
|
20
20
|
import { FocusedBar } from "./FocusedBar.mjs";
|
|
21
21
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
@@ -37,7 +37,7 @@ const BarChart = /*#__PURE__*/React.forwardRef(function BarChart(inProps, ref) {
|
|
|
37
37
|
});
|
|
38
38
|
const {
|
|
39
39
|
chartsWrapperProps,
|
|
40
|
-
|
|
40
|
+
chartsContainerProps,
|
|
41
41
|
barPlotProps,
|
|
42
42
|
gridProps,
|
|
43
43
|
clipPathProps,
|
|
@@ -49,12 +49,12 @@ const BarChart = /*#__PURE__*/React.forwardRef(function BarChart(inProps, ref) {
|
|
|
49
49
|
children
|
|
50
50
|
} = useBarChartProps(props);
|
|
51
51
|
const {
|
|
52
|
-
|
|
52
|
+
chartsDataProviderProps,
|
|
53
53
|
chartsSurfaceProps
|
|
54
|
-
} =
|
|
54
|
+
} = useChartsContainerProps(chartsContainerProps);
|
|
55
55
|
const Tooltip = props.slots?.tooltip ?? ChartsTooltip;
|
|
56
56
|
const Toolbar = props.slots?.toolbar;
|
|
57
|
-
return /*#__PURE__*/_jsx(
|
|
57
|
+
return /*#__PURE__*/_jsx(ChartsDataProvider, _extends({}, chartsDataProviderProps, {
|
|
58
58
|
children: /*#__PURE__*/_jsxs(ChartsWrapper, _extends({}, chartsWrapperProps, {
|
|
59
59
|
ref: ref,
|
|
60
60
|
children: [props.showToolbar && Toolbar ? /*#__PURE__*/_jsx(Toolbar, _extends({}, props.slotProps?.toolbar)) : null, !props.hideLegend && /*#__PURE__*/_jsx(ChartsLegend, _extends({}, legendProps)), /*#__PURE__*/_jsxs(ChartsSurface, _extends({}, chartsSurfaceProps, {
|
|
@@ -89,15 +89,6 @@ process.env.NODE_ENV !== "production" ? BarChart.propTypes = {
|
|
|
89
89
|
x: PropTypes.oneOf(['band', 'line', 'none']),
|
|
90
90
|
y: PropTypes.oneOf(['band', 'line', 'none'])
|
|
91
91
|
}),
|
|
92
|
-
/**
|
|
93
|
-
* @deprecated Use `barLabel` in the chart series instead.
|
|
94
|
-
* If provided, the function will be used to format the label of the bar.
|
|
95
|
-
* It can be set to 'value' to display the current value.
|
|
96
|
-
* @param {BarItem} item The item to format.
|
|
97
|
-
* @param {BarLabelContext} context data about the bar.
|
|
98
|
-
* @returns {string} The formatted label.
|
|
99
|
-
*/
|
|
100
|
-
barLabel: PropTypes.oneOfType([PropTypes.oneOf(['value']), PropTypes.func]),
|
|
101
92
|
/**
|
|
102
93
|
* Defines the border radius of the bar element.
|
|
103
94
|
*/
|
|
@@ -121,6 +112,10 @@ process.env.NODE_ENV !== "production" ? BarChart.propTypes = {
|
|
|
121
112
|
* An array of objects that can be used to populate series and axes data using their `dataKey` property.
|
|
122
113
|
*/
|
|
123
114
|
dataset: PropTypes.arrayOf(PropTypes.object),
|
|
115
|
+
/**
|
|
116
|
+
* The description of the chart.
|
|
117
|
+
* Used to provide an accessible description for the chart.
|
|
118
|
+
*/
|
|
124
119
|
desc: PropTypes.string,
|
|
125
120
|
/**
|
|
126
121
|
* If `true`, the charts will not listen to the mouse move event.
|
|
@@ -132,6 +127,10 @@ process.env.NODE_ENV !== "production" ? BarChart.propTypes = {
|
|
|
132
127
|
* If `true`, disables keyboard navigation for the chart.
|
|
133
128
|
*/
|
|
134
129
|
disableKeyboardNavigation: PropTypes.bool,
|
|
130
|
+
/**
|
|
131
|
+
* Options to enable features planned for the next major.
|
|
132
|
+
*/
|
|
133
|
+
experimentalFeatures: PropTypes.object,
|
|
135
134
|
/**
|
|
136
135
|
* Option to display a cartesian grid in the background.
|
|
137
136
|
*/
|
|
@@ -285,7 +284,7 @@ process.env.NODE_ENV !== "production" ? BarChart.propTypes = {
|
|
|
285
284
|
onHighlightedAxisChange: PropTypes.func,
|
|
286
285
|
/**
|
|
287
286
|
* Callback fired when a bar item is clicked.
|
|
288
|
-
* @param {
|
|
287
|
+
* @param {MouseEvent} event The event source of the callback.
|
|
289
288
|
* @param {BarItemIdentifier} barItemIdentifier The bar item identifier.
|
|
290
289
|
*/
|
|
291
290
|
onItemClick: PropTypes.func,
|
|
@@ -339,6 +338,10 @@ process.env.NODE_ENV !== "production" ? BarChart.propTypes = {
|
|
|
339
338
|
slots: PropTypes.object,
|
|
340
339
|
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
|
341
340
|
theme: PropTypes.oneOf(['dark', 'light']),
|
|
341
|
+
/**
|
|
342
|
+
* The title of the chart.
|
|
343
|
+
* Used to provide an accessible label for the chart.
|
|
344
|
+
*/
|
|
342
345
|
title: PropTypes.string,
|
|
343
346
|
/**
|
|
344
347
|
* The controlled axis tooltip.
|
|
@@ -374,6 +377,7 @@ process.env.NODE_ENV !== "production" ? BarChart.propTypes = {
|
|
|
374
377
|
barGapRatio: PropTypes.number,
|
|
375
378
|
categoryGapRatio: PropTypes.number,
|
|
376
379
|
classes: PropTypes.object,
|
|
380
|
+
className: PropTypes.string,
|
|
377
381
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
378
382
|
colors: PropTypes.arrayOf(PropTypes.string).isRequired,
|
|
379
383
|
type: PropTypes.oneOf(['ordinal']).isRequired,
|
|
@@ -399,7 +403,7 @@ process.env.NODE_ENV !== "production" ? BarChart.propTypes = {
|
|
|
399
403
|
tickLabelStyle: PropTypes.object,
|
|
400
404
|
tickSize: PropTypes.number
|
|
401
405
|
})),
|
|
402
|
-
height: PropTypes.number,
|
|
406
|
+
height: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number]),
|
|
403
407
|
hideTooltip: PropTypes.bool,
|
|
404
408
|
id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
405
409
|
ignoreTooltip: PropTypes.bool,
|
|
@@ -432,6 +436,7 @@ process.env.NODE_ENV !== "production" ? BarChart.propTypes = {
|
|
|
432
436
|
}), PropTypes.shape({
|
|
433
437
|
axis: PropTypes.oneOf(['x']),
|
|
434
438
|
classes: PropTypes.object,
|
|
439
|
+
className: PropTypes.string,
|
|
435
440
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
436
441
|
colors: PropTypes.arrayOf(PropTypes.string).isRequired,
|
|
437
442
|
type: PropTypes.oneOf(['ordinal']).isRequired,
|
|
@@ -457,7 +462,7 @@ process.env.NODE_ENV !== "production" ? BarChart.propTypes = {
|
|
|
457
462
|
tickLabelStyle: PropTypes.object,
|
|
458
463
|
tickSize: PropTypes.number
|
|
459
464
|
})),
|
|
460
|
-
height: PropTypes.number,
|
|
465
|
+
height: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number]),
|
|
461
466
|
hideTooltip: PropTypes.bool,
|
|
462
467
|
id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
463
468
|
ignoreTooltip: PropTypes.bool,
|
|
@@ -490,6 +495,7 @@ process.env.NODE_ENV !== "production" ? BarChart.propTypes = {
|
|
|
490
495
|
}), PropTypes.shape({
|
|
491
496
|
axis: PropTypes.oneOf(['x']),
|
|
492
497
|
classes: PropTypes.object,
|
|
498
|
+
className: PropTypes.string,
|
|
493
499
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
494
500
|
color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
|
|
495
501
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
@@ -505,7 +511,7 @@ process.env.NODE_ENV !== "production" ? BarChart.propTypes = {
|
|
|
505
511
|
disableLine: PropTypes.bool,
|
|
506
512
|
disableTicks: PropTypes.bool,
|
|
507
513
|
domainLimit: PropTypes.oneOfType([PropTypes.oneOf(['nice', 'strict']), PropTypes.func]),
|
|
508
|
-
height: PropTypes.number,
|
|
514
|
+
height: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number]),
|
|
509
515
|
hideTooltip: PropTypes.bool,
|
|
510
516
|
id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
511
517
|
ignoreTooltip: PropTypes.bool,
|
|
@@ -535,6 +541,7 @@ process.env.NODE_ENV !== "production" ? BarChart.propTypes = {
|
|
|
535
541
|
}), PropTypes.shape({
|
|
536
542
|
axis: PropTypes.oneOf(['x']),
|
|
537
543
|
classes: PropTypes.object,
|
|
544
|
+
className: PropTypes.string,
|
|
538
545
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
539
546
|
color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
|
|
540
547
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
@@ -551,7 +558,7 @@ process.env.NODE_ENV !== "production" ? BarChart.propTypes = {
|
|
|
551
558
|
disableLine: PropTypes.bool,
|
|
552
559
|
disableTicks: PropTypes.bool,
|
|
553
560
|
domainLimit: PropTypes.oneOfType([PropTypes.oneOf(['nice', 'strict']), PropTypes.func]),
|
|
554
|
-
height: PropTypes.number,
|
|
561
|
+
height: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number]),
|
|
555
562
|
hideTooltip: PropTypes.bool,
|
|
556
563
|
id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
557
564
|
ignoreTooltip: PropTypes.bool,
|
|
@@ -581,6 +588,7 @@ process.env.NODE_ENV !== "production" ? BarChart.propTypes = {
|
|
|
581
588
|
}), PropTypes.shape({
|
|
582
589
|
axis: PropTypes.oneOf(['x']),
|
|
583
590
|
classes: PropTypes.object,
|
|
591
|
+
className: PropTypes.string,
|
|
584
592
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
585
593
|
color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
|
|
586
594
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
@@ -596,7 +604,7 @@ process.env.NODE_ENV !== "production" ? BarChart.propTypes = {
|
|
|
596
604
|
disableLine: PropTypes.bool,
|
|
597
605
|
disableTicks: PropTypes.bool,
|
|
598
606
|
domainLimit: PropTypes.oneOfType([PropTypes.oneOf(['nice', 'strict']), PropTypes.func]),
|
|
599
|
-
height: PropTypes.number,
|
|
607
|
+
height: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number]),
|
|
600
608
|
hideTooltip: PropTypes.bool,
|
|
601
609
|
id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
602
610
|
ignoreTooltip: PropTypes.bool,
|
|
@@ -626,6 +634,7 @@ process.env.NODE_ENV !== "production" ? BarChart.propTypes = {
|
|
|
626
634
|
}), PropTypes.shape({
|
|
627
635
|
axis: PropTypes.oneOf(['x']),
|
|
628
636
|
classes: PropTypes.object,
|
|
637
|
+
className: PropTypes.string,
|
|
629
638
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
630
639
|
color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
|
|
631
640
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
@@ -641,7 +650,7 @@ process.env.NODE_ENV !== "production" ? BarChart.propTypes = {
|
|
|
641
650
|
disableLine: PropTypes.bool,
|
|
642
651
|
disableTicks: PropTypes.bool,
|
|
643
652
|
domainLimit: PropTypes.oneOfType([PropTypes.oneOf(['nice', 'strict']), PropTypes.func]),
|
|
644
|
-
height: PropTypes.number,
|
|
653
|
+
height: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number]),
|
|
645
654
|
hideTooltip: PropTypes.bool,
|
|
646
655
|
id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
647
656
|
ignoreTooltip: PropTypes.bool,
|
|
@@ -671,6 +680,7 @@ process.env.NODE_ENV !== "production" ? BarChart.propTypes = {
|
|
|
671
680
|
}), PropTypes.shape({
|
|
672
681
|
axis: PropTypes.oneOf(['x']),
|
|
673
682
|
classes: PropTypes.object,
|
|
683
|
+
className: PropTypes.string,
|
|
674
684
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
675
685
|
color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
|
|
676
686
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
@@ -686,7 +696,7 @@ process.env.NODE_ENV !== "production" ? BarChart.propTypes = {
|
|
|
686
696
|
disableLine: PropTypes.bool,
|
|
687
697
|
disableTicks: PropTypes.bool,
|
|
688
698
|
domainLimit: PropTypes.oneOfType([PropTypes.oneOf(['nice', 'strict']), PropTypes.func]),
|
|
689
|
-
height: PropTypes.number,
|
|
699
|
+
height: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number]),
|
|
690
700
|
hideTooltip: PropTypes.bool,
|
|
691
701
|
id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
692
702
|
ignoreTooltip: PropTypes.bool,
|
|
@@ -720,6 +730,7 @@ process.env.NODE_ENV !== "production" ? BarChart.propTypes = {
|
|
|
720
730
|
}), PropTypes.shape({
|
|
721
731
|
axis: PropTypes.oneOf(['x']),
|
|
722
732
|
classes: PropTypes.object,
|
|
733
|
+
className: PropTypes.string,
|
|
723
734
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
724
735
|
color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
|
|
725
736
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
@@ -735,7 +746,7 @@ process.env.NODE_ENV !== "production" ? BarChart.propTypes = {
|
|
|
735
746
|
disableLine: PropTypes.bool,
|
|
736
747
|
disableTicks: PropTypes.bool,
|
|
737
748
|
domainLimit: PropTypes.oneOfType([PropTypes.oneOf(['nice', 'strict']), PropTypes.func]),
|
|
738
|
-
height: PropTypes.number,
|
|
749
|
+
height: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number]),
|
|
739
750
|
hideTooltip: PropTypes.bool,
|
|
740
751
|
id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
741
752
|
ignoreTooltip: PropTypes.bool,
|
|
@@ -769,6 +780,7 @@ process.env.NODE_ENV !== "production" ? BarChart.propTypes = {
|
|
|
769
780
|
}), PropTypes.shape({
|
|
770
781
|
axis: PropTypes.oneOf(['x']),
|
|
771
782
|
classes: PropTypes.object,
|
|
783
|
+
className: PropTypes.string,
|
|
772
784
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
773
785
|
color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
|
|
774
786
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
@@ -784,7 +796,7 @@ process.env.NODE_ENV !== "production" ? BarChart.propTypes = {
|
|
|
784
796
|
disableLine: PropTypes.bool,
|
|
785
797
|
disableTicks: PropTypes.bool,
|
|
786
798
|
domainLimit: PropTypes.oneOfType([PropTypes.oneOf(['nice', 'strict']), PropTypes.func]),
|
|
787
|
-
height: PropTypes.number,
|
|
799
|
+
height: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number]),
|
|
788
800
|
hideTooltip: PropTypes.bool,
|
|
789
801
|
id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
790
802
|
ignoreTooltip: PropTypes.bool,
|
|
@@ -822,6 +834,7 @@ process.env.NODE_ENV !== "production" ? BarChart.propTypes = {
|
|
|
822
834
|
barGapRatio: PropTypes.number,
|
|
823
835
|
categoryGapRatio: PropTypes.number,
|
|
824
836
|
classes: PropTypes.object,
|
|
837
|
+
className: PropTypes.string,
|
|
825
838
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
826
839
|
colors: PropTypes.arrayOf(PropTypes.string).isRequired,
|
|
827
840
|
type: PropTypes.oneOf(['ordinal']).isRequired,
|
|
@@ -875,10 +888,11 @@ process.env.NODE_ENV !== "production" ? BarChart.propTypes = {
|
|
|
875
888
|
tickSize: PropTypes.number,
|
|
876
889
|
tickSpacing: PropTypes.number,
|
|
877
890
|
valueFormatter: PropTypes.func,
|
|
878
|
-
width: PropTypes.number
|
|
891
|
+
width: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number])
|
|
879
892
|
}), PropTypes.shape({
|
|
880
893
|
axis: PropTypes.oneOf(['y']),
|
|
881
894
|
classes: PropTypes.object,
|
|
895
|
+
className: PropTypes.string,
|
|
882
896
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
883
897
|
colors: PropTypes.arrayOf(PropTypes.string).isRequired,
|
|
884
898
|
type: PropTypes.oneOf(['ordinal']).isRequired,
|
|
@@ -932,10 +946,11 @@ process.env.NODE_ENV !== "production" ? BarChart.propTypes = {
|
|
|
932
946
|
tickSize: PropTypes.number,
|
|
933
947
|
tickSpacing: PropTypes.number,
|
|
934
948
|
valueFormatter: PropTypes.func,
|
|
935
|
-
width: PropTypes.number
|
|
949
|
+
width: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number])
|
|
936
950
|
}), PropTypes.shape({
|
|
937
951
|
axis: PropTypes.oneOf(['y']),
|
|
938
952
|
classes: PropTypes.object,
|
|
953
|
+
className: PropTypes.string,
|
|
939
954
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
940
955
|
color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
|
|
941
956
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
@@ -976,10 +991,11 @@ process.env.NODE_ENV !== "production" ? BarChart.propTypes = {
|
|
|
976
991
|
tickSize: PropTypes.number,
|
|
977
992
|
tickSpacing: PropTypes.number,
|
|
978
993
|
valueFormatter: PropTypes.func,
|
|
979
|
-
width: PropTypes.number
|
|
994
|
+
width: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number])
|
|
980
995
|
}), PropTypes.shape({
|
|
981
996
|
axis: PropTypes.oneOf(['y']),
|
|
982
997
|
classes: PropTypes.object,
|
|
998
|
+
className: PropTypes.string,
|
|
983
999
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
984
1000
|
color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
|
|
985
1001
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
@@ -1021,10 +1037,11 @@ process.env.NODE_ENV !== "production" ? BarChart.propTypes = {
|
|
|
1021
1037
|
tickSize: PropTypes.number,
|
|
1022
1038
|
tickSpacing: PropTypes.number,
|
|
1023
1039
|
valueFormatter: PropTypes.func,
|
|
1024
|
-
width: PropTypes.number
|
|
1040
|
+
width: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number])
|
|
1025
1041
|
}), PropTypes.shape({
|
|
1026
1042
|
axis: PropTypes.oneOf(['y']),
|
|
1027
1043
|
classes: PropTypes.object,
|
|
1044
|
+
className: PropTypes.string,
|
|
1028
1045
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
1029
1046
|
color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
|
|
1030
1047
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
@@ -1065,10 +1082,11 @@ process.env.NODE_ENV !== "production" ? BarChart.propTypes = {
|
|
|
1065
1082
|
tickSize: PropTypes.number,
|
|
1066
1083
|
tickSpacing: PropTypes.number,
|
|
1067
1084
|
valueFormatter: PropTypes.func,
|
|
1068
|
-
width: PropTypes.number
|
|
1085
|
+
width: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number])
|
|
1069
1086
|
}), PropTypes.shape({
|
|
1070
1087
|
axis: PropTypes.oneOf(['y']),
|
|
1071
1088
|
classes: PropTypes.object,
|
|
1089
|
+
className: PropTypes.string,
|
|
1072
1090
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
1073
1091
|
color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
|
|
1074
1092
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
@@ -1109,10 +1127,11 @@ process.env.NODE_ENV !== "production" ? BarChart.propTypes = {
|
|
|
1109
1127
|
tickSize: PropTypes.number,
|
|
1110
1128
|
tickSpacing: PropTypes.number,
|
|
1111
1129
|
valueFormatter: PropTypes.func,
|
|
1112
|
-
width: PropTypes.number
|
|
1130
|
+
width: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number])
|
|
1113
1131
|
}), PropTypes.shape({
|
|
1114
1132
|
axis: PropTypes.oneOf(['y']),
|
|
1115
1133
|
classes: PropTypes.object,
|
|
1134
|
+
className: PropTypes.string,
|
|
1116
1135
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
1117
1136
|
color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
|
|
1118
1137
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
@@ -1157,10 +1176,11 @@ process.env.NODE_ENV !== "production" ? BarChart.propTypes = {
|
|
|
1157
1176
|
tickSize: PropTypes.number,
|
|
1158
1177
|
tickSpacing: PropTypes.number,
|
|
1159
1178
|
valueFormatter: PropTypes.func,
|
|
1160
|
-
width: PropTypes.number
|
|
1179
|
+
width: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number])
|
|
1161
1180
|
}), PropTypes.shape({
|
|
1162
1181
|
axis: PropTypes.oneOf(['y']),
|
|
1163
1182
|
classes: PropTypes.object,
|
|
1183
|
+
className: PropTypes.string,
|
|
1164
1184
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
1165
1185
|
color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
|
|
1166
1186
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
@@ -1205,10 +1225,11 @@ process.env.NODE_ENV !== "production" ? BarChart.propTypes = {
|
|
|
1205
1225
|
tickSize: PropTypes.number,
|
|
1206
1226
|
tickSpacing: PropTypes.number,
|
|
1207
1227
|
valueFormatter: PropTypes.func,
|
|
1208
|
-
width: PropTypes.number
|
|
1228
|
+
width: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number])
|
|
1209
1229
|
}), PropTypes.shape({
|
|
1210
1230
|
axis: PropTypes.oneOf(['y']),
|
|
1211
1231
|
classes: PropTypes.object,
|
|
1232
|
+
className: PropTypes.string,
|
|
1212
1233
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
1213
1234
|
color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
|
|
1214
1235
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
@@ -1249,7 +1270,7 @@ process.env.NODE_ENV !== "production" ? BarChart.propTypes = {
|
|
|
1249
1270
|
tickSize: PropTypes.number,
|
|
1250
1271
|
tickSpacing: PropTypes.number,
|
|
1251
1272
|
valueFormatter: PropTypes.func,
|
|
1252
|
-
width: PropTypes.number
|
|
1273
|
+
width: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number])
|
|
1253
1274
|
})]).isRequired)
|
|
1254
1275
|
} : void 0;
|
|
1255
1276
|
export { BarChart };
|
package/BarChart/BarElement.js
CHANGED
|
@@ -13,8 +13,6 @@ var React = _interopRequireWildcard(require("react"));
|
|
|
13
13
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
14
14
|
var _useSlotProps = _interopRequireDefault(require("@mui/utils/useSlotProps"));
|
|
15
15
|
var _barClasses = require("./barClasses");
|
|
16
|
-
var _barElementClasses = require("./barElementClasses");
|
|
17
|
-
var _useInteractionItemProps = require("../hooks/useInteractionItemProps");
|
|
18
16
|
var _useItemHighlightState = require("../hooks/useItemHighlightState");
|
|
19
17
|
var _AnimatedBarElement = require("./AnimatedBarElement");
|
|
20
18
|
var _useIsItemFocused = require("../hooks/useIsItemFocused");
|
|
@@ -46,7 +44,6 @@ function BarElement(props) {
|
|
|
46
44
|
seriesId,
|
|
47
45
|
dataIndex
|
|
48
46
|
}), [seriesId, dataIndex]);
|
|
49
|
-
const interactionProps = (0, _useInteractionItemProps.useInteractionItemProps)(itemIdentifier);
|
|
50
47
|
const highlightState = (0, _useItemHighlightState.useItemHighlightState)(itemIdentifier);
|
|
51
48
|
const isHighlighted = highlightState === 'highlighted';
|
|
52
49
|
const isFaded = highlightState === 'faded';
|
|
@@ -65,13 +62,12 @@ function BarElement(props) {
|
|
|
65
62
|
isFocused
|
|
66
63
|
};
|
|
67
64
|
const classes = (0, _barClasses.useUtilityClasses)(ownerState);
|
|
68
|
-
const deprecatedClasses = (0, _barElementClasses.useUtilityClasses)(ownerState);
|
|
69
65
|
const Bar = slots?.bar ?? _AnimatedBarElement.AnimatedBarElement;
|
|
70
66
|
const barProps = (0, _useSlotProps.default)({
|
|
71
67
|
elementType: Bar,
|
|
72
68
|
externalSlotProps: slotProps?.bar,
|
|
73
69
|
externalForwardedProps: other,
|
|
74
|
-
additionalProps:
|
|
70
|
+
additionalProps: {
|
|
75
71
|
seriesId,
|
|
76
72
|
dataIndex,
|
|
77
73
|
color,
|
|
@@ -83,14 +79,14 @@ function BarElement(props) {
|
|
|
83
79
|
height,
|
|
84
80
|
style,
|
|
85
81
|
onClick,
|
|
86
|
-
cursor: onClick ? 'pointer' :
|
|
82
|
+
cursor: onClick ? 'pointer' : undefined,
|
|
87
83
|
stroke: 'none',
|
|
88
84
|
fill: color,
|
|
89
85
|
skipAnimation,
|
|
90
86
|
layout,
|
|
91
87
|
hidden
|
|
92
|
-
}
|
|
93
|
-
className:
|
|
88
|
+
},
|
|
89
|
+
className: classes.element,
|
|
94
90
|
ownerState
|
|
95
91
|
});
|
|
96
92
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(Bar, (0, _extends2.default)({}, barProps));
|
package/BarChart/BarElement.mjs
CHANGED
|
@@ -7,8 +7,6 @@ import * as React from 'react';
|
|
|
7
7
|
import PropTypes from 'prop-types';
|
|
8
8
|
import useSlotProps from '@mui/utils/useSlotProps';
|
|
9
9
|
import { useUtilityClasses } from "./barClasses.mjs";
|
|
10
|
-
import { useUtilityClasses as useDeprecatedUtilityClasses } from "./barElementClasses.mjs";
|
|
11
|
-
import { useInteractionItemProps } from "../hooks/useInteractionItemProps.mjs";
|
|
12
10
|
import { useItemHighlightState } from "../hooks/useItemHighlightState.mjs";
|
|
13
11
|
import { AnimatedBarElement } from "./AnimatedBarElement.mjs";
|
|
14
12
|
import { useIsItemFocused } from "../hooks/useIsItemFocused.mjs";
|
|
@@ -39,7 +37,6 @@ function BarElement(props) {
|
|
|
39
37
|
seriesId,
|
|
40
38
|
dataIndex
|
|
41
39
|
}), [seriesId, dataIndex]);
|
|
42
|
-
const interactionProps = useInteractionItemProps(itemIdentifier);
|
|
43
40
|
const highlightState = useItemHighlightState(itemIdentifier);
|
|
44
41
|
const isHighlighted = highlightState === 'highlighted';
|
|
45
42
|
const isFaded = highlightState === 'faded';
|
|
@@ -58,13 +55,12 @@ function BarElement(props) {
|
|
|
58
55
|
isFocused
|
|
59
56
|
};
|
|
60
57
|
const classes = useUtilityClasses(ownerState);
|
|
61
|
-
const deprecatedClasses = useDeprecatedUtilityClasses(ownerState);
|
|
62
58
|
const Bar = slots?.bar ?? AnimatedBarElement;
|
|
63
59
|
const barProps = useSlotProps({
|
|
64
60
|
elementType: Bar,
|
|
65
61
|
externalSlotProps: slotProps?.bar,
|
|
66
62
|
externalForwardedProps: other,
|
|
67
|
-
additionalProps:
|
|
63
|
+
additionalProps: {
|
|
68
64
|
seriesId,
|
|
69
65
|
dataIndex,
|
|
70
66
|
color,
|
|
@@ -76,14 +72,14 @@ function BarElement(props) {
|
|
|
76
72
|
height,
|
|
77
73
|
style,
|
|
78
74
|
onClick,
|
|
79
|
-
cursor: onClick ? 'pointer' :
|
|
75
|
+
cursor: onClick ? 'pointer' : undefined,
|
|
80
76
|
stroke: 'none',
|
|
81
77
|
fill: color,
|
|
82
78
|
skipAnimation,
|
|
83
79
|
layout,
|
|
84
80
|
hidden
|
|
85
|
-
}
|
|
86
|
-
className:
|
|
81
|
+
},
|
|
82
|
+
className: classes.element,
|
|
87
83
|
ownerState
|
|
88
84
|
});
|
|
89
85
|
return /*#__PURE__*/_jsx(Bar, _extends({}, barProps));
|
|
@@ -14,22 +14,12 @@ var React = _interopRequireWildcard(require("react"));
|
|
|
14
14
|
var _styles = require("@mui/material/styles");
|
|
15
15
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
16
16
|
var _useAnimateBarLabel = require("../../hooks/animation/useAnimateBarLabel");
|
|
17
|
-
var _barLabelClasses = require("./barLabelClasses");
|
|
18
17
|
var _animation = require("../../internals/animation/animation");
|
|
19
18
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
20
19
|
const _excluded = ["seriesId", "dataIndex", "color", "isFaded", "isHighlighted", "classes", "skipAnimation", "layout", "xOrigin", "yOrigin", "placement", "hidden"];
|
|
21
20
|
const BarLabelComponent = exports.BarLabelComponent = (0, _styles.styled)('text', {
|
|
22
21
|
name: 'MuiBarLabel',
|
|
23
|
-
slot: 'Root'
|
|
24
|
-
overridesResolver: (_, styles) => [{
|
|
25
|
-
[`&.${_barLabelClasses.barLabelClasses.faded}`]: styles.faded
|
|
26
|
-
}, {
|
|
27
|
-
[`&.${_barLabelClasses.barLabelClasses.highlighted}`]: styles.highlighted
|
|
28
|
-
}, {
|
|
29
|
-
[`&[data-faded]`]: styles.faded
|
|
30
|
-
}, {
|
|
31
|
-
[`&[data-highlighted]`]: styles.highlighted
|
|
32
|
-
}, styles.root]
|
|
22
|
+
slot: 'Root'
|
|
33
23
|
})(({
|
|
34
24
|
theme
|
|
35
25
|
}) => (0, _extends2.default)({}, theme?.typography?.body2, {
|
|
@@ -7,21 +7,11 @@ import * as React from 'react';
|
|
|
7
7
|
import { styled, useThemeProps } from '@mui/material/styles';
|
|
8
8
|
import PropTypes from 'prop-types';
|
|
9
9
|
import { useAnimateBarLabel } from "../../hooks/animation/useAnimateBarLabel.mjs";
|
|
10
|
-
import { barLabelClasses } from "./barLabelClasses.mjs";
|
|
11
10
|
import { ANIMATION_DURATION_MS, ANIMATION_TIMING_FUNCTION } from "../../internals/animation/animation.mjs";
|
|
12
11
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
12
|
export const BarLabelComponent = styled('text', {
|
|
14
13
|
name: 'MuiBarLabel',
|
|
15
|
-
slot: 'Root'
|
|
16
|
-
overridesResolver: (_, styles) => [{
|
|
17
|
-
[`&.${barLabelClasses.faded}`]: styles.faded
|
|
18
|
-
}, {
|
|
19
|
-
[`&.${barLabelClasses.highlighted}`]: styles.highlighted
|
|
20
|
-
}, {
|
|
21
|
-
[`&[data-faded]`]: styles.faded
|
|
22
|
-
}, {
|
|
23
|
-
[`&[data-highlighted]`]: styles.highlighted
|
|
24
|
-
}, styles.root]
|
|
14
|
+
slot: 'Root'
|
|
25
15
|
})(({
|
|
26
16
|
theme
|
|
27
17
|
}) => _extends({}, theme?.typography?.body2, {
|
|
@@ -12,7 +12,6 @@ var React = _interopRequireWildcard(require("react"));
|
|
|
12
12
|
var _useSlotProps2 = _interopRequireDefault(require("@mui/utils/useSlotProps"));
|
|
13
13
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
14
14
|
var _barClasses = require("../barClasses");
|
|
15
|
-
var _barLabelClasses = require("./barLabelClasses");
|
|
16
15
|
var _getBarLabel = require("./getBarLabel");
|
|
17
16
|
var _BarLabel = require("./BarLabel");
|
|
18
17
|
var _useItemHighlightState = require("../../hooks/useItemHighlightState");
|
|
@@ -62,7 +61,6 @@ function BarLabelItem(props) {
|
|
|
62
61
|
layout
|
|
63
62
|
};
|
|
64
63
|
const classes = (0, _barClasses.useUtilityClasses)(ownerState);
|
|
65
|
-
const deprecatedClasses = (0, _barLabelClasses.useUtilityClasses)(ownerState);
|
|
66
64
|
const Component = slots?.barLabel ?? _BarLabel.BarLabel;
|
|
67
65
|
const _useSlotProps = (0, _useSlotProps2.default)({
|
|
68
66
|
elementType: Component,
|
|
@@ -75,7 +73,7 @@ function BarLabelItem(props) {
|
|
|
75
73
|
width,
|
|
76
74
|
height,
|
|
77
75
|
placement: barLabelPlacement,
|
|
78
|
-
className:
|
|
76
|
+
className: classes.label,
|
|
79
77
|
'data-highlighted': isHighlighted || undefined,
|
|
80
78
|
'data-faded': isFaded || undefined
|
|
81
79
|
}),
|
|
@@ -6,7 +6,6 @@ import * as React from 'react';
|
|
|
6
6
|
import useSlotProps from '@mui/utils/useSlotProps';
|
|
7
7
|
import PropTypes from 'prop-types';
|
|
8
8
|
import { useUtilityClasses } from "../barClasses.mjs";
|
|
9
|
-
import { useUtilityClasses as useDeprecatedUtilityClasses } from "./barLabelClasses.mjs";
|
|
10
9
|
import { getBarLabel } from "./getBarLabel.mjs";
|
|
11
10
|
import { BarLabel } from "./BarLabel.mjs";
|
|
12
11
|
import { useItemHighlightState } from "../../hooks/useItemHighlightState.mjs";
|
|
@@ -54,7 +53,6 @@ function BarLabelItem(props) {
|
|
|
54
53
|
layout
|
|
55
54
|
};
|
|
56
55
|
const classes = useUtilityClasses(ownerState);
|
|
57
|
-
const deprecatedClasses = useDeprecatedUtilityClasses(ownerState);
|
|
58
56
|
const Component = slots?.barLabel ?? BarLabel;
|
|
59
57
|
const _useSlotProps = useSlotProps({
|
|
60
58
|
elementType: Component,
|
|
@@ -67,7 +65,7 @@ function BarLabelItem(props) {
|
|
|
67
65
|
width,
|
|
68
66
|
height,
|
|
69
67
|
placement: barLabelPlacement,
|
|
70
|
-
className:
|
|
68
|
+
className: classes.label,
|
|
71
69
|
'data-highlighted': isHighlighted || undefined,
|
|
72
70
|
'data-faded': isFaded || undefined
|
|
73
71
|
}),
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { type AnimationData } from "../types.mjs";
|
|
2
|
-
import { type BarLabelItemProps } from "./BarLabelItem.mjs";
|
|
3
2
|
import type { SeriesId } from "../../models/seriesType/common.mjs";
|
|
4
3
|
import { type BarSeriesType, type BarValueType } from "../../models/seriesType/bar.mjs";
|
|
5
4
|
import { type BarLabelFunction } from "./BarLabel.types.mjs";
|
|
@@ -7,7 +6,6 @@ interface BarLabelPlotProps {
|
|
|
7
6
|
processedSeries: ProcessedBarLabelSeriesData;
|
|
8
7
|
className: string;
|
|
9
8
|
skipAnimation?: boolean;
|
|
10
|
-
barLabel?: BarLabelItemProps<BarValueType | null>['barLabel'];
|
|
11
9
|
}
|
|
12
10
|
export interface ProcessedBarLabelSeriesData {
|
|
13
11
|
seriesId: SeriesId;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { type AnimationData } from "../types.js";
|
|
2
|
-
import { type BarLabelItemProps } from "./BarLabelItem.js";
|
|
3
2
|
import type { SeriesId } from "../../models/seriesType/common.js";
|
|
4
3
|
import { type BarSeriesType, type BarValueType } from "../../models/seriesType/bar.js";
|
|
5
4
|
import { type BarLabelFunction } from "./BarLabel.types.js";
|
|
@@ -7,7 +6,6 @@ interface BarLabelPlotProps {
|
|
|
7
6
|
processedSeries: ProcessedBarLabelSeriesData;
|
|
8
7
|
className: string;
|
|
9
8
|
skipAnimation?: boolean;
|
|
10
|
-
barLabel?: BarLabelItemProps<BarValueType | null>['barLabel'];
|
|
11
9
|
}
|
|
12
10
|
export interface ProcessedBarLabelSeriesData {
|
|
13
11
|
seriesId: SeriesId;
|
|
@@ -29,8 +29,7 @@ function BarLabelPlot(props) {
|
|
|
29
29
|
xOrigin,
|
|
30
30
|
yOrigin
|
|
31
31
|
} = processedSeries;
|
|
32
|
-
|
|
33
|
-
if (!barLabel) {
|
|
32
|
+
if (!processedSeries.barLabel) {
|
|
34
33
|
return null;
|
|
35
34
|
}
|
|
36
35
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("g", {
|
|
@@ -60,7 +59,7 @@ function BarLabelPlot(props) {
|
|
|
60
59
|
layout: layout ?? 'vertical',
|
|
61
60
|
hidden: hidden
|
|
62
61
|
}, other, {
|
|
63
|
-
barLabel: barLabel,
|
|
62
|
+
barLabel: processedSeries.barLabel,
|
|
64
63
|
barLabelPlacement: processedSeries.barLabelPlacement || 'center'
|
|
65
64
|
}), dataIndex))
|
|
66
65
|
}, seriesId);
|
|
@@ -21,8 +21,7 @@ function BarLabelPlot(props) {
|
|
|
21
21
|
xOrigin,
|
|
22
22
|
yOrigin
|
|
23
23
|
} = processedSeries;
|
|
24
|
-
|
|
25
|
-
if (!barLabel) {
|
|
24
|
+
if (!processedSeries.barLabel) {
|
|
26
25
|
return null;
|
|
27
26
|
}
|
|
28
27
|
return /*#__PURE__*/_jsx("g", {
|
|
@@ -52,7 +51,7 @@ function BarLabelPlot(props) {
|
|
|
52
51
|
layout: layout ?? 'vertical',
|
|
53
52
|
hidden: hidden
|
|
54
53
|
}, other, {
|
|
55
|
-
barLabel: barLabel,
|
|
54
|
+
barLabel: processedSeries.barLabel,
|
|
56
55
|
barLabelPlacement: processedSeries.barLabelPlacement || 'center'
|
|
57
56
|
}), dataIndex))
|
|
58
57
|
}, seriesId);
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
export { BarLabel } from "./BarLabel.mjs";
|
|
2
2
|
export type { BarLabelProps } from "./BarLabel.mjs";
|
|
3
|
-
export { barLabelClasses, getBarLabelUtilityClass } from "./barLabelClasses.mjs";
|
|
4
3
|
export type { BarLabelSlotProps, BarLabelSlots } from "./BarLabelItem.mjs";
|
|
5
|
-
export type { BarLabelOwnerState, BarItem, BarLabelContext } from "./BarLabel.types.mjs";
|
|
6
|
-
export type { BarLabelClasses, BarLabelClassKey } from "./barLabelClasses.mjs";
|
|
4
|
+
export type { BarLabelOwnerState, BarItem, BarLabelContext } from "./BarLabel.types.mjs";
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
export { BarLabel } from "./BarLabel.js";
|
|
2
2
|
export type { BarLabelProps } from "./BarLabel.js";
|
|
3
|
-
export { barLabelClasses, getBarLabelUtilityClass } from "./barLabelClasses.js";
|
|
4
3
|
export type { BarLabelSlotProps, BarLabelSlots } from "./BarLabelItem.js";
|
|
5
|
-
export type { BarLabelOwnerState, BarItem, BarLabelContext } from "./BarLabel.types.js";
|
|
6
|
-
export type { BarLabelClasses, BarLabelClassKey } from "./barLabelClasses.js";
|
|
4
|
+
export type { BarLabelOwnerState, BarItem, BarLabelContext } from "./BarLabel.types.js";
|
|
@@ -9,17 +9,4 @@ Object.defineProperty(exports, "BarLabel", {
|
|
|
9
9
|
return _BarLabel.BarLabel;
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
|
-
|
|
13
|
-
enumerable: true,
|
|
14
|
-
get: function () {
|
|
15
|
-
return _barLabelClasses.barLabelClasses;
|
|
16
|
-
}
|
|
17
|
-
});
|
|
18
|
-
Object.defineProperty(exports, "getBarLabelUtilityClass", {
|
|
19
|
-
enumerable: true,
|
|
20
|
-
get: function () {
|
|
21
|
-
return _barLabelClasses.getBarLabelUtilityClass;
|
|
22
|
-
}
|
|
23
|
-
});
|
|
24
|
-
var _BarLabel = require("./BarLabel");
|
|
25
|
-
var _barLabelClasses = require("./barLabelClasses");
|
|
12
|
+
var _BarLabel = require("./BarLabel");
|