@mui/x-charts 9.0.0-alpha.3 → 9.0.0-alpha.4
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 +36 -6
- package/BarChart/BarChart.mjs +36 -6
- package/BarChart/BarElement.js +1 -3
- package/BarChart/BarElement.mjs +1 -3
- 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/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 +4 -0
- package/BarChart/BarPlot.d.ts +4 -0
- package/BarChart/BarPlot.js +8 -2
- package/BarChart/BarPlot.mjs +8 -2
- package/BarChart/BatchBarPlot/BatchBarPlot.js +3 -3
- package/BarChart/BatchBarPlot/BatchBarPlot.mjs +3 -3
- 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/legend.js +2 -21
- package/BarChart/seriesConfig/bar/legend.mjs +2 -21
- package/BarChart/useBarChartProps.d.mts +2 -2
- package/BarChart/useBarChartProps.d.ts +2 -2
- package/BarChart/useBarChartProps.js +2 -2
- package/BarChart/useBarChartProps.mjs +2 -2
- package/BarChart/useRegisterItemClickHandlers.js +2 -2
- package/BarChart/useRegisterItemClickHandlers.mjs +2 -2
- package/CHANGELOG.md +123 -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 +49 -15
- package/ChartsContainer/ChartsContainer.mjs +49 -15
- 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 +49 -9
- package/ChartsLayerContainer/ChartsLayerContainer.mjs +50 -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 +9 -31
- package/ChartsSvgLayer/ChartsSvgLayer.mjs +9 -31
- 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 +2 -2
- package/ChartsXAxis/ChartsGroupedXAxisTicks.mjs +2 -2
- 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 +81 -0
- package/ChartsXAxis/useAxisTicksProps.d.ts +81 -0
- package/ChartsYAxis/ChartsGroupedYAxisTicks.js +2 -2
- package/ChartsYAxis/ChartsGroupedYAxisTicks.mjs +2 -2
- 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 +81 -0
- package/ChartsYAxis/useAxisTicksProps.d.ts +81 -0
- package/Gauge/Gauge.js +12 -0
- package/Gauge/Gauge.mjs +12 -0
- package/Gauge/GaugeContainer.d.mts +1 -1
- package/Gauge/GaugeContainer.d.ts +1 -1
- package/Gauge/GaugeContainer.js +14 -2
- package/Gauge/GaugeContainer.mjs +14 -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 +3 -41
- package/LineChart/AreaElement.mjs +3 -41
- package/LineChart/CircleMarkElement.d.mts +1 -1
- package/LineChart/CircleMarkElement.d.ts +1 -1
- package/LineChart/CircleMarkElement.js +3 -11
- package/LineChart/CircleMarkElement.mjs +4 -12
- package/LineChart/LineChart.d.mts +2 -2
- package/LineChart/LineChart.d.ts +2 -2
- package/LineChart/LineChart.js +33 -9
- package/LineChart/LineChart.mjs +33 -9
- package/LineChart/LineElement.d.mts +2 -35
- package/LineChart/LineElement.d.ts +2 -35
- package/LineChart/LineElement.js +3 -41
- package/LineChart/LineElement.mjs +3 -41
- 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 +3 -4
- package/LineChart/MarkElement.mjs +4 -5
- 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/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 +3 -42
- package/PieChart/PieArc.mjs +3 -42
- 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/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/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 +55 -13
- package/ScatterChart/ScatterChart.mjs +55 -13
- 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 +40 -10
- package/SparkLineChart/SparkLineChart.mjs +40 -10
- 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.js +2 -2
- package/hooks/useInteractionItemProps.mjs +2 -2
- 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/consumeSlots.d.mts +1 -1
- package/internals/consumeSlots.d.ts +1 -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/useChartDimensions/useChartDimensions.js +2 -2
- package/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.mjs +2 -2
- package/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.selectors.d.mts +1 -4
- package/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.selectors.d.ts +1 -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 +1 -6
- package/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.d.ts +1 -6
- package/internals/plugins/corePlugins/useChartSeries/useChartSeries.selectors.d.mts +24 -2
- package/internals/plugins/corePlugins/useChartSeries/useChartSeries.selectors.d.ts +24 -2
- package/internals/plugins/corePlugins/useChartSeries/useChartSeries.selectors.js +24 -3
- package/internals/plugins/corePlugins/useChartSeries/useChartSeries.selectors.mjs +23 -2
- 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/index.d.mts +2 -1
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/index.d.ts +2 -1
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/index.js +11 -0
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/index.mjs +2 -1
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/seriesConfig.types.d.mts +5 -0
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/seriesConfig.types.d.ts +5 -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.js +2 -2
- package/internals/plugins/featurePlugins/shared/useRegisterPointerInteractions.mjs +2 -2
- package/internals/plugins/featurePlugins/useChartCartesianAxis/domain.d.mts +2 -2
- package/internals/plugins/featurePlugins/useChartCartesianAxis/domain.d.ts +2 -2
- package/internals/plugins/featurePlugins/useChartCartesianAxis/domain.js +4 -7
- package/internals/plugins/featurePlugins/useChartCartesianAxis/domain.mjs +4 -7
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.js +8 -9
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.mjs +8 -9
- 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/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/seriesSelectorOfType.d.mts +3 -3
- package/internals/seriesSelectorOfType.d.ts +3 -3
- package/internals/store/useStore.js +2 -2
- package/internals/store/useStore.mjs +2 -2
- package/locales/elGR.d.mts +4 -0
- package/locales/elGR.d.ts +4 -0
- package/locales/elGR.js +6 -0
- package/locales/elGR.mjs +6 -0
- package/locales/enUS.d.mts +4 -0
- package/locales/enUS.d.ts +4 -0
- package/locales/enUS.js +6 -1
- package/locales/enUS.mjs +6 -1
- package/locales/frFR.d.mts +4 -0
- package/locales/frFR.d.ts +4 -0
- package/locales/frFR.js +6 -1
- package/locales/frFR.mjs +6 -1
- package/locales/nbNO.d.mts +4 -0
- package/locales/nbNO.d.ts +4 -0
- package/locales/nbNO.js +6 -0
- package/locales/nbNO.mjs +6 -0
- package/locales/ptBR.d.mts +4 -0
- package/locales/ptBR.d.ts +4 -0
- package/locales/ptBR.js +6 -0
- package/locales/ptBR.mjs +6 -0
- package/locales/ptPT.d.mts +4 -0
- package/locales/ptPT.d.ts +4 -0
- package/locales/ptPT.js +102 -99
- package/locales/ptPT.mjs +102 -99
- package/locales/svSE.d.mts +4 -0
- package/locales/svSE.d.ts +4 -0
- package/locales/svSE.js +6 -0
- package/locales/svSE.mjs +6 -0
- package/locales/utils/chartsLocaleTextApi.d.mts +16 -0
- package/locales/utils/chartsLocaleTextApi.d.ts +16 -0
- package/locales/utils/getChartsLocalization.d.mts +4 -0
- package/locales/utils/getChartsLocalization.d.ts +4 -0
- package/models/axis.d.mts +4 -0
- package/models/axis.d.ts +4 -0
- 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/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 +87 -115
- 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/PieChart/PieChart.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
import { type MakeOptional } from '@mui/x-internals/types';
|
|
3
3
|
import { type ChartsToolbarSlotProps, type ChartsToolbarSlots } from "../Toolbar/index.js";
|
|
4
4
|
import { type ChartsSlotProps, type ChartsSlots } from "../internals/material/index.js";
|
|
5
|
-
import { type
|
|
5
|
+
import { type ChartsContainerProps } from "../ChartsContainer/index.js";
|
|
6
6
|
import { type PieSeriesType } from "../models/seriesType/index.js";
|
|
7
7
|
import { type ChartsTooltipSlots, type ChartsTooltipSlotProps } from "../ChartsTooltip/ChartTooltip.types.js";
|
|
8
8
|
import { type ChartsLegendSlotProps, type ChartsLegendSlots } from "../ChartsLegend/index.js";
|
|
@@ -13,7 +13,7 @@ import { type PieChartPluginSignatures } from "./PieChart.plugins.js";
|
|
|
13
13
|
export interface PieChartSlots extends PiePlotSlots, ChartsLegendSlots, ChartsOverlaySlots, ChartsTooltipSlots<'item' | 'none'>, ChartsToolbarSlots, Partial<ChartsSlots> {}
|
|
14
14
|
export interface PieChartSlotProps extends PiePlotSlotProps, ChartsLegendSlotProps, ChartsOverlaySlotProps, ChartsTooltipSlotProps<'item' | 'none'>, ChartsToolbarSlotProps, Partial<ChartsSlotProps> {}
|
|
15
15
|
export type PieSeries = MakeOptional<PieSeriesType<MakeOptional<PieValueType, 'id'>>, 'type'>;
|
|
16
|
-
export interface PieChartProps extends Omit<
|
|
16
|
+
export interface PieChartProps extends Omit<ChartsContainerProps<'pie', PieChartPluginSignatures>, 'series' | 'slots' | 'slotProps'>, Omit<ChartsOverlayProps, 'slots' | 'slotProps'>, Pick<PiePlotProps, 'skipAnimation'> {
|
|
17
17
|
/**
|
|
18
18
|
* The series to display in the pie chart.
|
|
19
19
|
* An array of [[PieSeries]] objects.
|
package/PieChart/PieChart.js
CHANGED
|
@@ -18,8 +18,8 @@ var _ChartsLegend = require("../ChartsLegend");
|
|
|
18
18
|
var _PiePlot = require("./PiePlot");
|
|
19
19
|
var _ChartsOverlay = require("../ChartsOverlay");
|
|
20
20
|
var _ChartsSurface = require("../ChartsSurface");
|
|
21
|
-
var
|
|
22
|
-
var
|
|
21
|
+
var _ChartsDataProvider = require("../ChartsDataProvider");
|
|
22
|
+
var _useChartsContainerProps = require("../ChartsContainer/useChartsContainerProps");
|
|
23
23
|
var _ChartsWrapper = require("../ChartsWrapper");
|
|
24
24
|
var _PieChart2 = require("./PieChart.plugins");
|
|
25
25
|
var _defaultizeMargin = require("../internals/defaultizeMargin");
|
|
@@ -63,9 +63,9 @@ const PieChart = exports.PieChart = /*#__PURE__*/React.forwardRef(function PieCh
|
|
|
63
63
|
other = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded);
|
|
64
64
|
const margin = (0, _defaultizeMargin.defaultizeMargin)(marginProps, _constants.DEFAULT_PIE_CHART_MARGIN);
|
|
65
65
|
const {
|
|
66
|
-
|
|
66
|
+
chartsDataProviderProps,
|
|
67
67
|
chartsSurfaceProps
|
|
68
|
-
} = (0,
|
|
68
|
+
} = (0, _useChartsContainerProps.useChartsContainerProps)((0, _extends2.default)({}, other, {
|
|
69
69
|
series: series.map(s => (0, _extends2.default)({
|
|
70
70
|
type: 'pie'
|
|
71
71
|
}, s)),
|
|
@@ -80,7 +80,7 @@ const PieChart = exports.PieChart = /*#__PURE__*/React.forwardRef(function PieCh
|
|
|
80
80
|
}));
|
|
81
81
|
const Tooltip = slots?.tooltip ?? _ChartsTooltip.ChartsTooltip;
|
|
82
82
|
const Toolbar = slots?.toolbar;
|
|
83
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
83
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsDataProvider.ChartsDataProvider, (0, _extends2.default)({}, chartsDataProviderProps, {
|
|
84
84
|
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_ChartsWrapper.ChartsWrapper, {
|
|
85
85
|
legendPosition: slotProps?.legend?.position,
|
|
86
86
|
legendDirection: slotProps?.legend?.direction ?? 'vertical',
|
|
@@ -128,11 +128,19 @@ process.env.NODE_ENV !== "production" ? PieChart.propTypes = {
|
|
|
128
128
|
* An array of objects that can be used to populate series and axes data using their `dataKey` property.
|
|
129
129
|
*/
|
|
130
130
|
dataset: _propTypes.default.arrayOf(_propTypes.default.object),
|
|
131
|
+
/**
|
|
132
|
+
* The description of the chart.
|
|
133
|
+
* Used to provide an accessible description for the chart.
|
|
134
|
+
*/
|
|
131
135
|
desc: _propTypes.default.string,
|
|
132
136
|
/**
|
|
133
137
|
* If `true`, disables keyboard navigation for the chart.
|
|
134
138
|
*/
|
|
135
139
|
disableKeyboardNavigation: _propTypes.default.bool,
|
|
140
|
+
/**
|
|
141
|
+
* Options to enable features planned for the next major.
|
|
142
|
+
*/
|
|
143
|
+
experimentalFeatures: _propTypes.default.object,
|
|
136
144
|
/**
|
|
137
145
|
* The height of the chart in px. If not defined, it takes the height of the parent element.
|
|
138
146
|
*/
|
|
@@ -286,6 +294,10 @@ process.env.NODE_ENV !== "production" ? PieChart.propTypes = {
|
|
|
286
294
|
slots: _propTypes.default.object,
|
|
287
295
|
sx: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object, _propTypes.default.bool])), _propTypes.default.func, _propTypes.default.object]),
|
|
288
296
|
theme: _propTypes.default.oneOf(['dark', 'light']),
|
|
297
|
+
/**
|
|
298
|
+
* The title of the chart.
|
|
299
|
+
* Used to provide an accessible label for the chart.
|
|
300
|
+
*/
|
|
289
301
|
title: _propTypes.default.string,
|
|
290
302
|
/**
|
|
291
303
|
* The tooltip item.
|
package/PieChart/PieChart.mjs
CHANGED
|
@@ -12,8 +12,8 @@ import { ChartsLegend } from "../ChartsLegend/index.mjs";
|
|
|
12
12
|
import { PiePlot } from "./PiePlot.mjs";
|
|
13
13
|
import { ChartsOverlay } from "../ChartsOverlay/index.mjs";
|
|
14
14
|
import { ChartsSurface } from "../ChartsSurface/index.mjs";
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
15
|
+
import { ChartsDataProvider } from "../ChartsDataProvider/index.mjs";
|
|
16
|
+
import { useChartsContainerProps } from "../ChartsContainer/useChartsContainerProps.mjs";
|
|
17
17
|
import { ChartsWrapper } from "../ChartsWrapper/index.mjs";
|
|
18
18
|
import { PIE_CHART_PLUGINS } from "./PieChart.plugins.mjs";
|
|
19
19
|
import { defaultizeMargin } from "../internals/defaultizeMargin.mjs";
|
|
@@ -56,9 +56,9 @@ const PieChart = /*#__PURE__*/React.forwardRef(function PieChart(inProps, ref) {
|
|
|
56
56
|
other = _objectWithoutPropertiesLoose(props, _excluded);
|
|
57
57
|
const margin = defaultizeMargin(marginProps, DEFAULT_PIE_CHART_MARGIN);
|
|
58
58
|
const {
|
|
59
|
-
|
|
59
|
+
chartsDataProviderProps,
|
|
60
60
|
chartsSurfaceProps
|
|
61
|
-
} =
|
|
61
|
+
} = useChartsContainerProps(_extends({}, other, {
|
|
62
62
|
series: series.map(s => _extends({
|
|
63
63
|
type: 'pie'
|
|
64
64
|
}, s)),
|
|
@@ -73,7 +73,7 @@ const PieChart = /*#__PURE__*/React.forwardRef(function PieChart(inProps, ref) {
|
|
|
73
73
|
}));
|
|
74
74
|
const Tooltip = slots?.tooltip ?? ChartsTooltip;
|
|
75
75
|
const Toolbar = slots?.toolbar;
|
|
76
|
-
return /*#__PURE__*/_jsx(
|
|
76
|
+
return /*#__PURE__*/_jsx(ChartsDataProvider, _extends({}, chartsDataProviderProps, {
|
|
77
77
|
children: /*#__PURE__*/_jsxs(ChartsWrapper, {
|
|
78
78
|
legendPosition: slotProps?.legend?.position,
|
|
79
79
|
legendDirection: slotProps?.legend?.direction ?? 'vertical',
|
|
@@ -121,11 +121,19 @@ process.env.NODE_ENV !== "production" ? PieChart.propTypes = {
|
|
|
121
121
|
* An array of objects that can be used to populate series and axes data using their `dataKey` property.
|
|
122
122
|
*/
|
|
123
123
|
dataset: PropTypes.arrayOf(PropTypes.object),
|
|
124
|
+
/**
|
|
125
|
+
* The description of the chart.
|
|
126
|
+
* Used to provide an accessible description for the chart.
|
|
127
|
+
*/
|
|
124
128
|
desc: PropTypes.string,
|
|
125
129
|
/**
|
|
126
130
|
* If `true`, disables keyboard navigation for the chart.
|
|
127
131
|
*/
|
|
128
132
|
disableKeyboardNavigation: PropTypes.bool,
|
|
133
|
+
/**
|
|
134
|
+
* Options to enable features planned for the next major.
|
|
135
|
+
*/
|
|
136
|
+
experimentalFeatures: PropTypes.object,
|
|
129
137
|
/**
|
|
130
138
|
* The height of the chart in px. If not defined, it takes the height of the parent element.
|
|
131
139
|
*/
|
|
@@ -279,6 +287,10 @@ process.env.NODE_ENV !== "production" ? PieChart.propTypes = {
|
|
|
279
287
|
slots: PropTypes.object,
|
|
280
288
|
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
|
281
289
|
theme: PropTypes.oneOf(['dark', 'light']),
|
|
290
|
+
/**
|
|
291
|
+
* The title of the chart.
|
|
292
|
+
* Used to provide an accessible label for the chart.
|
|
293
|
+
*/
|
|
282
294
|
title: PropTypes.string,
|
|
283
295
|
/**
|
|
284
296
|
* The tooltip item.
|
package/PieChart/index.d.mts
CHANGED
|
@@ -8,4 +8,4 @@ export * from "./PieArcLabel.mjs";
|
|
|
8
8
|
export * from "./getPieCoordinates.mjs";
|
|
9
9
|
export * from "./PieChart.plugins.mjs";
|
|
10
10
|
export { pieClasses } from "./pieClasses.mjs";
|
|
11
|
-
export type { PieClasses, PieClassKey } from "./pieClasses.mjs";
|
|
11
|
+
export type { PieClasses, PieClassKey, PieArcOwnerState } from "./pieClasses.mjs";
|
package/PieChart/index.d.ts
CHANGED
|
@@ -8,4 +8,4 @@ export * from "./PieArcLabel.js";
|
|
|
8
8
|
export * from "./getPieCoordinates.js";
|
|
9
9
|
export * from "./PieChart.plugins.js";
|
|
10
10
|
export { pieClasses } from "./pieClasses.js";
|
|
11
|
-
export type { PieClasses, PieClassKey } from "./pieClasses.js";
|
|
11
|
+
export type { PieClasses, PieClassKey, PieArcOwnerState } from "./pieClasses.js";
|
|
@@ -16,12 +16,10 @@ const legendGetter = params => {
|
|
|
16
16
|
if (formattedLabel === undefined) {
|
|
17
17
|
return;
|
|
18
18
|
}
|
|
19
|
-
const id = item.id ?? dataIndex;
|
|
20
19
|
acc.push({
|
|
21
20
|
type: 'pie',
|
|
22
21
|
markType: item.labelMarkType ?? series[seriesId].labelMarkType,
|
|
23
22
|
seriesId,
|
|
24
|
-
itemId: id,
|
|
25
23
|
dataIndex,
|
|
26
24
|
color: item.color,
|
|
27
25
|
label: formattedLabel
|
|
@@ -10,12 +10,10 @@ const legendGetter = params => {
|
|
|
10
10
|
if (formattedLabel === undefined) {
|
|
11
11
|
return;
|
|
12
12
|
}
|
|
13
|
-
const id = item.id ?? dataIndex;
|
|
14
13
|
acc.push({
|
|
15
14
|
type: 'pie',
|
|
16
15
|
markType: item.labelMarkType ?? series[seriesId].labelMarkType,
|
|
17
16
|
seriesId,
|
|
18
|
-
itemId: id,
|
|
19
17
|
dataIndex,
|
|
20
18
|
color: item.color,
|
|
21
19
|
label: formattedLabel
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { type UseRadarAxisParams } from "./useRadarAxis.mjs";
|
|
3
|
-
import { type
|
|
3
|
+
import { type RadarClasses } from "../radarClasses.mjs";
|
|
4
4
|
export interface RadarAxisProps extends UseRadarAxisParams {
|
|
5
5
|
/**
|
|
6
6
|
* Defines how label align with the axis.
|
|
@@ -17,10 +17,14 @@ export interface RadarAxisProps extends UseRadarAxisParams {
|
|
|
17
17
|
* The labels dominant baseline or a function returning the dominant baseline for a given axis angle (in degree).
|
|
18
18
|
*/
|
|
19
19
|
dominantBaseline?: React.SVGProps<SVGTextElement>['dominantBaseline'] | ((angle: number) => React.SVGProps<SVGTextElement>['dominantBaseline']);
|
|
20
|
+
/**
|
|
21
|
+
* A CSS class name applied to the root element.
|
|
22
|
+
*/
|
|
23
|
+
className?: string;
|
|
20
24
|
/**
|
|
21
25
|
* Override or extend the styles applied to the component.
|
|
22
26
|
*/
|
|
23
|
-
classes?: Partial<
|
|
27
|
+
classes?: Partial<Pick<RadarClasses, 'axisRoot' | 'axisLine' | 'axisLabel'>>;
|
|
24
28
|
}
|
|
25
29
|
declare function RadarAxis(props: RadarAxisProps): import("react/jsx-runtime").JSX.Element | null;
|
|
26
30
|
declare namespace RadarAxis {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { type UseRadarAxisParams } from "./useRadarAxis.js";
|
|
3
|
-
import { type
|
|
3
|
+
import { type RadarClasses } from "../radarClasses.js";
|
|
4
4
|
export interface RadarAxisProps extends UseRadarAxisParams {
|
|
5
5
|
/**
|
|
6
6
|
* Defines how label align with the axis.
|
|
@@ -17,10 +17,14 @@ export interface RadarAxisProps extends UseRadarAxisParams {
|
|
|
17
17
|
* The labels dominant baseline or a function returning the dominant baseline for a given axis angle (in degree).
|
|
18
18
|
*/
|
|
19
19
|
dominantBaseline?: React.SVGProps<SVGTextElement>['dominantBaseline'] | ((angle: number) => React.SVGProps<SVGTextElement>['dominantBaseline']);
|
|
20
|
+
/**
|
|
21
|
+
* A CSS class name applied to the root element.
|
|
22
|
+
*/
|
|
23
|
+
className?: string;
|
|
20
24
|
/**
|
|
21
25
|
* Override or extend the styles applied to the component.
|
|
22
26
|
*/
|
|
23
|
-
classes?: Partial<
|
|
27
|
+
classes?: Partial<Pick<RadarClasses, 'axisRoot' | 'axisLine' | 'axisLabel'>>;
|
|
24
28
|
}
|
|
25
29
|
declare function RadarAxis(props: RadarAxisProps): import("react/jsx-runtime").JSX.Element | null;
|
|
26
30
|
declare namespace RadarAxis {
|
|
@@ -9,18 +9,20 @@ exports.RadarAxis = RadarAxis;
|
|
|
9
9
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
10
|
var React = _interopRequireWildcard(require("react"));
|
|
11
11
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
12
|
+
var _clsx = _interopRequireDefault(require("clsx"));
|
|
12
13
|
var _styles = require("@mui/material/styles");
|
|
13
14
|
var _useRadarAxis = require("./useRadarAxis");
|
|
14
15
|
var _RadarAxis = require("./RadarAxis.utils");
|
|
15
|
-
var
|
|
16
|
+
var _radarClasses = require("../radarClasses");
|
|
16
17
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
17
18
|
function RadarAxis(props) {
|
|
18
19
|
const {
|
|
20
|
+
className,
|
|
19
21
|
labelOrientation = 'horizontal',
|
|
20
22
|
textAnchor,
|
|
21
23
|
dominantBaseline
|
|
22
24
|
} = props;
|
|
23
|
-
const classes = (0,
|
|
25
|
+
const classes = (0, _radarClasses.useUtilityClasses)(props.classes);
|
|
24
26
|
const theme = (0, _styles.useTheme)();
|
|
25
27
|
const data = (0, _useRadarAxis.useRadarAxis)(props);
|
|
26
28
|
if (data === null) {
|
|
@@ -32,12 +34,12 @@ function RadarAxis(props) {
|
|
|
32
34
|
labels
|
|
33
35
|
} = data;
|
|
34
36
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("g", {
|
|
35
|
-
className: classes.
|
|
37
|
+
className: (0, _clsx.default)(classes.axisRoot, className),
|
|
36
38
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
|
|
37
39
|
d: `M ${center.x} ${center.y} L ${labels[labels.length - 1].x} ${labels[labels.length - 1].y}`,
|
|
38
40
|
stroke: (theme.vars ?? theme).palette.text.primary,
|
|
39
41
|
strokeOpacity: 0.3,
|
|
40
|
-
className: classes.
|
|
42
|
+
className: classes.axisLine
|
|
41
43
|
}), labels.map(({
|
|
42
44
|
x,
|
|
43
45
|
y,
|
|
@@ -46,7 +48,7 @@ function RadarAxis(props) {
|
|
|
46
48
|
fontSize: 12,
|
|
47
49
|
fill: (theme.vars ?? theme).palette.text.primary,
|
|
48
50
|
stroke: "none",
|
|
49
|
-
className: classes.
|
|
51
|
+
className: classes.axisLabel
|
|
50
52
|
}, (0, _RadarAxis.getLabelAttributes)({
|
|
51
53
|
labelOrientation,
|
|
52
54
|
x,
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
|
+
import clsx from 'clsx';
|
|
4
5
|
import { useTheme } from '@mui/material/styles';
|
|
5
6
|
import { useRadarAxis } from "./useRadarAxis.mjs";
|
|
6
7
|
import { getLabelAttributes } from "./RadarAxis.utils.mjs";
|
|
7
|
-
import { useUtilityClasses } from "
|
|
8
|
+
import { useUtilityClasses } from "../radarClasses.mjs";
|
|
8
9
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
9
10
|
function RadarAxis(props) {
|
|
10
11
|
const {
|
|
12
|
+
className,
|
|
11
13
|
labelOrientation = 'horizontal',
|
|
12
14
|
textAnchor,
|
|
13
15
|
dominantBaseline
|
|
@@ -24,12 +26,12 @@ function RadarAxis(props) {
|
|
|
24
26
|
labels
|
|
25
27
|
} = data;
|
|
26
28
|
return /*#__PURE__*/_jsxs("g", {
|
|
27
|
-
className: classes.
|
|
29
|
+
className: clsx(classes.axisRoot, className),
|
|
28
30
|
children: [/*#__PURE__*/_jsx("path", {
|
|
29
31
|
d: `M ${center.x} ${center.y} L ${labels[labels.length - 1].x} ${labels[labels.length - 1].y}`,
|
|
30
32
|
stroke: (theme.vars ?? theme).palette.text.primary,
|
|
31
33
|
strokeOpacity: 0.3,
|
|
32
|
-
className: classes.
|
|
34
|
+
className: classes.axisLine
|
|
33
35
|
}), labels.map(({
|
|
34
36
|
x,
|
|
35
37
|
y,
|
|
@@ -38,7 +40,7 @@ function RadarAxis(props) {
|
|
|
38
40
|
fontSize: 12,
|
|
39
41
|
fill: (theme.vars ?? theme).palette.text.primary,
|
|
40
42
|
stroke: "none",
|
|
41
|
-
className: classes.
|
|
43
|
+
className: classes.axisLabel
|
|
42
44
|
}, getLabelAttributes({
|
|
43
45
|
labelOrientation,
|
|
44
46
|
x,
|
|
@@ -3,19 +3,9 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
var _exportNames = {
|
|
7
|
-
chartsAxisClasses: true
|
|
8
|
-
};
|
|
9
|
-
Object.defineProperty(exports, "chartsAxisClasses", {
|
|
10
|
-
enumerable: true,
|
|
11
|
-
get: function () {
|
|
12
|
-
return _radarAxisClasses.chartsAxisClasses;
|
|
13
|
-
}
|
|
14
|
-
});
|
|
15
6
|
var _RadarAxis = require("./RadarAxis");
|
|
16
7
|
Object.keys(_RadarAxis).forEach(function (key) {
|
|
17
8
|
if (key === "default" || key === "__esModule") return;
|
|
18
|
-
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
19
9
|
if (key in exports && exports[key] === _RadarAxis[key]) return;
|
|
20
10
|
Object.defineProperty(exports, key, {
|
|
21
11
|
enumerable: true,
|
|
@@ -27,7 +17,6 @@ Object.keys(_RadarAxis).forEach(function (key) {
|
|
|
27
17
|
var _useRadarAxis = require("./useRadarAxis");
|
|
28
18
|
Object.keys(_useRadarAxis).forEach(function (key) {
|
|
29
19
|
if (key === "default" || key === "__esModule") return;
|
|
30
|
-
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
31
20
|
if (key in exports && exports[key] === _useRadarAxis[key]) return;
|
|
32
21
|
Object.defineProperty(exports, key, {
|
|
33
22
|
enumerable: true,
|
|
@@ -35,5 +24,4 @@ Object.keys(_useRadarAxis).forEach(function (key) {
|
|
|
35
24
|
return _useRadarAxis[key];
|
|
36
25
|
}
|
|
37
26
|
});
|
|
38
|
-
});
|
|
39
|
-
var _radarAxisClasses = require("./radarAxisClasses");
|
|
27
|
+
});
|
|
@@ -7,7 +7,7 @@ exports.useRadarAxis = useRadarAxis;
|
|
|
7
7
|
var _warning = require("@mui/x-internals/warning");
|
|
8
8
|
var _useAxis = require("../../hooks/useAxis");
|
|
9
9
|
var _useScale = require("../../hooks/useScale");
|
|
10
|
-
var
|
|
10
|
+
var _useChartsContext = require("../../context/ChartsProvider/useChartsContext");
|
|
11
11
|
var _useChartPolarAxis = require("../../internals/plugins/featurePlugins/useChartPolarAxis");
|
|
12
12
|
var _scaleGuards = require("../../internals/scaleGuards");
|
|
13
13
|
var _degToRad = require("../../internals/degToRad");
|
|
@@ -25,7 +25,7 @@ function useRadarAxis(params) {
|
|
|
25
25
|
const {
|
|
26
26
|
instance,
|
|
27
27
|
store
|
|
28
|
-
} = (0,
|
|
28
|
+
} = (0, _useChartsContext.useChartsContext)();
|
|
29
29
|
const rotationScale = (0, _useScale.useRotationScale)();
|
|
30
30
|
const {
|
|
31
31
|
radiusAxis
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { warnOnce } from '@mui/x-internals/warning';
|
|
2
2
|
import { useRadiusAxes } from "../../hooks/useAxis.mjs";
|
|
3
3
|
import { useRotationScale } from "../../hooks/useScale.mjs";
|
|
4
|
-
import {
|
|
4
|
+
import { useChartsContext } from "../../context/ChartsProvider/useChartsContext.mjs";
|
|
5
5
|
import { selectorChartPolarCenter } from "../../internals/plugins/featurePlugins/useChartPolarAxis/index.mjs";
|
|
6
6
|
import { isOrdinalScale } from "../../internals/scaleGuards.mjs";
|
|
7
7
|
import { degToRad } from "../../internals/degToRad.mjs";
|
|
@@ -19,7 +19,7 @@ export function useRadarAxis(params) {
|
|
|
19
19
|
const {
|
|
20
20
|
instance,
|
|
21
21
|
store
|
|
22
|
-
} =
|
|
22
|
+
} = useChartsContext();
|
|
23
23
|
const rotationScale = useRotationScale();
|
|
24
24
|
const {
|
|
25
25
|
radiusAxis
|
|
@@ -1,9 +1,13 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type RadarClasses } from "../radarClasses.mjs";
|
|
2
2
|
export interface RadarAxisHighlightProps {
|
|
3
|
+
/**
|
|
4
|
+
* A CSS class name applied to the root element.
|
|
5
|
+
*/
|
|
6
|
+
className?: string;
|
|
3
7
|
/**
|
|
4
8
|
* Override or extend the styles applied to the component.
|
|
5
9
|
*/
|
|
6
|
-
classes?: Partial<
|
|
10
|
+
classes?: Partial<Pick<RadarClasses, 'axisHighlightRoot' | 'axisHighlightLine' | 'axisHighlightDot'>>;
|
|
7
11
|
}
|
|
8
12
|
declare function RadarAxisHighlight(props: RadarAxisHighlightProps): import("react/jsx-runtime").JSX.Element | null;
|
|
9
13
|
declare namespace RadarAxisHighlight {
|
|
@@ -1,9 +1,13 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type RadarClasses } from "../radarClasses.js";
|
|
2
2
|
export interface RadarAxisHighlightProps {
|
|
3
|
+
/**
|
|
4
|
+
* A CSS class name applied to the root element.
|
|
5
|
+
*/
|
|
6
|
+
className?: string;
|
|
3
7
|
/**
|
|
4
8
|
* Override or extend the styles applied to the component.
|
|
5
9
|
*/
|
|
6
|
-
classes?: Partial<
|
|
10
|
+
classes?: Partial<Pick<RadarClasses, 'axisHighlightRoot' | 'axisHighlightLine' | 'axisHighlightDot'>>;
|
|
7
11
|
}
|
|
8
12
|
declare function RadarAxisHighlight(props: RadarAxisHighlightProps): import("react/jsx-runtime").JSX.Element | null;
|
|
9
13
|
declare namespace RadarAxisHighlight {
|
|
@@ -7,20 +7,12 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.RadarAxisHighlight = RadarAxisHighlight;
|
|
8
8
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
9
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
10
|
+
var _clsx = _interopRequireDefault(require("clsx"));
|
|
10
11
|
var _styles = require("@mui/material/styles");
|
|
11
|
-
var _composeClasses = _interopRequireDefault(require("@mui/utils/composeClasses"));
|
|
12
12
|
var _useRadarAxisHighlight = require("./useRadarAxisHighlight");
|
|
13
|
-
var
|
|
13
|
+
var _radarClasses = require("../radarClasses");
|
|
14
14
|
var _getSeriesColorFn = require("../../internals/getSeriesColorFn");
|
|
15
15
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
16
|
-
const useUtilityClasses = classes => {
|
|
17
|
-
const slots = {
|
|
18
|
-
root: ['root'],
|
|
19
|
-
line: ['line'],
|
|
20
|
-
dot: ['dot']
|
|
21
|
-
};
|
|
22
|
-
return (0, _composeClasses.default)(slots, _radarAxisHighlightClasses.getRadarAxisHighlightUtilityClass, classes);
|
|
23
|
-
};
|
|
24
16
|
/**
|
|
25
17
|
* Attributes to display a shadow around a mark.
|
|
26
18
|
*/
|
|
@@ -37,7 +29,10 @@ const highlightMark = {
|
|
|
37
29
|
opacity: 1
|
|
38
30
|
};
|
|
39
31
|
function RadarAxisHighlight(props) {
|
|
40
|
-
const
|
|
32
|
+
const {
|
|
33
|
+
className
|
|
34
|
+
} = props;
|
|
35
|
+
const classes = (0, _radarClasses.useUtilityClasses)(props.classes);
|
|
41
36
|
const theme = (0, _styles.useTheme)();
|
|
42
37
|
const data = (0, _useRadarAxisHighlight.useRadarAxisHighlight)();
|
|
43
38
|
if (data === null) {
|
|
@@ -54,12 +49,12 @@ function RadarAxisHighlight(props) {
|
|
|
54
49
|
} = data;
|
|
55
50
|
const [x, y] = instance.polar2svg(radius, highlightedAngle);
|
|
56
51
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("g", {
|
|
57
|
-
className: classes.
|
|
52
|
+
className: (0, _clsx.default)(classes.axisHighlightRoot, className),
|
|
58
53
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
|
|
59
54
|
d: `M ${center.cx} ${center.cy} L ${x} ${y}`,
|
|
60
55
|
stroke: (theme.vars || theme).palette.text.primary,
|
|
61
56
|
strokeWidth: 1,
|
|
62
|
-
className: classes.
|
|
57
|
+
className: classes.axisHighlightLine,
|
|
63
58
|
pointerEvents: "none",
|
|
64
59
|
strokeDasharray: "4 4"
|
|
65
60
|
}), points.map((point, seriesIndex) => {
|
|
@@ -71,7 +66,7 @@ function RadarAxisHighlight(props) {
|
|
|
71
66
|
}),
|
|
72
67
|
cx: point.x,
|
|
73
68
|
cy: point.y,
|
|
74
|
-
className: classes.
|
|
69
|
+
className: classes.axisHighlightDot,
|
|
75
70
|
pointerEvents: "none"
|
|
76
71
|
}, series[seriesIndex].hideMark ? highlightMark : highlightMarkShadow), series[seriesIndex].id);
|
|
77
72
|
})]
|
|
@@ -1,19 +1,11 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
|
+
import clsx from 'clsx';
|
|
3
4
|
import { useTheme } from '@mui/material/styles';
|
|
4
|
-
import composeClasses from '@mui/utils/composeClasses';
|
|
5
5
|
import { useRadarAxisHighlight } from "./useRadarAxisHighlight.mjs";
|
|
6
|
-
import {
|
|
6
|
+
import { useUtilityClasses } from "../radarClasses.mjs";
|
|
7
7
|
import { getSeriesColorFn } from "../../internals/getSeriesColorFn.mjs";
|
|
8
8
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
9
|
-
const useUtilityClasses = classes => {
|
|
10
|
-
const slots = {
|
|
11
|
-
root: ['root'],
|
|
12
|
-
line: ['line'],
|
|
13
|
-
dot: ['dot']
|
|
14
|
-
};
|
|
15
|
-
return composeClasses(slots, getRadarAxisHighlightUtilityClass, classes);
|
|
16
|
-
};
|
|
17
9
|
/**
|
|
18
10
|
* Attributes to display a shadow around a mark.
|
|
19
11
|
*/
|
|
@@ -30,6 +22,9 @@ const highlightMark = {
|
|
|
30
22
|
opacity: 1
|
|
31
23
|
};
|
|
32
24
|
function RadarAxisHighlight(props) {
|
|
25
|
+
const {
|
|
26
|
+
className
|
|
27
|
+
} = props;
|
|
33
28
|
const classes = useUtilityClasses(props.classes);
|
|
34
29
|
const theme = useTheme();
|
|
35
30
|
const data = useRadarAxisHighlight();
|
|
@@ -47,12 +42,12 @@ function RadarAxisHighlight(props) {
|
|
|
47
42
|
} = data;
|
|
48
43
|
const [x, y] = instance.polar2svg(radius, highlightedAngle);
|
|
49
44
|
return /*#__PURE__*/_jsxs("g", {
|
|
50
|
-
className: classes.
|
|
45
|
+
className: clsx(classes.axisHighlightRoot, className),
|
|
51
46
|
children: [/*#__PURE__*/_jsx("path", {
|
|
52
47
|
d: `M ${center.cx} ${center.cy} L ${x} ${y}`,
|
|
53
48
|
stroke: (theme.vars || theme).palette.text.primary,
|
|
54
49
|
strokeWidth: 1,
|
|
55
|
-
className: classes.
|
|
50
|
+
className: classes.axisHighlightLine,
|
|
56
51
|
pointerEvents: "none",
|
|
57
52
|
strokeDasharray: "4 4"
|
|
58
53
|
}), points.map((point, seriesIndex) => {
|
|
@@ -64,7 +59,7 @@ function RadarAxisHighlight(props) {
|
|
|
64
59
|
}),
|
|
65
60
|
cx: point.x,
|
|
66
61
|
cy: point.y,
|
|
67
|
-
className: classes.
|
|
62
|
+
className: classes.axisHighlightDot,
|
|
68
63
|
pointerEvents: "none"
|
|
69
64
|
}, series[seriesIndex].hideMark ? highlightMark : highlightMarkShadow), series[seriesIndex].id);
|
|
70
65
|
})]
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export * from "./RadarAxisHighlight.mjs";
|
|
2
|
-
export { type RadarAxisHighlightClasses } from "./radarAxisHighlightClasses.mjs";
|
|
1
|
+
export * from "./RadarAxisHighlight.mjs";
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export * from "./RadarAxisHighlight.js";
|
|
2
|
-
export { type RadarAxisHighlightClasses } from "./radarAxisHighlightClasses.js";
|
|
1
|
+
export * from "./RadarAxisHighlight.js";
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export * from "./RadarAxisHighlight.mjs";
|
|
2
|
-
export {};
|
|
1
|
+
export * from "./RadarAxisHighlight.mjs";
|
|
@@ -8,7 +8,7 @@ var _useAxis = require("../../hooks/useAxis");
|
|
|
8
8
|
var _useRadarSeries = require("../../hooks/useRadarSeries");
|
|
9
9
|
var _useScale = require("../../hooks/useScale");
|
|
10
10
|
var _useStore = require("../../internals/store/useStore");
|
|
11
|
-
var
|
|
11
|
+
var _useChartsContext = require("../../context/ChartsProvider/useChartsContext");
|
|
12
12
|
var _useChartPolarAxis = require("../../internals/plugins/featurePlugins/useChartPolarAxis");
|
|
13
13
|
var _useChartPolarInteraction = require("../../internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarInteraction.selectors");
|
|
14
14
|
function useRadarAxisHighlight() {
|
|
@@ -20,7 +20,7 @@ function useRadarAxisHighlight() {
|
|
|
20
20
|
} = (0, _useAxis.useRadiusAxes)();
|
|
21
21
|
const {
|
|
22
22
|
instance
|
|
23
|
-
} = (0,
|
|
23
|
+
} = (0, _useChartsContext.useChartsContext)();
|
|
24
24
|
const store = (0, _useStore.useStore)();
|
|
25
25
|
const rotationAxisIndex = store.use(_useChartPolarInteraction.selectorChartsInteractionRotationAxisIndex);
|
|
26
26
|
const rotationAxisValue = store.use(_useChartPolarInteraction.selectorChartsInteractionRotationAxisValue);
|
|
@@ -2,7 +2,7 @@ import { useRadiusAxes } from "../../hooks/useAxis.mjs";
|
|
|
2
2
|
import { useRadarSeries } from "../../hooks/useRadarSeries.mjs";
|
|
3
3
|
import { useRotationScale } from "../../hooks/useScale.mjs";
|
|
4
4
|
import { useStore } from "../../internals/store/useStore.mjs";
|
|
5
|
-
import {
|
|
5
|
+
import { useChartsContext } from "../../context/ChartsProvider/useChartsContext.mjs";
|
|
6
6
|
import { selectorChartPolarCenter } from "../../internals/plugins/featurePlugins/useChartPolarAxis/index.mjs";
|
|
7
7
|
import { selectorChartsInteractionRotationAxisIndex, selectorChartsInteractionRotationAxisValue } from "../../internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarInteraction.selectors.mjs";
|
|
8
8
|
export function useRadarAxisHighlight() {
|
|
@@ -14,7 +14,7 @@ export function useRadarAxisHighlight() {
|
|
|
14
14
|
} = useRadiusAxes();
|
|
15
15
|
const {
|
|
16
16
|
instance
|
|
17
|
-
} =
|
|
17
|
+
} = useChartsContext();
|
|
18
18
|
const store = useStore();
|
|
19
19
|
const rotationAxisIndex = store.use(selectorChartsInteractionRotationAxisIndex);
|
|
20
20
|
const rotationAxisValue = store.use(selectorChartsInteractionRotationAxisValue);
|