@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
|
@@ -12,8 +12,8 @@ import { ChartsOverlay } from "../ChartsOverlay/index.mjs";
|
|
|
12
12
|
import { ChartsAxisHighlight } from "../ChartsAxisHighlight/index.mjs";
|
|
13
13
|
import { ChartsGrid } from "../ChartsGrid/index.mjs";
|
|
14
14
|
import { useScatterChartProps } from "./useScatterChartProps.mjs";
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
15
|
+
import { useChartsContainerProps } from "../ChartsContainer/useChartsContainerProps.mjs";
|
|
16
|
+
import { ChartsDataProvider } from "../ChartsDataProvider/index.mjs";
|
|
17
17
|
import { ChartsSurface } from "../ChartsSurface/index.mjs";
|
|
18
18
|
import { ChartsWrapper } from "../ChartsWrapper/index.mjs";
|
|
19
19
|
import { FocusedScatterMark } from "./FocusedScatterMark.mjs";
|
|
@@ -35,7 +35,7 @@ const ScatterChart = /*#__PURE__*/React.forwardRef(function ScatterChart(inProps
|
|
|
35
35
|
});
|
|
36
36
|
const {
|
|
37
37
|
chartsWrapperProps,
|
|
38
|
-
|
|
38
|
+
chartsContainerProps,
|
|
39
39
|
chartsAxisProps,
|
|
40
40
|
gridProps,
|
|
41
41
|
scatterPlotProps,
|
|
@@ -45,12 +45,12 @@ const ScatterChart = /*#__PURE__*/React.forwardRef(function ScatterChart(inProps
|
|
|
45
45
|
children
|
|
46
46
|
} = useScatterChartProps(props);
|
|
47
47
|
const {
|
|
48
|
-
|
|
48
|
+
chartsDataProviderProps,
|
|
49
49
|
chartsSurfaceProps
|
|
50
|
-
} =
|
|
50
|
+
} = useChartsContainerProps(chartsContainerProps);
|
|
51
51
|
const Tooltip = props.slots?.tooltip ?? ChartsTooltip;
|
|
52
52
|
const Toolbar = props.slots?.toolbar;
|
|
53
|
-
return /*#__PURE__*/_jsx(
|
|
53
|
+
return /*#__PURE__*/_jsx(ChartsDataProvider, _extends({}, chartsDataProviderProps, {
|
|
54
54
|
children: /*#__PURE__*/_jsxs(ChartsWrapper, _extends({}, chartsWrapperProps, {
|
|
55
55
|
ref: ref,
|
|
56
56
|
children: [props.showToolbar && Toolbar ? /*#__PURE__*/_jsx(Toolbar, _extends({}, props.slotProps?.toolbar)) : null, !props.hideLegend && /*#__PURE__*/_jsx(ChartsLegend, _extends({}, legendProps)), /*#__PURE__*/_jsxs(ChartsSurface, _extends({}, chartsSurfaceProps, {
|
|
@@ -106,6 +106,10 @@ process.env.NODE_ENV !== "production" ? ScatterChart.propTypes = {
|
|
|
106
106
|
* An array of objects that can be used to populate series and axes data using their `dataKey` property.
|
|
107
107
|
*/
|
|
108
108
|
dataset: PropTypes.arrayOf(PropTypes.object),
|
|
109
|
+
/**
|
|
110
|
+
* The description of the chart.
|
|
111
|
+
* Used to provide an accessible description for the chart.
|
|
112
|
+
*/
|
|
109
113
|
desc: PropTypes.string,
|
|
110
114
|
/**
|
|
111
115
|
* If `true`, the charts will not listen to the mouse move event.
|
|
@@ -113,6 +117,17 @@ process.env.NODE_ENV !== "production" ? ScatterChart.propTypes = {
|
|
|
113
117
|
* @default false
|
|
114
118
|
*/
|
|
115
119
|
disableAxisListener: PropTypes.bool,
|
|
120
|
+
/**
|
|
121
|
+
* If true, the closest point interaction is disabled and falls back to hover events.
|
|
122
|
+
* @default false
|
|
123
|
+
* @deprecated Use `disableHitArea` instead.
|
|
124
|
+
*/
|
|
125
|
+
disableClosestPoint: PropTypes.bool,
|
|
126
|
+
/**
|
|
127
|
+
* If true, the hit area interaction is disabled and falls back to hover events.
|
|
128
|
+
* @default false
|
|
129
|
+
*/
|
|
130
|
+
disableHitArea: PropTypes.bool,
|
|
116
131
|
/**
|
|
117
132
|
* If `true`, disables keyboard navigation for the chart.
|
|
118
133
|
*/
|
|
@@ -120,8 +135,13 @@ process.env.NODE_ENV !== "production" ? ScatterChart.propTypes = {
|
|
|
120
135
|
/**
|
|
121
136
|
* If true, the interaction will not use the Voronoi cell and fall back to hover events.
|
|
122
137
|
* @default false
|
|
138
|
+
* @deprecated Use `disableHitArea` instead.
|
|
123
139
|
*/
|
|
124
140
|
disableVoronoi: PropTypes.bool,
|
|
141
|
+
/**
|
|
142
|
+
* Options to enable features planned for the next major.
|
|
143
|
+
*/
|
|
144
|
+
experimentalFeatures: PropTypes.object,
|
|
125
145
|
/**
|
|
126
146
|
* Option to display a cartesian grid in the background.
|
|
127
147
|
*/
|
|
@@ -178,6 +198,12 @@ process.env.NODE_ENV !== "production" ? ScatterChart.propTypes = {
|
|
|
178
198
|
dataIndex: PropTypes.number,
|
|
179
199
|
seriesId: PropTypes.string.isRequired
|
|
180
200
|
})]),
|
|
201
|
+
/**
|
|
202
|
+
* Defines the maximum distance between a scatter point and the pointer that triggers the interaction.
|
|
203
|
+
* If set to `'item'`, the radius is the `markerSize`.
|
|
204
|
+
* If `undefined`, the radius is assumed to be infinite.
|
|
205
|
+
*/
|
|
206
|
+
hitAreaRadius: PropTypes.oneOfType([PropTypes.oneOf(['item']), PropTypes.number]),
|
|
181
207
|
/**
|
|
182
208
|
* This prop is used to help implement the accessibility logic.
|
|
183
209
|
* If you don't provide this prop. It falls back to a randomly generated id.
|
|
@@ -254,7 +280,7 @@ process.env.NODE_ENV !== "production" ? ScatterChart.propTypes = {
|
|
|
254
280
|
onHighlightChange: PropTypes.func,
|
|
255
281
|
/**
|
|
256
282
|
* Callback fired when clicking on a scatter item.
|
|
257
|
-
* @param {MouseEvent} event The mouse event recorded on the `<svg/>` element if using
|
|
283
|
+
* @param {MouseEvent} event The mouse event recorded on the `<svg/>` element if using hit area interaction. Or the Mouse event from the scatter element, when `disableHitArea=true`.
|
|
258
284
|
* @param {ScatterItemIdentifier} scatterItemIdentifier The scatter item identifier.
|
|
259
285
|
*/
|
|
260
286
|
onItemClick: PropTypes.func,
|
|
@@ -308,6 +334,10 @@ process.env.NODE_ENV !== "production" ? ScatterChart.propTypes = {
|
|
|
308
334
|
slots: PropTypes.object,
|
|
309
335
|
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
|
310
336
|
theme: PropTypes.oneOf(['dark', 'light']),
|
|
337
|
+
/**
|
|
338
|
+
* The title of the chart.
|
|
339
|
+
* Used to provide an accessible label for the chart.
|
|
340
|
+
*/
|
|
311
341
|
title: PropTypes.string,
|
|
312
342
|
/**
|
|
313
343
|
* The controlled axis tooltip.
|
|
@@ -329,12 +359,6 @@ process.env.NODE_ENV !== "production" ? ScatterChart.propTypes = {
|
|
|
329
359
|
dataIndex: PropTypes.number.isRequired,
|
|
330
360
|
seriesId: PropTypes.string.isRequired
|
|
331
361
|
})]),
|
|
332
|
-
/**
|
|
333
|
-
* Defines the maximum distance between a scatter point and the pointer that triggers the interaction.
|
|
334
|
-
* If set to `'item'`, the radius is the `markerSize`.
|
|
335
|
-
* If `undefined`, the radius is assumed to be infinite.
|
|
336
|
-
*/
|
|
337
|
-
voronoiMaxRadius: PropTypes.oneOfType([PropTypes.oneOf(['item']), PropTypes.number]),
|
|
338
362
|
/**
|
|
339
363
|
* The width of the chart in px. If not defined, it takes the width of the parent element.
|
|
340
364
|
*/
|
|
@@ -349,6 +373,7 @@ process.env.NODE_ENV !== "production" ? ScatterChart.propTypes = {
|
|
|
349
373
|
barGapRatio: PropTypes.number,
|
|
350
374
|
categoryGapRatio: PropTypes.number,
|
|
351
375
|
classes: PropTypes.object,
|
|
376
|
+
className: PropTypes.string,
|
|
352
377
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
353
378
|
colors: PropTypes.arrayOf(PropTypes.string).isRequired,
|
|
354
379
|
type: PropTypes.oneOf(['ordinal']).isRequired,
|
|
@@ -374,7 +399,7 @@ process.env.NODE_ENV !== "production" ? ScatterChart.propTypes = {
|
|
|
374
399
|
tickLabelStyle: PropTypes.object,
|
|
375
400
|
tickSize: PropTypes.number
|
|
376
401
|
})),
|
|
377
|
-
height: PropTypes.number,
|
|
402
|
+
height: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number]),
|
|
378
403
|
hideTooltip: PropTypes.bool,
|
|
379
404
|
id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
380
405
|
ignoreTooltip: PropTypes.bool,
|
|
@@ -407,6 +432,7 @@ process.env.NODE_ENV !== "production" ? ScatterChart.propTypes = {
|
|
|
407
432
|
}), PropTypes.shape({
|
|
408
433
|
axis: PropTypes.oneOf(['x']),
|
|
409
434
|
classes: PropTypes.object,
|
|
435
|
+
className: PropTypes.string,
|
|
410
436
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
411
437
|
colors: PropTypes.arrayOf(PropTypes.string).isRequired,
|
|
412
438
|
type: PropTypes.oneOf(['ordinal']).isRequired,
|
|
@@ -432,7 +458,7 @@ process.env.NODE_ENV !== "production" ? ScatterChart.propTypes = {
|
|
|
432
458
|
tickLabelStyle: PropTypes.object,
|
|
433
459
|
tickSize: PropTypes.number
|
|
434
460
|
})),
|
|
435
|
-
height: PropTypes.number,
|
|
461
|
+
height: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number]),
|
|
436
462
|
hideTooltip: PropTypes.bool,
|
|
437
463
|
id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
438
464
|
ignoreTooltip: PropTypes.bool,
|
|
@@ -465,6 +491,7 @@ process.env.NODE_ENV !== "production" ? ScatterChart.propTypes = {
|
|
|
465
491
|
}), PropTypes.shape({
|
|
466
492
|
axis: PropTypes.oneOf(['x']),
|
|
467
493
|
classes: PropTypes.object,
|
|
494
|
+
className: PropTypes.string,
|
|
468
495
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
469
496
|
color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
|
|
470
497
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
@@ -480,7 +507,7 @@ process.env.NODE_ENV !== "production" ? ScatterChart.propTypes = {
|
|
|
480
507
|
disableLine: PropTypes.bool,
|
|
481
508
|
disableTicks: PropTypes.bool,
|
|
482
509
|
domainLimit: PropTypes.oneOfType([PropTypes.oneOf(['nice', 'strict']), PropTypes.func]),
|
|
483
|
-
height: PropTypes.number,
|
|
510
|
+
height: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number]),
|
|
484
511
|
hideTooltip: PropTypes.bool,
|
|
485
512
|
id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
486
513
|
ignoreTooltip: PropTypes.bool,
|
|
@@ -510,6 +537,7 @@ process.env.NODE_ENV !== "production" ? ScatterChart.propTypes = {
|
|
|
510
537
|
}), PropTypes.shape({
|
|
511
538
|
axis: PropTypes.oneOf(['x']),
|
|
512
539
|
classes: PropTypes.object,
|
|
540
|
+
className: PropTypes.string,
|
|
513
541
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
514
542
|
color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
|
|
515
543
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
@@ -526,7 +554,7 @@ process.env.NODE_ENV !== "production" ? ScatterChart.propTypes = {
|
|
|
526
554
|
disableLine: PropTypes.bool,
|
|
527
555
|
disableTicks: PropTypes.bool,
|
|
528
556
|
domainLimit: PropTypes.oneOfType([PropTypes.oneOf(['nice', 'strict']), PropTypes.func]),
|
|
529
|
-
height: PropTypes.number,
|
|
557
|
+
height: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number]),
|
|
530
558
|
hideTooltip: PropTypes.bool,
|
|
531
559
|
id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
532
560
|
ignoreTooltip: PropTypes.bool,
|
|
@@ -556,6 +584,7 @@ process.env.NODE_ENV !== "production" ? ScatterChart.propTypes = {
|
|
|
556
584
|
}), PropTypes.shape({
|
|
557
585
|
axis: PropTypes.oneOf(['x']),
|
|
558
586
|
classes: PropTypes.object,
|
|
587
|
+
className: PropTypes.string,
|
|
559
588
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
560
589
|
color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
|
|
561
590
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
@@ -571,7 +600,7 @@ process.env.NODE_ENV !== "production" ? ScatterChart.propTypes = {
|
|
|
571
600
|
disableLine: PropTypes.bool,
|
|
572
601
|
disableTicks: PropTypes.bool,
|
|
573
602
|
domainLimit: PropTypes.oneOfType([PropTypes.oneOf(['nice', 'strict']), PropTypes.func]),
|
|
574
|
-
height: PropTypes.number,
|
|
603
|
+
height: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number]),
|
|
575
604
|
hideTooltip: PropTypes.bool,
|
|
576
605
|
id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
577
606
|
ignoreTooltip: PropTypes.bool,
|
|
@@ -601,6 +630,7 @@ process.env.NODE_ENV !== "production" ? ScatterChart.propTypes = {
|
|
|
601
630
|
}), PropTypes.shape({
|
|
602
631
|
axis: PropTypes.oneOf(['x']),
|
|
603
632
|
classes: PropTypes.object,
|
|
633
|
+
className: PropTypes.string,
|
|
604
634
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
605
635
|
color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
|
|
606
636
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
@@ -616,7 +646,7 @@ process.env.NODE_ENV !== "production" ? ScatterChart.propTypes = {
|
|
|
616
646
|
disableLine: PropTypes.bool,
|
|
617
647
|
disableTicks: PropTypes.bool,
|
|
618
648
|
domainLimit: PropTypes.oneOfType([PropTypes.oneOf(['nice', 'strict']), PropTypes.func]),
|
|
619
|
-
height: PropTypes.number,
|
|
649
|
+
height: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number]),
|
|
620
650
|
hideTooltip: PropTypes.bool,
|
|
621
651
|
id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
622
652
|
ignoreTooltip: PropTypes.bool,
|
|
@@ -646,6 +676,7 @@ process.env.NODE_ENV !== "production" ? ScatterChart.propTypes = {
|
|
|
646
676
|
}), PropTypes.shape({
|
|
647
677
|
axis: PropTypes.oneOf(['x']),
|
|
648
678
|
classes: PropTypes.object,
|
|
679
|
+
className: PropTypes.string,
|
|
649
680
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
650
681
|
color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
|
|
651
682
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
@@ -661,7 +692,7 @@ process.env.NODE_ENV !== "production" ? ScatterChart.propTypes = {
|
|
|
661
692
|
disableLine: PropTypes.bool,
|
|
662
693
|
disableTicks: PropTypes.bool,
|
|
663
694
|
domainLimit: PropTypes.oneOfType([PropTypes.oneOf(['nice', 'strict']), PropTypes.func]),
|
|
664
|
-
height: PropTypes.number,
|
|
695
|
+
height: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number]),
|
|
665
696
|
hideTooltip: PropTypes.bool,
|
|
666
697
|
id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
667
698
|
ignoreTooltip: PropTypes.bool,
|
|
@@ -695,6 +726,7 @@ process.env.NODE_ENV !== "production" ? ScatterChart.propTypes = {
|
|
|
695
726
|
}), PropTypes.shape({
|
|
696
727
|
axis: PropTypes.oneOf(['x']),
|
|
697
728
|
classes: PropTypes.object,
|
|
729
|
+
className: PropTypes.string,
|
|
698
730
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
699
731
|
color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
|
|
700
732
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
@@ -710,7 +742,7 @@ process.env.NODE_ENV !== "production" ? ScatterChart.propTypes = {
|
|
|
710
742
|
disableLine: PropTypes.bool,
|
|
711
743
|
disableTicks: PropTypes.bool,
|
|
712
744
|
domainLimit: PropTypes.oneOfType([PropTypes.oneOf(['nice', 'strict']), PropTypes.func]),
|
|
713
|
-
height: PropTypes.number,
|
|
745
|
+
height: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number]),
|
|
714
746
|
hideTooltip: PropTypes.bool,
|
|
715
747
|
id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
716
748
|
ignoreTooltip: PropTypes.bool,
|
|
@@ -744,6 +776,7 @@ process.env.NODE_ENV !== "production" ? ScatterChart.propTypes = {
|
|
|
744
776
|
}), PropTypes.shape({
|
|
745
777
|
axis: PropTypes.oneOf(['x']),
|
|
746
778
|
classes: PropTypes.object,
|
|
779
|
+
className: PropTypes.string,
|
|
747
780
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
748
781
|
color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
|
|
749
782
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
@@ -759,7 +792,7 @@ process.env.NODE_ENV !== "production" ? ScatterChart.propTypes = {
|
|
|
759
792
|
disableLine: PropTypes.bool,
|
|
760
793
|
disableTicks: PropTypes.bool,
|
|
761
794
|
domainLimit: PropTypes.oneOfType([PropTypes.oneOf(['nice', 'strict']), PropTypes.func]),
|
|
762
|
-
height: PropTypes.number,
|
|
795
|
+
height: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number]),
|
|
763
796
|
hideTooltip: PropTypes.bool,
|
|
764
797
|
id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
765
798
|
ignoreTooltip: PropTypes.bool,
|
|
@@ -797,6 +830,7 @@ process.env.NODE_ENV !== "production" ? ScatterChart.propTypes = {
|
|
|
797
830
|
barGapRatio: PropTypes.number,
|
|
798
831
|
categoryGapRatio: PropTypes.number,
|
|
799
832
|
classes: PropTypes.object,
|
|
833
|
+
className: PropTypes.string,
|
|
800
834
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
801
835
|
colors: PropTypes.arrayOf(PropTypes.string).isRequired,
|
|
802
836
|
type: PropTypes.oneOf(['ordinal']).isRequired,
|
|
@@ -850,10 +884,11 @@ process.env.NODE_ENV !== "production" ? ScatterChart.propTypes = {
|
|
|
850
884
|
tickSize: PropTypes.number,
|
|
851
885
|
tickSpacing: PropTypes.number,
|
|
852
886
|
valueFormatter: PropTypes.func,
|
|
853
|
-
width: PropTypes.number
|
|
887
|
+
width: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number])
|
|
854
888
|
}), PropTypes.shape({
|
|
855
889
|
axis: PropTypes.oneOf(['y']),
|
|
856
890
|
classes: PropTypes.object,
|
|
891
|
+
className: PropTypes.string,
|
|
857
892
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
858
893
|
colors: PropTypes.arrayOf(PropTypes.string).isRequired,
|
|
859
894
|
type: PropTypes.oneOf(['ordinal']).isRequired,
|
|
@@ -907,10 +942,11 @@ process.env.NODE_ENV !== "production" ? ScatterChart.propTypes = {
|
|
|
907
942
|
tickSize: PropTypes.number,
|
|
908
943
|
tickSpacing: PropTypes.number,
|
|
909
944
|
valueFormatter: PropTypes.func,
|
|
910
|
-
width: PropTypes.number
|
|
945
|
+
width: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number])
|
|
911
946
|
}), PropTypes.shape({
|
|
912
947
|
axis: PropTypes.oneOf(['y']),
|
|
913
948
|
classes: PropTypes.object,
|
|
949
|
+
className: PropTypes.string,
|
|
914
950
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
915
951
|
color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
|
|
916
952
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
@@ -951,10 +987,11 @@ process.env.NODE_ENV !== "production" ? ScatterChart.propTypes = {
|
|
|
951
987
|
tickSize: PropTypes.number,
|
|
952
988
|
tickSpacing: PropTypes.number,
|
|
953
989
|
valueFormatter: PropTypes.func,
|
|
954
|
-
width: PropTypes.number
|
|
990
|
+
width: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number])
|
|
955
991
|
}), PropTypes.shape({
|
|
956
992
|
axis: PropTypes.oneOf(['y']),
|
|
957
993
|
classes: PropTypes.object,
|
|
994
|
+
className: PropTypes.string,
|
|
958
995
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
959
996
|
color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
|
|
960
997
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
@@ -996,10 +1033,11 @@ process.env.NODE_ENV !== "production" ? ScatterChart.propTypes = {
|
|
|
996
1033
|
tickSize: PropTypes.number,
|
|
997
1034
|
tickSpacing: PropTypes.number,
|
|
998
1035
|
valueFormatter: PropTypes.func,
|
|
999
|
-
width: PropTypes.number
|
|
1036
|
+
width: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number])
|
|
1000
1037
|
}), PropTypes.shape({
|
|
1001
1038
|
axis: PropTypes.oneOf(['y']),
|
|
1002
1039
|
classes: PropTypes.object,
|
|
1040
|
+
className: PropTypes.string,
|
|
1003
1041
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
1004
1042
|
color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
|
|
1005
1043
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
@@ -1040,10 +1078,11 @@ process.env.NODE_ENV !== "production" ? ScatterChart.propTypes = {
|
|
|
1040
1078
|
tickSize: PropTypes.number,
|
|
1041
1079
|
tickSpacing: PropTypes.number,
|
|
1042
1080
|
valueFormatter: PropTypes.func,
|
|
1043
|
-
width: PropTypes.number
|
|
1081
|
+
width: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number])
|
|
1044
1082
|
}), PropTypes.shape({
|
|
1045
1083
|
axis: PropTypes.oneOf(['y']),
|
|
1046
1084
|
classes: PropTypes.object,
|
|
1085
|
+
className: PropTypes.string,
|
|
1047
1086
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
1048
1087
|
color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
|
|
1049
1088
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
@@ -1084,10 +1123,11 @@ process.env.NODE_ENV !== "production" ? ScatterChart.propTypes = {
|
|
|
1084
1123
|
tickSize: PropTypes.number,
|
|
1085
1124
|
tickSpacing: PropTypes.number,
|
|
1086
1125
|
valueFormatter: PropTypes.func,
|
|
1087
|
-
width: PropTypes.number
|
|
1126
|
+
width: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number])
|
|
1088
1127
|
}), PropTypes.shape({
|
|
1089
1128
|
axis: PropTypes.oneOf(['y']),
|
|
1090
1129
|
classes: PropTypes.object,
|
|
1130
|
+
className: PropTypes.string,
|
|
1091
1131
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
1092
1132
|
color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
|
|
1093
1133
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
@@ -1132,10 +1172,11 @@ process.env.NODE_ENV !== "production" ? ScatterChart.propTypes = {
|
|
|
1132
1172
|
tickSize: PropTypes.number,
|
|
1133
1173
|
tickSpacing: PropTypes.number,
|
|
1134
1174
|
valueFormatter: PropTypes.func,
|
|
1135
|
-
width: PropTypes.number
|
|
1175
|
+
width: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number])
|
|
1136
1176
|
}), PropTypes.shape({
|
|
1137
1177
|
axis: PropTypes.oneOf(['y']),
|
|
1138
1178
|
classes: PropTypes.object,
|
|
1179
|
+
className: PropTypes.string,
|
|
1139
1180
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
1140
1181
|
color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
|
|
1141
1182
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
@@ -1180,10 +1221,11 @@ process.env.NODE_ENV !== "production" ? ScatterChart.propTypes = {
|
|
|
1180
1221
|
tickSize: PropTypes.number,
|
|
1181
1222
|
tickSpacing: PropTypes.number,
|
|
1182
1223
|
valueFormatter: PropTypes.func,
|
|
1183
|
-
width: PropTypes.number
|
|
1224
|
+
width: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number])
|
|
1184
1225
|
}), PropTypes.shape({
|
|
1185
1226
|
axis: PropTypes.oneOf(['y']),
|
|
1186
1227
|
classes: PropTypes.object,
|
|
1228
|
+
className: PropTypes.string,
|
|
1187
1229
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
1188
1230
|
color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
|
|
1189
1231
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
@@ -1224,7 +1266,7 @@ process.env.NODE_ENV !== "production" ? ScatterChart.propTypes = {
|
|
|
1224
1266
|
tickSize: PropTypes.number,
|
|
1225
1267
|
tickSpacing: PropTypes.number,
|
|
1226
1268
|
valueFormatter: PropTypes.func,
|
|
1227
|
-
width: PropTypes.number
|
|
1269
|
+
width: PropTypes.oneOfType([PropTypes.oneOf(['auto']), PropTypes.number])
|
|
1228
1270
|
})]).isRequired),
|
|
1229
1271
|
/**
|
|
1230
1272
|
* The configuration of the z-axes.
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _getLabel = require("../../internals/getLabel");
|
|
8
|
+
const descriptionGetter = params => {
|
|
9
|
+
const {
|
|
10
|
+
identifier,
|
|
11
|
+
series,
|
|
12
|
+
xAxis,
|
|
13
|
+
yAxis,
|
|
14
|
+
localeText
|
|
15
|
+
} = params;
|
|
16
|
+
const label = (0, _getLabel.getLabel)(series.label, 'tooltip');
|
|
17
|
+
const item = series.data[identifier.dataIndex];
|
|
18
|
+
const formattedXValue = xAxis.valueFormatter?.(item?.x, {
|
|
19
|
+
location: 'tooltip',
|
|
20
|
+
scale: xAxis.scale
|
|
21
|
+
}) ?? '';
|
|
22
|
+
const formattedYValue = yAxis.valueFormatter?.(item?.y, {
|
|
23
|
+
location: 'tooltip',
|
|
24
|
+
scale: yAxis.scale
|
|
25
|
+
}) ?? '';
|
|
26
|
+
return localeText.scatterDescription({
|
|
27
|
+
x: item?.x ?? null,
|
|
28
|
+
y: item?.y ?? null,
|
|
29
|
+
formattedXValue,
|
|
30
|
+
formattedYValue,
|
|
31
|
+
seriesLabel: label
|
|
32
|
+
});
|
|
33
|
+
};
|
|
34
|
+
var _default = exports.default = descriptionGetter;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { getLabel } from "../../internals/getLabel.mjs";
|
|
2
|
+
const descriptionGetter = params => {
|
|
3
|
+
const {
|
|
4
|
+
identifier,
|
|
5
|
+
series,
|
|
6
|
+
xAxis,
|
|
7
|
+
yAxis,
|
|
8
|
+
localeText
|
|
9
|
+
} = params;
|
|
10
|
+
const label = getLabel(series.label, 'tooltip');
|
|
11
|
+
const item = series.data[identifier.dataIndex];
|
|
12
|
+
const formattedXValue = xAxis.valueFormatter?.(item?.x, {
|
|
13
|
+
location: 'tooltip',
|
|
14
|
+
scale: xAxis.scale
|
|
15
|
+
}) ?? '';
|
|
16
|
+
const formattedYValue = yAxis.valueFormatter?.(item?.y, {
|
|
17
|
+
location: 'tooltip',
|
|
18
|
+
scale: yAxis.scale
|
|
19
|
+
}) ?? '';
|
|
20
|
+
return localeText.scatterDescription({
|
|
21
|
+
x: item?.x ?? null,
|
|
22
|
+
y: item?.y ?? null,
|
|
23
|
+
formattedXValue,
|
|
24
|
+
formattedYValue,
|
|
25
|
+
seriesLabel: label
|
|
26
|
+
});
|
|
27
|
+
};
|
|
28
|
+
export default descriptionGetter;
|
|
@@ -16,6 +16,7 @@ var _keyboardFocusHandler = _interopRequireDefault(require("./keyboardFocusHandl
|
|
|
16
16
|
var _identifierSerializer = require("../../internals/identifierSerializer");
|
|
17
17
|
var _identifierCleaner = require("../../internals/identifierCleaner");
|
|
18
18
|
var _useChartHighlight = require("../../internals/plugins/featurePlugins/useChartHighlight");
|
|
19
|
+
var _descriptionGetter = _interopRequireDefault(require("./descriptionGetter"));
|
|
19
20
|
const scatterSeriesConfig = exports.scatterSeriesConfig = {
|
|
20
21
|
seriesProcessor: _seriesProcessor.default,
|
|
21
22
|
colorProcessor: _getColor.default,
|
|
@@ -28,6 +29,7 @@ const scatterSeriesConfig = exports.scatterSeriesConfig = {
|
|
|
28
29
|
keyboardFocusHandler: _keyboardFocusHandler.default,
|
|
29
30
|
identifierSerializer: _identifierSerializer.identifierSerializerSeriesIdDataIndex,
|
|
30
31
|
identifierCleaner: _identifierCleaner.identifierCleanerSeriesIdDataIndex,
|
|
32
|
+
descriptionGetter: _descriptionGetter.default,
|
|
31
33
|
isHighlightedCreator: _useChartHighlight.createIsHighlighted,
|
|
32
34
|
isFadedCreator: _useChartHighlight.createIsFaded
|
|
33
35
|
};
|
|
@@ -9,6 +9,7 @@ import keyboardFocusHandler from "./keyboardFocusHandler.mjs";
|
|
|
9
9
|
import { identifierSerializerSeriesIdDataIndex } from "../../internals/identifierSerializer.mjs";
|
|
10
10
|
import { identifierCleanerSeriesIdDataIndex } from "../../internals/identifierCleaner.mjs";
|
|
11
11
|
import { createIsHighlighted, createIsFaded } from "../../internals/plugins/featurePlugins/useChartHighlight/index.mjs";
|
|
12
|
+
import descriptionGetter from "./descriptionGetter.mjs";
|
|
12
13
|
export const scatterSeriesConfig = {
|
|
13
14
|
seriesProcessor,
|
|
14
15
|
colorProcessor: getColor,
|
|
@@ -21,6 +22,7 @@ export const scatterSeriesConfig = {
|
|
|
21
22
|
keyboardFocusHandler,
|
|
22
23
|
identifierSerializer: identifierSerializerSeriesIdDataIndex,
|
|
23
24
|
identifierCleaner: identifierCleanerSeriesIdDataIndex,
|
|
25
|
+
descriptionGetter,
|
|
24
26
|
isHighlightedCreator: createIsHighlighted,
|
|
25
27
|
isFadedCreator: createIsFaded
|
|
26
28
|
};
|
|
@@ -4,25 +4,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
var
|
|
8
|
-
const legendGetter =
|
|
9
|
-
const {
|
|
10
|
-
seriesOrder,
|
|
11
|
-
series
|
|
12
|
-
} = params;
|
|
13
|
-
return seriesOrder.reduce((acc, seriesId) => {
|
|
14
|
-
const formattedLabel = (0, _getLabel.getLabel)(series[seriesId].label, 'legend');
|
|
15
|
-
if (formattedLabel === undefined) {
|
|
16
|
-
return acc;
|
|
17
|
-
}
|
|
18
|
-
acc.push({
|
|
19
|
-
type: 'scatter',
|
|
20
|
-
markType: series[seriesId].labelMarkType,
|
|
21
|
-
seriesId,
|
|
22
|
-
color: series[seriesId].color,
|
|
23
|
-
label: formattedLabel
|
|
24
|
-
});
|
|
25
|
-
return acc;
|
|
26
|
-
}, []);
|
|
27
|
-
};
|
|
7
|
+
var _legendUtils = require("../../internals/legendUtils");
|
|
8
|
+
const legendGetter = series => (0, _legendUtils.getSeriesLegendItems)('scatter', series);
|
|
28
9
|
var _default = exports.default = legendGetter;
|
|
@@ -1,22 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
const legendGetter =
|
|
3
|
-
const {
|
|
4
|
-
seriesOrder,
|
|
5
|
-
series
|
|
6
|
-
} = params;
|
|
7
|
-
return seriesOrder.reduce((acc, seriesId) => {
|
|
8
|
-
const formattedLabel = getLabel(series[seriesId].label, 'legend');
|
|
9
|
-
if (formattedLabel === undefined) {
|
|
10
|
-
return acc;
|
|
11
|
-
}
|
|
12
|
-
acc.push({
|
|
13
|
-
type: 'scatter',
|
|
14
|
-
markType: series[seriesId].labelMarkType,
|
|
15
|
-
seriesId,
|
|
16
|
-
color: series[seriesId].color,
|
|
17
|
-
label: formattedLabel
|
|
18
|
-
});
|
|
19
|
-
return acc;
|
|
20
|
-
}, []);
|
|
21
|
-
};
|
|
1
|
+
import { getSeriesLegendItems } from "../../internals/legendUtils.mjs";
|
|
2
|
+
const legendGetter = series => getSeriesLegendItems('scatter', series);
|
|
22
3
|
export default legendGetter;
|
|
@@ -4,7 +4,7 @@ import { type ChartsAxisHighlightProps } from "../ChartsAxisHighlight/index.mjs"
|
|
|
4
4
|
import { type ChartsGridProps } from "../ChartsGrid/index.mjs";
|
|
5
5
|
import { type ChartsLegendSlotExtension } from "../ChartsLegend/index.mjs";
|
|
6
6
|
import { type ChartsOverlayProps } from "../ChartsOverlay/index.mjs";
|
|
7
|
-
import { type
|
|
7
|
+
import { type ChartsContainerProps } from "../ChartsContainer/index.mjs";
|
|
8
8
|
import type { ScatterChartProps } from "./ScatterChart.mjs";
|
|
9
9
|
import type { ScatterPlotProps } from "./ScatterPlot.mjs";
|
|
10
10
|
import type { ChartsWrapperProps } from "../ChartsWrapper/index.mjs";
|
|
@@ -18,7 +18,7 @@ import { type ScatterChartPluginSignatures } from "./ScatterChart.plugins.mjs";
|
|
|
18
18
|
*/
|
|
19
19
|
export declare const useScatterChartProps: (props: ScatterChartProps) => {
|
|
20
20
|
chartsWrapperProps: Omit<ChartsWrapperProps, "children">;
|
|
21
|
-
|
|
21
|
+
chartsContainerProps: ChartsContainerProps<"scatter", ScatterChartPluginSignatures>;
|
|
22
22
|
chartsAxisProps: ChartsAxisProps;
|
|
23
23
|
gridProps: ChartsGridProps;
|
|
24
24
|
scatterPlotProps: ScatterPlotProps;
|
|
@@ -4,7 +4,7 @@ import { type ChartsAxisHighlightProps } from "../ChartsAxisHighlight/index.js";
|
|
|
4
4
|
import { type ChartsGridProps } from "../ChartsGrid/index.js";
|
|
5
5
|
import { type ChartsLegendSlotExtension } from "../ChartsLegend/index.js";
|
|
6
6
|
import { type ChartsOverlayProps } from "../ChartsOverlay/index.js";
|
|
7
|
-
import { type
|
|
7
|
+
import { type ChartsContainerProps } from "../ChartsContainer/index.js";
|
|
8
8
|
import type { ScatterChartProps } from "./ScatterChart.js";
|
|
9
9
|
import type { ScatterPlotProps } from "./ScatterPlot.js";
|
|
10
10
|
import type { ChartsWrapperProps } from "../ChartsWrapper/index.js";
|
|
@@ -18,7 +18,7 @@ import { type ScatterChartPluginSignatures } from "./ScatterChart.plugins.js";
|
|
|
18
18
|
*/
|
|
19
19
|
export declare const useScatterChartProps: (props: ScatterChartProps) => {
|
|
20
20
|
chartsWrapperProps: Omit<ChartsWrapperProps, "children">;
|
|
21
|
-
|
|
21
|
+
chartsContainerProps: ChartsContainerProps<"scatter", ScatterChartPluginSignatures>;
|
|
22
22
|
chartsAxisProps: ChartsAxisProps;
|
|
23
23
|
gridProps: ChartsGridProps;
|
|
24
24
|
scatterPlotProps: ScatterPlotProps;
|
|
@@ -11,7 +11,7 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
|
|
|
11
11
|
var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
|
|
12
12
|
var React = _interopRequireWildcard(require("react"));
|
|
13
13
|
var _ScatterChart = require("./ScatterChart.plugins");
|
|
14
|
-
const _excluded = ["xAxis", "yAxis", "zAxis", "series", "axisHighlight", "
|
|
14
|
+
const _excluded = ["xAxis", "yAxis", "zAxis", "series", "axisHighlight", "hitAreaRadius", "disableHitArea", "hideLegend", "width", "height", "margin", "colors", "sx", "grid", "onItemClick", "children", "slots", "slotProps", "loading", "highlightedItem", "onHighlightChange", "className", "showToolbar", "renderer", "brushConfig"];
|
|
15
15
|
/**
|
|
16
16
|
* A helper function that extracts ScatterChartProps from the input props
|
|
17
17
|
* and returns an object with props for the children components of ScatterChart.
|
|
@@ -26,8 +26,8 @@ const useScatterChartProps = props => {
|
|
|
26
26
|
zAxis,
|
|
27
27
|
series,
|
|
28
28
|
axisHighlight,
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
hitAreaRadius,
|
|
30
|
+
disableHitArea,
|
|
31
31
|
width,
|
|
32
32
|
height,
|
|
33
33
|
margin,
|
|
@@ -49,8 +49,9 @@ const useScatterChartProps = props => {
|
|
|
49
49
|
const seriesWithDefault = React.useMemo(() => series.map(s => (0, _extends2.default)({
|
|
50
50
|
type: 'scatter'
|
|
51
51
|
}, s)), [series]);
|
|
52
|
-
const
|
|
53
|
-
const
|
|
52
|
+
const resolvedDisableHitArea = disableHitArea;
|
|
53
|
+
const useVoronoiOnItemClick = resolvedDisableHitArea !== true || renderer === 'svg-batch';
|
|
54
|
+
const chartsContainerProps = (0, _extends2.default)({}, other, {
|
|
54
55
|
series: seriesWithDefault,
|
|
55
56
|
width,
|
|
56
57
|
height,
|
|
@@ -61,8 +62,8 @@ const useScatterChartProps = props => {
|
|
|
61
62
|
zAxis,
|
|
62
63
|
highlightedItem,
|
|
63
64
|
onHighlightChange,
|
|
64
|
-
|
|
65
|
-
|
|
65
|
+
disableHitArea,
|
|
66
|
+
hitAreaRadius,
|
|
66
67
|
onItemClick: useVoronoiOnItemClick ? onItemClick : undefined,
|
|
67
68
|
plugins: _ScatterChart.SCATTER_CHART_PLUGINS,
|
|
68
69
|
slots,
|
|
@@ -105,7 +106,7 @@ const useScatterChartProps = props => {
|
|
|
105
106
|
};
|
|
106
107
|
return {
|
|
107
108
|
chartsWrapperProps,
|
|
108
|
-
|
|
109
|
+
chartsContainerProps,
|
|
109
110
|
chartsAxisProps,
|
|
110
111
|
gridProps,
|
|
111
112
|
scatterPlotProps,
|