@mui/x-charts 9.0.0-alpha.2 → 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/AnimatedBarElement.d.mts +1 -1
- package/BarChart/AnimatedBarElement.d.ts +1 -1
- package/BarChart/BarChart.d.mts +2 -2
- package/BarChart/BarChart.d.ts +2 -2
- package/BarChart/BarChart.js +41 -8
- package/BarChart/BarChart.mjs +41 -8
- package/BarChart/BarElement.d.mts +1 -1
- package/BarChart/BarElement.d.ts +1 -1
- package/BarChart/BarElement.js +7 -8
- package/BarChart/BarElement.mjs +6 -7
- package/BarChart/BarLabel/BarLabel.js +1 -7
- package/BarChart/BarLabel/BarLabel.mjs +1 -7
- package/BarChart/BarLabel/BarLabel.types.d.mts +2 -2
- package/BarChart/BarLabel/BarLabel.types.d.ts +2 -2
- package/BarChart/BarLabel/BarLabelItem.js +7 -8
- package/BarChart/BarLabel/BarLabelItem.mjs +6 -7
- 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 +9 -4
- package/BarChart/BarPlot.mjs +10 -5
- package/BarChart/BatchBarPlot/BatchBarPlot.js +3 -3
- package/BarChart/BatchBarPlot/BatchBarPlot.mjs +3 -3
- package/BarChart/barClasses.d.mts +21 -1
- package/BarChart/barClasses.d.ts +21 -1
- package/BarChart/barClasses.js +9 -3
- package/BarChart/barClasses.mjs +9 -3
- package/BarChart/index.d.mts +1 -2
- package/BarChart/index.d.ts +1 -2
- package/BarChart/index.js +1 -20
- package/BarChart/index.mjs +1 -2
- 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 +246 -1
- 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.d.mts +1 -1
- package/ChartsContainer/ChartsContainer.d.ts +1 -1
- package/ChartsContainer/ChartsContainer.js +52 -15
- package/ChartsContainer/ChartsContainer.mjs +52 -15
- package/ChartsContainer/useChartsContainerProps.d.mts +4 -4
- package/ChartsContainer/useChartsContainerProps.d.ts +4 -4
- package/ChartsContainer/useChartsContainerProps.js +10 -10
- package/ChartsContainer/useChartsContainerProps.mjs +10 -10
- package/ChartsDataProvider/ChartsDataProvider.d.mts +2 -2
- package/ChartsDataProvider/ChartsDataProvider.d.ts +2 -2
- package/ChartsDataProvider/ChartsDataProvider.js +0 -6
- package/ChartsDataProvider/ChartsDataProvider.mjs +0 -6
- package/ChartsDataProvider/useChartsDataProviderProps.d.mts +2 -2
- package/ChartsDataProvider/useChartsDataProviderProps.d.ts +2 -2
- 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/ChartsLabel/ChartsLabelMark.d.mts +8 -1
- package/ChartsLabel/ChartsLabelMark.d.ts +8 -1
- package/ChartsLabel/ChartsLabelMark.js +29 -3
- package/ChartsLabel/ChartsLabelMark.mjs +29 -3
- package/ChartsLabel/labelMarkClasses.d.mts +2 -0
- package/ChartsLabel/labelMarkClasses.d.ts +2 -0
- package/ChartsLabel/labelMarkClasses.js +1 -1
- package/ChartsLabel/labelMarkClasses.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 +6 -4
- package/ChartsLegend/ChartsLegend.mjs +6 -4
- package/ChartsLegend/legendContext.types.d.mts +1 -6
- package/ChartsLegend/legendContext.types.d.ts +1 -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 -29
- package/ChartsTooltip/ChartsAxisTooltipContent.mjs +45 -29
- package/ChartsTooltip/ChartsItemTooltipContent.js +80 -40
- package/ChartsTooltip/ChartsItemTooltipContent.mjs +79 -40
- package/ChartsTooltip/ChartsTooltipContainer.js +10 -4
- package/ChartsTooltip/ChartsTooltipContainer.mjs +9 -3
- package/ChartsTooltip/ChartsTooltipTable.d.mts +1 -1
- package/ChartsTooltip/ChartsTooltipTable.d.ts +1 -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 +3 -3
- package/ChartsTooltip/useAxesTooltip.d.ts +3 -3
- package/ChartsTooltip/useAxesTooltip.js +6 -4
- package/ChartsTooltip/useAxesTooltip.mjs +6 -4
- package/ChartsTooltip/useItemTooltip.d.mts +3 -3
- package/ChartsTooltip/useItemTooltip.d.ts +3 -3
- 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 +367 -286
- package/ChartsXAxis/useAxisTicksProps.d.ts +367 -286
- 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 +367 -286
- package/ChartsYAxis/useAxisTicksProps.d.ts +367 -286
- 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 -23
- package/LineChart/AreaElement.d.ts +2 -23
- package/LineChart/AreaElement.js +10 -29
- package/LineChart/AreaElement.mjs +10 -27
- package/LineChart/AreaPlot.js +10 -4
- package/LineChart/AreaPlot.mjs +11 -5
- package/LineChart/CircleMarkElement.d.mts +1 -1
- package/LineChart/CircleMarkElement.d.ts +1 -1
- package/LineChart/CircleMarkElement.js +10 -11
- package/LineChart/CircleMarkElement.mjs +10 -11
- package/LineChart/LineChart.d.mts +2 -2
- package/LineChart/LineChart.d.ts +2 -2
- package/LineChart/LineChart.js +38 -11
- package/LineChart/LineChart.mjs +38 -11
- package/LineChart/LineElement.d.mts +2 -23
- package/LineChart/LineElement.d.ts +2 -23
- package/LineChart/LineElement.js +10 -29
- package/LineChart/LineElement.mjs +10 -27
- package/LineChart/LineHighlightElement.d.mts +0 -8
- package/LineChart/LineHighlightElement.d.ts +0 -8
- package/LineChart/LineHighlightElement.js +4 -22
- package/LineChart/LineHighlightElement.mjs +4 -20
- package/LineChart/LineHighlightPlot.js +2 -2
- package/LineChart/LineHighlightPlot.mjs +2 -2
- package/LineChart/LinePlot.js +11 -5
- package/LineChart/LinePlot.mjs +12 -6
- package/LineChart/MarkElement.d.mts +1 -1
- package/LineChart/MarkElement.d.ts +1 -1
- package/LineChart/MarkElement.js +10 -4
- package/LineChart/MarkElement.mjs +10 -4
- package/LineChart/MarkPlot.js +21 -11
- package/LineChart/MarkPlot.mjs +22 -12
- package/LineChart/index.d.mts +2 -2
- package/LineChart/index.d.ts +2 -2
- package/LineChart/index.js +4 -11
- package/LineChart/index.mjs +1 -1
- package/LineChart/lineClasses.d.mts +34 -0
- package/LineChart/lineClasses.d.ts +34 -0
- package/LineChart/lineClasses.js +32 -0
- package/LineChart/lineClasses.mjs +23 -0
- package/LineChart/seriesConfig/legend.js +1 -0
- package/LineChart/seriesConfig/legend.mjs +1 -0
- package/LineChart/seriesConfig/seriesProcessor.js +9 -6
- package/LineChart/seriesConfig/seriesProcessor.mjs +9 -6
- package/LineChart/seriesConfig/tooltip.js +2 -1
- package/LineChart/seriesConfig/tooltip.mjs +2 -1
- 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 +7 -8
- package/PieChart/FocusedPieArc.mjs +8 -8
- package/PieChart/PieArc.d.mts +1 -35
- package/PieChart/PieArc.d.ts +1 -35
- package/PieChart/PieArc.js +6 -27
- package/PieChart/PieArc.mjs +6 -25
- package/PieChart/PieArcLabel.d.mts +3 -30
- package/PieChart/PieArcLabel.d.ts +3 -30
- package/PieChart/PieArcLabel.js +9 -31
- package/PieChart/PieArcLabel.mjs +8 -28
- package/PieChart/PieArcLabelPlot.js +6 -3
- package/PieChart/PieArcLabelPlot.mjs +6 -3
- package/PieChart/PieArcPlot.js +6 -1
- package/PieChart/PieArcPlot.mjs +6 -1
- package/PieChart/PieChart.d.mts +2 -2
- package/PieChart/PieChart.d.ts +2 -2
- package/PieChart/PieChart.js +22 -7
- package/PieChart/PieChart.mjs +22 -7
- package/PieChart/PiePlot.d.mts +1 -0
- package/PieChart/PiePlot.d.ts +1 -0
- package/PieChart/PiePlot.js +4 -1
- package/PieChart/PiePlot.mjs +4 -1
- package/PieChart/dataTransform/useTransformData.js +6 -8
- package/PieChart/dataTransform/useTransformData.mjs +6 -8
- package/PieChart/index.d.mts +1 -1
- package/PieChart/index.d.ts +1 -1
- package/PieChart/pieClasses.d.mts +22 -1
- package/PieChart/pieClasses.d.ts +22 -1
- package/PieChart/pieClasses.js +10 -3
- package/PieChart/pieClasses.mjs +10 -3
- 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 +20 -2
- package/RadarChart/RadarChart.mjs +20 -2
- 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 +5 -5
- package/RadarChart/RadarSeriesPlot/RadarSeriesArea.d.ts +5 -5
- package/RadarChart/RadarSeriesPlot/RadarSeriesArea.js +13 -20
- package/RadarChart/RadarSeriesPlot/RadarSeriesArea.mjs +13 -20
- package/RadarChart/RadarSeriesPlot/RadarSeriesMarks.d.mts +15 -6
- package/RadarChart/RadarSeriesPlot/RadarSeriesMarks.d.ts +15 -6
- package/RadarChart/RadarSeriesPlot/RadarSeriesMarks.js +15 -20
- package/RadarChart/RadarSeriesPlot/RadarSeriesMarks.mjs +15 -20
- package/RadarChart/RadarSeriesPlot/RadarSeriesPlot.js +9 -12
- package/RadarChart/RadarSeriesPlot/RadarSeriesPlot.mjs +8 -11
- 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.d.mts +1 -1
- package/RadarChart/RadarSeriesPlot/useRadarSeriesData.d.ts +1 -1
- package/RadarChart/RadarSeriesPlot/useRadarSeriesData.js +10 -18
- package/RadarChart/RadarSeriesPlot/useRadarSeriesData.mjs +10 -18
- 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/RadarChart/seriesConfig/tooltip.js +13 -8
- package/RadarChart/seriesConfig/tooltip.mjs +13 -8
- package/RadarChart/useRadarChartProps.js +3 -3
- package/RadarChart/useRadarChartProps.mjs +3 -3
- package/ScatterChart/BatchScatter.d.mts +2 -1
- package/ScatterChart/BatchScatter.d.ts +2 -1
- package/ScatterChart/BatchScatter.js +8 -6
- package/ScatterChart/BatchScatter.mjs +7 -6
- package/ScatterChart/FocusedScatterMark.d.mts +4 -1
- package/ScatterChart/FocusedScatterMark.d.ts +4 -1
- package/ScatterChart/FocusedScatterMark.js +12 -2
- package/ScatterChart/FocusedScatterMark.mjs +11 -1
- package/ScatterChart/Scatter.d.mts +1 -1
- package/ScatterChart/Scatter.d.ts +1 -1
- package/ScatterChart/Scatter.js +14 -12
- package/ScatterChart/Scatter.mjs +14 -12
- package/ScatterChart/ScatterChart.d.mts +15 -3
- package/ScatterChart/ScatterChart.d.ts +15 -3
- package/ScatterChart/ScatterChart.js +60 -15
- package/ScatterChart/ScatterChart.mjs +60 -15
- package/ScatterChart/ScatterPlot.d.mts +2 -1
- package/ScatterChart/ScatterPlot.d.ts +2 -1
- package/ScatterChart/ScatterPlot.js +16 -2
- package/ScatterChart/ScatterPlot.mjs +16 -2
- package/ScatterChart/index.d.mts +2 -2
- package/ScatterChart/index.d.ts +2 -2
- package/ScatterChart/scatterClasses.d.mts +14 -2
- package/ScatterChart/scatterClasses.d.ts +14 -2
- package/ScatterChart/scatterClasses.js +9 -3
- package/ScatterChart/scatterClasses.mjs +9 -3
- 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 +45 -12
- package/SparkLineChart/SparkLineChart.mjs +45 -12
- package/context/ChartApi.d.mts +1 -1
- package/context/ChartApi.d.ts +1 -1
- package/context/ChartsProvider/ChartsProvider.d.mts +1 -1
- package/context/ChartsProvider/ChartsProvider.d.ts +1 -1
- package/context/ChartsProvider/ChartsProvider.types.d.mts +3 -3
- package/context/ChartsProvider/ChartsProvider.types.d.ts +3 -3
- 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/index.d.mts +2 -2
- package/hooks/index.d.ts +2 -2
- package/hooks/index.js +8 -8
- package/hooks/index.mjs +2 -2
- 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 -2
- package/hooks/useInteractionItemProps.d.ts +1 -2
- package/hooks/useInteractionItemProps.js +2 -2
- package/hooks/useInteractionItemProps.mjs +2 -2
- package/hooks/{useItemHighlighted.d.mts → useItemHighlightState.d.mts} +5 -13
- package/hooks/{useItemHighlighted.d.ts → useItemHighlightState.d.ts} +5 -13
- package/hooks/{useItemHighlighted.js → useItemHighlightState.js} +5 -10
- package/hooks/useItemHighlightState.mjs +17 -0
- package/hooks/useItemHighlightStateGetter.d.mts +9 -0
- package/hooks/useItemHighlightStateGetter.d.ts +9 -0
- package/hooks/useItemHighlightStateGetter.js +21 -0
- package/hooks/useItemHighlightStateGetter.mjs +16 -0
- 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/commonNextFocusItem.d.mts +5 -5
- package/internals/commonNextFocusItem.d.ts +5 -5
- package/internals/consumeSlots.d.mts +1 -1
- package/internals/consumeSlots.d.ts +1 -1
- package/internals/createCommonKeyboardFocusHandler.d.mts +2 -2
- package/internals/createCommonKeyboardFocusHandler.d.ts +2 -2
- package/internals/identifierCleaner.d.mts +8 -4
- package/internals/identifierCleaner.d.ts +8 -4
- package/internals/identifierCleaner.js +4 -1
- package/internals/identifierCleaner.mjs +4 -1
- package/internals/identifierSerializer.d.mts +10 -2
- package/internals/identifierSerializer.d.ts +10 -2
- package/internals/identifierSerializer.js +8 -0
- package/internals/identifierSerializer.mjs +8 -0
- 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/allPlugins.d.mts +2 -2
- package/internals/plugins/allPlugins.d.ts +2 -2
- package/internals/plugins/corePlugins/corePlugins.d.mts +1 -1
- package/internals/plugins/corePlugins/corePlugins.d.ts +1 -1
- 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/processSeries.d.mts +6 -6
- package/internals/plugins/corePlugins/useChartSeries/processSeries.d.ts +6 -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/useChartSeries/useChartSeries.types.d.mts +9 -9
- package/internals/plugins/corePlugins/useChartSeries/useChartSeries.types.d.ts +9 -9
- package/internals/plugins/corePlugins/useChartSeries/useColorProcessor.d.mts +2 -2
- package/internals/plugins/corePlugins/useChartSeries/useColorProcessor.d.ts +2 -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/cartesianExtremumGetter.types.d.mts +3 -3
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/cartesianExtremumGetter.types.d.ts +3 -3
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/colorProcessor.types.d.mts +4 -4
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/colorProcessor.types.d.ts +4 -4
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/getItemAtPosition.types.d.mts +2 -2
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/getItemAtPosition.types.d.ts +2 -2
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/getSeriesWithDefaultValues.types.d.mts +1 -1
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/getSeriesWithDefaultValues.types.d.ts +1 -1
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/identifierCleaner.types.d.mts +1 -1
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/identifierCleaner.types.d.ts +1 -1
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/identifierSerializer.types.d.mts +1 -1
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/identifierSerializer.types.d.ts +1 -1
- 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/legendGetter.types.d.mts +1 -1
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/legendGetter.types.d.ts +1 -1
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/polarExtremumGetter.types.d.mts +3 -3
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/polarExtremumGetter.types.d.ts +3 -3
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/seriesConfig.types.d.mts +33 -28
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/seriesConfig.types.d.ts +33 -28
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/seriesLayout.types.d.mts +2 -2
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/seriesLayout.types.d.ts +2 -2
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/seriesProcessor.types.d.mts +6 -6
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/seriesProcessor.types.d.ts +6 -6
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/tooltipGetter.types.d.mts +27 -38
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/tooltipGetter.types.d.ts +27 -38
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/tooltipItemPositionGetter.types.d.mts +4 -4
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/tooltipItemPositionGetter.types.d.ts +4 -4
- package/internals/plugins/corePlugins/useChartSeriesConfig/useChartSeriesConfig.types.d.mts +10 -10
- package/internals/plugins/corePlugins/useChartSeriesConfig/useChartSeriesConfig.types.d.ts +10 -10
- package/internals/plugins/corePlugins/useChartSeriesConfig/utils/cleanIdentifier.d.mts +3 -3
- package/internals/plugins/corePlugins/useChartSeriesConfig/utils/cleanIdentifier.d.ts +3 -3
- package/internals/plugins/corePlugins/useChartSeriesConfig/utils/serializeIdentifier.d.mts +3 -3
- package/internals/plugins/corePlugins/useChartSeriesConfig/utils/serializeIdentifier.d.ts +3 -3
- package/internals/plugins/featurePlugins/shared/useRegisterPointerInteractions.js +2 -2
- package/internals/plugins/featurePlugins/shared/useRegisterPointerInteractions.mjs +2 -2
- package/internals/plugins/featurePlugins/useChartCartesianAxis/computeAxisValue.d.mts +5 -5
- package/internals/plugins/featurePlugins/useChartCartesianAxis/computeAxisValue.d.ts +5 -5
- 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/getAxisTriggerTooltip.d.mts +1 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/getAxisTriggerTooltip.d.ts +1 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.d.mts +5 -5
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.d.ts +5 -5
- 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/useChartHighlight/highlightStates.d.mts +1 -2
- package/internals/plugins/featurePlugins/useChartHighlight/highlightStates.d.ts +1 -2
- package/internals/plugins/featurePlugins/useChartHighlight/highlightStates.js +0 -5
- package/internals/plugins/featurePlugins/useChartHighlight/highlightStates.mjs +0 -4
- package/internals/plugins/featurePlugins/useChartHighlight/useChartHighlight.selectors.d.mts +10 -29
- package/internals/plugins/featurePlugins/useChartHighlight/useChartHighlight.selectors.d.ts +10 -29
- package/internals/plugins/featurePlugins/useChartHighlight/useChartHighlight.selectors.js +27 -64
- package/internals/plugins/featurePlugins/useChartHighlight/useChartHighlight.selectors.mjs +24 -60
- 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/keyboardFocusHandler.types.d.mts +3 -3
- package/internals/plugins/featurePlugins/useChartKeyboardNavigation/keyboardFocusHandler.types.d.ts +3 -3
- package/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.js +8 -10
- package/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.mjs +8 -10
- package/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.selectors.js +1 -1
- package/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.selectors.mjs +1 -1
- package/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.types.d.mts +8 -2
- package/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.types.d.ts +8 -2
- package/internals/plugins/featurePlugins/useChartPolarAxis/computeAxisValue.d.mts +5 -5
- package/internals/plugins/featurePlugins/useChartPolarAxis/computeAxisValue.d.ts +5 -5
- package/internals/plugins/featurePlugins/useChartPolarAxis/getAxisExtremum.d.mts +1 -1
- package/internals/plugins/featurePlugins/useChartPolarAxis/getAxisExtremum.d.ts +1 -1
- package/internals/plugins/featurePlugins/useChartPolarAxis/getAxisTriggerTooltip.d.mts +1 -1
- package/internals/plugins/featurePlugins/useChartPolarAxis/getAxisTriggerTooltip.d.ts +1 -1
- package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarInteraction.selectors.js +6 -4
- package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarInteraction.selectors.mjs +6 -4
- package/internals/plugins/featurePlugins/useChartTooltip/useChartTooltip.types.d.mts +10 -10
- package/internals/plugins/featurePlugins/useChartTooltip/useChartTooltip.types.d.ts +10 -10
- package/internals/plugins/featurePlugins/useChartVisibilityManager/useChartVisibilityManager.types.d.mts +16 -16
- package/internals/plugins/featurePlugins/useChartVisibilityManager/useChartVisibilityManager.types.d.ts +16 -16
- package/internals/plugins/models/chart.d.mts +1 -1
- package/internals/plugins/models/chart.d.ts +1 -1
- 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/config.d.mts +18 -6
- package/models/seriesType/config.d.ts +18 -6
- package/models/seriesType/index.d.mts +8 -8
- package/models/seriesType/index.d.ts +8 -8
- package/models/seriesType/line.d.mts +4 -2
- package/models/seriesType/line.d.ts +4 -2
- package/models/seriesType/radar.d.mts +1 -1
- package/models/seriesType/radar.d.ts +1 -1
- package/models/seriesType/scatter.d.mts +0 -7
- package/models/seriesType/scatter.d.ts +0 -7
- package/package.json +86 -114
- package/themeAugmentation/components.d.mts +22 -17
- package/themeAugmentation/components.d.ts +22 -17
- package/themeAugmentation/overrides.d.mts +10 -8
- package/themeAugmentation/overrides.d.ts +10 -8
- package/themeAugmentation/props.d.mts +0 -2
- package/themeAugmentation/props.d.ts +0 -2
- package/BarChart/BarLabel/barLabelClasses.d.mts +0 -26
- package/BarChart/BarLabel/barLabelClasses.d.ts +0 -26
- package/BarChart/BarLabel/barLabelClasses.js +0 -30
- package/BarChart/BarLabel/barLabelClasses.mjs +0 -20
- package/BarChart/barElementClasses.d.mts +0 -33
- package/BarChart/barElementClasses.d.ts +0 -33
- package/BarChart/barElementClasses.js +0 -29
- package/BarChart/barElementClasses.mjs +0 -19
- 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 -33
- package/LineChart/markElementClasses.d.ts +0 -33
- package/LineChart/markElementClasses.js +0 -29
- package/LineChart/markElementClasses.mjs +0 -20
- 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/hooks/useItemHighlighted.mjs +0 -22
- package/hooks/useItemHighlightedGetter.d.mts +0 -53
- package/hooks/useItemHighlightedGetter.d.ts +0 -53
- package/hooks/useItemHighlightedGetter.js +0 -26
- package/hooks/useItemHighlightedGetter.mjs +0 -21
- 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
|
@@ -19,8 +19,8 @@ var _ChartsOverlay = require("../ChartsOverlay");
|
|
|
19
19
|
var _ChartsAxisHighlight = require("../ChartsAxisHighlight");
|
|
20
20
|
var _ChartsGrid = require("../ChartsGrid");
|
|
21
21
|
var _useScatterChartProps = require("./useScatterChartProps");
|
|
22
|
-
var
|
|
23
|
-
var
|
|
22
|
+
var _useChartsContainerProps = require("../ChartsContainer/useChartsContainerProps");
|
|
23
|
+
var _ChartsDataProvider = require("../ChartsDataProvider");
|
|
24
24
|
var _ChartsSurface = require("../ChartsSurface");
|
|
25
25
|
var _ChartsWrapper = require("../ChartsWrapper");
|
|
26
26
|
var _FocusedScatterMark = require("./FocusedScatterMark");
|
|
@@ -42,7 +42,7 @@ const ScatterChart = exports.ScatterChart = /*#__PURE__*/React.forwardRef(functi
|
|
|
42
42
|
});
|
|
43
43
|
const {
|
|
44
44
|
chartsWrapperProps,
|
|
45
|
-
|
|
45
|
+
chartsContainerProps,
|
|
46
46
|
chartsAxisProps,
|
|
47
47
|
gridProps,
|
|
48
48
|
scatterPlotProps,
|
|
@@ -52,12 +52,12 @@ const ScatterChart = exports.ScatterChart = /*#__PURE__*/React.forwardRef(functi
|
|
|
52
52
|
children
|
|
53
53
|
} = (0, _useScatterChartProps.useScatterChartProps)(props);
|
|
54
54
|
const {
|
|
55
|
-
|
|
55
|
+
chartsDataProviderProps,
|
|
56
56
|
chartsSurfaceProps
|
|
57
|
-
} = (0,
|
|
57
|
+
} = (0, _useChartsContainerProps.useChartsContainerProps)(chartsContainerProps);
|
|
58
58
|
const Tooltip = props.slots?.tooltip ?? _ChartsTooltip.ChartsTooltip;
|
|
59
59
|
const Toolbar = props.slots?.toolbar;
|
|
60
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
60
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsDataProvider.ChartsDataProvider, (0, _extends2.default)({}, chartsDataProviderProps, {
|
|
61
61
|
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_ChartsWrapper.ChartsWrapper, (0, _extends2.default)({}, chartsWrapperProps, {
|
|
62
62
|
ref: ref,
|
|
63
63
|
children: [props.showToolbar && Toolbar ? /*#__PURE__*/(0, _jsxRuntime.jsx)(Toolbar, (0, _extends2.default)({}, props.slotProps?.toolbar)) : null, !props.hideLegend && /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsLegend.ChartsLegend, (0, _extends2.default)({}, legendProps)), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_ChartsSurface.ChartsSurface, (0, _extends2.default)({}, chartsSurfaceProps, {
|
|
@@ -113,6 +113,10 @@ process.env.NODE_ENV !== "production" ? ScatterChart.propTypes = {
|
|
|
113
113
|
* An array of objects that can be used to populate series and axes data using their `dataKey` property.
|
|
114
114
|
*/
|
|
115
115
|
dataset: _propTypes.default.arrayOf(_propTypes.default.object),
|
|
116
|
+
/**
|
|
117
|
+
* The description of the chart.
|
|
118
|
+
* Used to provide an accessible description for the chart.
|
|
119
|
+
*/
|
|
116
120
|
desc: _propTypes.default.string,
|
|
117
121
|
/**
|
|
118
122
|
* If `true`, the charts will not listen to the mouse move event.
|
|
@@ -120,12 +124,31 @@ process.env.NODE_ENV !== "production" ? ScatterChart.propTypes = {
|
|
|
120
124
|
* @default false
|
|
121
125
|
*/
|
|
122
126
|
disableAxisListener: _propTypes.default.bool,
|
|
127
|
+
/**
|
|
128
|
+
* If true, the closest point interaction is disabled and falls back to hover events.
|
|
129
|
+
* @default false
|
|
130
|
+
* @deprecated Use `disableHitArea` instead.
|
|
131
|
+
*/
|
|
132
|
+
disableClosestPoint: _propTypes.default.bool,
|
|
133
|
+
/**
|
|
134
|
+
* If true, the hit area interaction is disabled and falls back to hover events.
|
|
135
|
+
* @default false
|
|
136
|
+
*/
|
|
137
|
+
disableHitArea: _propTypes.default.bool,
|
|
138
|
+
/**
|
|
139
|
+
* If `true`, disables keyboard navigation for the chart.
|
|
140
|
+
*/
|
|
141
|
+
disableKeyboardNavigation: _propTypes.default.bool,
|
|
123
142
|
/**
|
|
124
143
|
* If true, the interaction will not use the Voronoi cell and fall back to hover events.
|
|
125
144
|
* @default false
|
|
145
|
+
* @deprecated Use `disableHitArea` instead.
|
|
126
146
|
*/
|
|
127
147
|
disableVoronoi: _propTypes.default.bool,
|
|
128
|
-
|
|
148
|
+
/**
|
|
149
|
+
* Options to enable features planned for the next major.
|
|
150
|
+
*/
|
|
151
|
+
experimentalFeatures: _propTypes.default.object,
|
|
129
152
|
/**
|
|
130
153
|
* Option to display a cartesian grid in the background.
|
|
131
154
|
*/
|
|
@@ -182,6 +205,12 @@ process.env.NODE_ENV !== "production" ? ScatterChart.propTypes = {
|
|
|
182
205
|
dataIndex: _propTypes.default.number,
|
|
183
206
|
seriesId: _propTypes.default.string.isRequired
|
|
184
207
|
})]),
|
|
208
|
+
/**
|
|
209
|
+
* Defines the maximum distance between a scatter point and the pointer that triggers the interaction.
|
|
210
|
+
* If set to `'item'`, the radius is the `markerSize`.
|
|
211
|
+
* If `undefined`, the radius is assumed to be infinite.
|
|
212
|
+
*/
|
|
213
|
+
hitAreaRadius: _propTypes.default.oneOfType([_propTypes.default.oneOf(['item']), _propTypes.default.number]),
|
|
185
214
|
/**
|
|
186
215
|
* This prop is used to help implement the accessibility logic.
|
|
187
216
|
* If you don't provide this prop. It falls back to a randomly generated id.
|
|
@@ -258,7 +287,7 @@ process.env.NODE_ENV !== "production" ? ScatterChart.propTypes = {
|
|
|
258
287
|
onHighlightChange: _propTypes.default.func,
|
|
259
288
|
/**
|
|
260
289
|
* Callback fired when clicking on a scatter item.
|
|
261
|
-
* @param {MouseEvent} event The mouse event recorded on the `<svg/>` element if using
|
|
290
|
+
* @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`.
|
|
262
291
|
* @param {ScatterItemIdentifier} scatterItemIdentifier The scatter item identifier.
|
|
263
292
|
*/
|
|
264
293
|
onItemClick: _propTypes.default.func,
|
|
@@ -273,7 +302,7 @@ process.env.NODE_ENV !== "production" ? ScatterChart.propTypes = {
|
|
|
273
302
|
/**
|
|
274
303
|
* The callback fired when the tooltip item changes.
|
|
275
304
|
*
|
|
276
|
-
* @param {SeriesItemIdentifier<
|
|
305
|
+
* @param {SeriesItemIdentifier<SeriesType> | null} tooltipItem The newly highlighted item.
|
|
277
306
|
*/
|
|
278
307
|
onTooltipItemChange: _propTypes.default.func,
|
|
279
308
|
/**
|
|
@@ -312,6 +341,10 @@ process.env.NODE_ENV !== "production" ? ScatterChart.propTypes = {
|
|
|
312
341
|
slots: _propTypes.default.object,
|
|
313
342
|
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]),
|
|
314
343
|
theme: _propTypes.default.oneOf(['dark', 'light']),
|
|
344
|
+
/**
|
|
345
|
+
* The title of the chart.
|
|
346
|
+
* Used to provide an accessible label for the chart.
|
|
347
|
+
*/
|
|
315
348
|
title: _propTypes.default.string,
|
|
316
349
|
/**
|
|
317
350
|
* The controlled axis tooltip.
|
|
@@ -333,12 +366,6 @@ process.env.NODE_ENV !== "production" ? ScatterChart.propTypes = {
|
|
|
333
366
|
dataIndex: _propTypes.default.number.isRequired,
|
|
334
367
|
seriesId: _propTypes.default.string.isRequired
|
|
335
368
|
})]),
|
|
336
|
-
/**
|
|
337
|
-
* Defines the maximum distance between a scatter point and the pointer that triggers the interaction.
|
|
338
|
-
* If set to `'item'`, the radius is the `markerSize`.
|
|
339
|
-
* If `undefined`, the radius is assumed to be infinite.
|
|
340
|
-
*/
|
|
341
|
-
voronoiMaxRadius: _propTypes.default.oneOfType([_propTypes.default.oneOf(['item']), _propTypes.default.number]),
|
|
342
369
|
/**
|
|
343
370
|
* The width of the chart in px. If not defined, it takes the width of the parent element.
|
|
344
371
|
*/
|
|
@@ -353,6 +380,7 @@ process.env.NODE_ENV !== "production" ? ScatterChart.propTypes = {
|
|
|
353
380
|
barGapRatio: _propTypes.default.number,
|
|
354
381
|
categoryGapRatio: _propTypes.default.number,
|
|
355
382
|
classes: _propTypes.default.object,
|
|
383
|
+
className: _propTypes.default.string,
|
|
356
384
|
colorMap: _propTypes.default.oneOfType([_propTypes.default.shape({
|
|
357
385
|
colors: _propTypes.default.arrayOf(_propTypes.default.string).isRequired,
|
|
358
386
|
type: _propTypes.default.oneOf(['ordinal']).isRequired,
|
|
@@ -411,6 +439,7 @@ process.env.NODE_ENV !== "production" ? ScatterChart.propTypes = {
|
|
|
411
439
|
}), _propTypes.default.shape({
|
|
412
440
|
axis: _propTypes.default.oneOf(['x']),
|
|
413
441
|
classes: _propTypes.default.object,
|
|
442
|
+
className: _propTypes.default.string,
|
|
414
443
|
colorMap: _propTypes.default.oneOfType([_propTypes.default.shape({
|
|
415
444
|
colors: _propTypes.default.arrayOf(_propTypes.default.string).isRequired,
|
|
416
445
|
type: _propTypes.default.oneOf(['ordinal']).isRequired,
|
|
@@ -469,6 +498,7 @@ process.env.NODE_ENV !== "production" ? ScatterChart.propTypes = {
|
|
|
469
498
|
}), _propTypes.default.shape({
|
|
470
499
|
axis: _propTypes.default.oneOf(['x']),
|
|
471
500
|
classes: _propTypes.default.object,
|
|
501
|
+
className: _propTypes.default.string,
|
|
472
502
|
colorMap: _propTypes.default.oneOfType([_propTypes.default.shape({
|
|
473
503
|
color: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.string.isRequired), _propTypes.default.func]).isRequired,
|
|
474
504
|
max: _propTypes.default.oneOfType([_propTypes.default.instanceOf(Date), _propTypes.default.number]),
|
|
@@ -514,6 +544,7 @@ process.env.NODE_ENV !== "production" ? ScatterChart.propTypes = {
|
|
|
514
544
|
}), _propTypes.default.shape({
|
|
515
545
|
axis: _propTypes.default.oneOf(['x']),
|
|
516
546
|
classes: _propTypes.default.object,
|
|
547
|
+
className: _propTypes.default.string,
|
|
517
548
|
colorMap: _propTypes.default.oneOfType([_propTypes.default.shape({
|
|
518
549
|
color: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.string.isRequired), _propTypes.default.func]).isRequired,
|
|
519
550
|
max: _propTypes.default.oneOfType([_propTypes.default.instanceOf(Date), _propTypes.default.number]),
|
|
@@ -560,6 +591,7 @@ process.env.NODE_ENV !== "production" ? ScatterChart.propTypes = {
|
|
|
560
591
|
}), _propTypes.default.shape({
|
|
561
592
|
axis: _propTypes.default.oneOf(['x']),
|
|
562
593
|
classes: _propTypes.default.object,
|
|
594
|
+
className: _propTypes.default.string,
|
|
563
595
|
colorMap: _propTypes.default.oneOfType([_propTypes.default.shape({
|
|
564
596
|
color: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.string.isRequired), _propTypes.default.func]).isRequired,
|
|
565
597
|
max: _propTypes.default.oneOfType([_propTypes.default.instanceOf(Date), _propTypes.default.number]),
|
|
@@ -605,6 +637,7 @@ process.env.NODE_ENV !== "production" ? ScatterChart.propTypes = {
|
|
|
605
637
|
}), _propTypes.default.shape({
|
|
606
638
|
axis: _propTypes.default.oneOf(['x']),
|
|
607
639
|
classes: _propTypes.default.object,
|
|
640
|
+
className: _propTypes.default.string,
|
|
608
641
|
colorMap: _propTypes.default.oneOfType([_propTypes.default.shape({
|
|
609
642
|
color: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.string.isRequired), _propTypes.default.func]).isRequired,
|
|
610
643
|
max: _propTypes.default.oneOfType([_propTypes.default.instanceOf(Date), _propTypes.default.number]),
|
|
@@ -650,6 +683,7 @@ process.env.NODE_ENV !== "production" ? ScatterChart.propTypes = {
|
|
|
650
683
|
}), _propTypes.default.shape({
|
|
651
684
|
axis: _propTypes.default.oneOf(['x']),
|
|
652
685
|
classes: _propTypes.default.object,
|
|
686
|
+
className: _propTypes.default.string,
|
|
653
687
|
colorMap: _propTypes.default.oneOfType([_propTypes.default.shape({
|
|
654
688
|
color: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.string.isRequired), _propTypes.default.func]).isRequired,
|
|
655
689
|
max: _propTypes.default.oneOfType([_propTypes.default.instanceOf(Date), _propTypes.default.number]),
|
|
@@ -699,6 +733,7 @@ process.env.NODE_ENV !== "production" ? ScatterChart.propTypes = {
|
|
|
699
733
|
}), _propTypes.default.shape({
|
|
700
734
|
axis: _propTypes.default.oneOf(['x']),
|
|
701
735
|
classes: _propTypes.default.object,
|
|
736
|
+
className: _propTypes.default.string,
|
|
702
737
|
colorMap: _propTypes.default.oneOfType([_propTypes.default.shape({
|
|
703
738
|
color: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.string.isRequired), _propTypes.default.func]).isRequired,
|
|
704
739
|
max: _propTypes.default.oneOfType([_propTypes.default.instanceOf(Date), _propTypes.default.number]),
|
|
@@ -748,6 +783,7 @@ process.env.NODE_ENV !== "production" ? ScatterChart.propTypes = {
|
|
|
748
783
|
}), _propTypes.default.shape({
|
|
749
784
|
axis: _propTypes.default.oneOf(['x']),
|
|
750
785
|
classes: _propTypes.default.object,
|
|
786
|
+
className: _propTypes.default.string,
|
|
751
787
|
colorMap: _propTypes.default.oneOfType([_propTypes.default.shape({
|
|
752
788
|
color: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.string.isRequired), _propTypes.default.func]).isRequired,
|
|
753
789
|
max: _propTypes.default.oneOfType([_propTypes.default.instanceOf(Date), _propTypes.default.number]),
|
|
@@ -801,6 +837,7 @@ process.env.NODE_ENV !== "production" ? ScatterChart.propTypes = {
|
|
|
801
837
|
barGapRatio: _propTypes.default.number,
|
|
802
838
|
categoryGapRatio: _propTypes.default.number,
|
|
803
839
|
classes: _propTypes.default.object,
|
|
840
|
+
className: _propTypes.default.string,
|
|
804
841
|
colorMap: _propTypes.default.oneOfType([_propTypes.default.shape({
|
|
805
842
|
colors: _propTypes.default.arrayOf(_propTypes.default.string).isRequired,
|
|
806
843
|
type: _propTypes.default.oneOf(['ordinal']).isRequired,
|
|
@@ -858,6 +895,7 @@ process.env.NODE_ENV !== "production" ? ScatterChart.propTypes = {
|
|
|
858
895
|
}), _propTypes.default.shape({
|
|
859
896
|
axis: _propTypes.default.oneOf(['y']),
|
|
860
897
|
classes: _propTypes.default.object,
|
|
898
|
+
className: _propTypes.default.string,
|
|
861
899
|
colorMap: _propTypes.default.oneOfType([_propTypes.default.shape({
|
|
862
900
|
colors: _propTypes.default.arrayOf(_propTypes.default.string).isRequired,
|
|
863
901
|
type: _propTypes.default.oneOf(['ordinal']).isRequired,
|
|
@@ -915,6 +953,7 @@ process.env.NODE_ENV !== "production" ? ScatterChart.propTypes = {
|
|
|
915
953
|
}), _propTypes.default.shape({
|
|
916
954
|
axis: _propTypes.default.oneOf(['y']),
|
|
917
955
|
classes: _propTypes.default.object,
|
|
956
|
+
className: _propTypes.default.string,
|
|
918
957
|
colorMap: _propTypes.default.oneOfType([_propTypes.default.shape({
|
|
919
958
|
color: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.string.isRequired), _propTypes.default.func]).isRequired,
|
|
920
959
|
max: _propTypes.default.oneOfType([_propTypes.default.instanceOf(Date), _propTypes.default.number]),
|
|
@@ -959,6 +998,7 @@ process.env.NODE_ENV !== "production" ? ScatterChart.propTypes = {
|
|
|
959
998
|
}), _propTypes.default.shape({
|
|
960
999
|
axis: _propTypes.default.oneOf(['y']),
|
|
961
1000
|
classes: _propTypes.default.object,
|
|
1001
|
+
className: _propTypes.default.string,
|
|
962
1002
|
colorMap: _propTypes.default.oneOfType([_propTypes.default.shape({
|
|
963
1003
|
color: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.string.isRequired), _propTypes.default.func]).isRequired,
|
|
964
1004
|
max: _propTypes.default.oneOfType([_propTypes.default.instanceOf(Date), _propTypes.default.number]),
|
|
@@ -1004,6 +1044,7 @@ process.env.NODE_ENV !== "production" ? ScatterChart.propTypes = {
|
|
|
1004
1044
|
}), _propTypes.default.shape({
|
|
1005
1045
|
axis: _propTypes.default.oneOf(['y']),
|
|
1006
1046
|
classes: _propTypes.default.object,
|
|
1047
|
+
className: _propTypes.default.string,
|
|
1007
1048
|
colorMap: _propTypes.default.oneOfType([_propTypes.default.shape({
|
|
1008
1049
|
color: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.string.isRequired), _propTypes.default.func]).isRequired,
|
|
1009
1050
|
max: _propTypes.default.oneOfType([_propTypes.default.instanceOf(Date), _propTypes.default.number]),
|
|
@@ -1048,6 +1089,7 @@ process.env.NODE_ENV !== "production" ? ScatterChart.propTypes = {
|
|
|
1048
1089
|
}), _propTypes.default.shape({
|
|
1049
1090
|
axis: _propTypes.default.oneOf(['y']),
|
|
1050
1091
|
classes: _propTypes.default.object,
|
|
1092
|
+
className: _propTypes.default.string,
|
|
1051
1093
|
colorMap: _propTypes.default.oneOfType([_propTypes.default.shape({
|
|
1052
1094
|
color: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.string.isRequired), _propTypes.default.func]).isRequired,
|
|
1053
1095
|
max: _propTypes.default.oneOfType([_propTypes.default.instanceOf(Date), _propTypes.default.number]),
|
|
@@ -1092,6 +1134,7 @@ process.env.NODE_ENV !== "production" ? ScatterChart.propTypes = {
|
|
|
1092
1134
|
}), _propTypes.default.shape({
|
|
1093
1135
|
axis: _propTypes.default.oneOf(['y']),
|
|
1094
1136
|
classes: _propTypes.default.object,
|
|
1137
|
+
className: _propTypes.default.string,
|
|
1095
1138
|
colorMap: _propTypes.default.oneOfType([_propTypes.default.shape({
|
|
1096
1139
|
color: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.string.isRequired), _propTypes.default.func]).isRequired,
|
|
1097
1140
|
max: _propTypes.default.oneOfType([_propTypes.default.instanceOf(Date), _propTypes.default.number]),
|
|
@@ -1140,6 +1183,7 @@ process.env.NODE_ENV !== "production" ? ScatterChart.propTypes = {
|
|
|
1140
1183
|
}), _propTypes.default.shape({
|
|
1141
1184
|
axis: _propTypes.default.oneOf(['y']),
|
|
1142
1185
|
classes: _propTypes.default.object,
|
|
1186
|
+
className: _propTypes.default.string,
|
|
1143
1187
|
colorMap: _propTypes.default.oneOfType([_propTypes.default.shape({
|
|
1144
1188
|
color: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.string.isRequired), _propTypes.default.func]).isRequired,
|
|
1145
1189
|
max: _propTypes.default.oneOfType([_propTypes.default.instanceOf(Date), _propTypes.default.number]),
|
|
@@ -1188,6 +1232,7 @@ process.env.NODE_ENV !== "production" ? ScatterChart.propTypes = {
|
|
|
1188
1232
|
}), _propTypes.default.shape({
|
|
1189
1233
|
axis: _propTypes.default.oneOf(['y']),
|
|
1190
1234
|
classes: _propTypes.default.object,
|
|
1235
|
+
className: _propTypes.default.string,
|
|
1191
1236
|
colorMap: _propTypes.default.oneOfType([_propTypes.default.shape({
|
|
1192
1237
|
color: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.string.isRequired), _propTypes.default.func]).isRequired,
|
|
1193
1238
|
max: _propTypes.default.oneOfType([_propTypes.default.instanceOf(Date), _propTypes.default.number]),
|
|
@@ -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,12 +117,31 @@ 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,
|
|
131
|
+
/**
|
|
132
|
+
* If `true`, disables keyboard navigation for the chart.
|
|
133
|
+
*/
|
|
134
|
+
disableKeyboardNavigation: PropTypes.bool,
|
|
116
135
|
/**
|
|
117
136
|
* If true, the interaction will not use the Voronoi cell and fall back to hover events.
|
|
118
137
|
* @default false
|
|
138
|
+
* @deprecated Use `disableHitArea` instead.
|
|
119
139
|
*/
|
|
120
140
|
disableVoronoi: PropTypes.bool,
|
|
121
|
-
|
|
141
|
+
/**
|
|
142
|
+
* Options to enable features planned for the next major.
|
|
143
|
+
*/
|
|
144
|
+
experimentalFeatures: PropTypes.object,
|
|
122
145
|
/**
|
|
123
146
|
* Option to display a cartesian grid in the background.
|
|
124
147
|
*/
|
|
@@ -175,6 +198,12 @@ process.env.NODE_ENV !== "production" ? ScatterChart.propTypes = {
|
|
|
175
198
|
dataIndex: PropTypes.number,
|
|
176
199
|
seriesId: PropTypes.string.isRequired
|
|
177
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]),
|
|
178
207
|
/**
|
|
179
208
|
* This prop is used to help implement the accessibility logic.
|
|
180
209
|
* If you don't provide this prop. It falls back to a randomly generated id.
|
|
@@ -251,7 +280,7 @@ process.env.NODE_ENV !== "production" ? ScatterChart.propTypes = {
|
|
|
251
280
|
onHighlightChange: PropTypes.func,
|
|
252
281
|
/**
|
|
253
282
|
* Callback fired when clicking on a scatter item.
|
|
254
|
-
* @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`.
|
|
255
284
|
* @param {ScatterItemIdentifier} scatterItemIdentifier The scatter item identifier.
|
|
256
285
|
*/
|
|
257
286
|
onItemClick: PropTypes.func,
|
|
@@ -266,7 +295,7 @@ process.env.NODE_ENV !== "production" ? ScatterChart.propTypes = {
|
|
|
266
295
|
/**
|
|
267
296
|
* The callback fired when the tooltip item changes.
|
|
268
297
|
*
|
|
269
|
-
* @param {SeriesItemIdentifier<
|
|
298
|
+
* @param {SeriesItemIdentifier<SeriesType> | null} tooltipItem The newly highlighted item.
|
|
270
299
|
*/
|
|
271
300
|
onTooltipItemChange: PropTypes.func,
|
|
272
301
|
/**
|
|
@@ -305,6 +334,10 @@ process.env.NODE_ENV !== "production" ? ScatterChart.propTypes = {
|
|
|
305
334
|
slots: PropTypes.object,
|
|
306
335
|
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
|
307
336
|
theme: PropTypes.oneOf(['dark', 'light']),
|
|
337
|
+
/**
|
|
338
|
+
* The title of the chart.
|
|
339
|
+
* Used to provide an accessible label for the chart.
|
|
340
|
+
*/
|
|
308
341
|
title: PropTypes.string,
|
|
309
342
|
/**
|
|
310
343
|
* The controlled axis tooltip.
|
|
@@ -326,12 +359,6 @@ process.env.NODE_ENV !== "production" ? ScatterChart.propTypes = {
|
|
|
326
359
|
dataIndex: PropTypes.number.isRequired,
|
|
327
360
|
seriesId: PropTypes.string.isRequired
|
|
328
361
|
})]),
|
|
329
|
-
/**
|
|
330
|
-
* Defines the maximum distance between a scatter point and the pointer that triggers the interaction.
|
|
331
|
-
* If set to `'item'`, the radius is the `markerSize`.
|
|
332
|
-
* If `undefined`, the radius is assumed to be infinite.
|
|
333
|
-
*/
|
|
334
|
-
voronoiMaxRadius: PropTypes.oneOfType([PropTypes.oneOf(['item']), PropTypes.number]),
|
|
335
362
|
/**
|
|
336
363
|
* The width of the chart in px. If not defined, it takes the width of the parent element.
|
|
337
364
|
*/
|
|
@@ -346,6 +373,7 @@ process.env.NODE_ENV !== "production" ? ScatterChart.propTypes = {
|
|
|
346
373
|
barGapRatio: PropTypes.number,
|
|
347
374
|
categoryGapRatio: PropTypes.number,
|
|
348
375
|
classes: PropTypes.object,
|
|
376
|
+
className: PropTypes.string,
|
|
349
377
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
350
378
|
colors: PropTypes.arrayOf(PropTypes.string).isRequired,
|
|
351
379
|
type: PropTypes.oneOf(['ordinal']).isRequired,
|
|
@@ -404,6 +432,7 @@ process.env.NODE_ENV !== "production" ? ScatterChart.propTypes = {
|
|
|
404
432
|
}), PropTypes.shape({
|
|
405
433
|
axis: PropTypes.oneOf(['x']),
|
|
406
434
|
classes: PropTypes.object,
|
|
435
|
+
className: PropTypes.string,
|
|
407
436
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
408
437
|
colors: PropTypes.arrayOf(PropTypes.string).isRequired,
|
|
409
438
|
type: PropTypes.oneOf(['ordinal']).isRequired,
|
|
@@ -462,6 +491,7 @@ process.env.NODE_ENV !== "production" ? ScatterChart.propTypes = {
|
|
|
462
491
|
}), PropTypes.shape({
|
|
463
492
|
axis: PropTypes.oneOf(['x']),
|
|
464
493
|
classes: PropTypes.object,
|
|
494
|
+
className: PropTypes.string,
|
|
465
495
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
466
496
|
color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
|
|
467
497
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
@@ -507,6 +537,7 @@ process.env.NODE_ENV !== "production" ? ScatterChart.propTypes = {
|
|
|
507
537
|
}), PropTypes.shape({
|
|
508
538
|
axis: PropTypes.oneOf(['x']),
|
|
509
539
|
classes: PropTypes.object,
|
|
540
|
+
className: PropTypes.string,
|
|
510
541
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
511
542
|
color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
|
|
512
543
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
@@ -553,6 +584,7 @@ process.env.NODE_ENV !== "production" ? ScatterChart.propTypes = {
|
|
|
553
584
|
}), PropTypes.shape({
|
|
554
585
|
axis: PropTypes.oneOf(['x']),
|
|
555
586
|
classes: PropTypes.object,
|
|
587
|
+
className: PropTypes.string,
|
|
556
588
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
557
589
|
color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
|
|
558
590
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
@@ -598,6 +630,7 @@ process.env.NODE_ENV !== "production" ? ScatterChart.propTypes = {
|
|
|
598
630
|
}), PropTypes.shape({
|
|
599
631
|
axis: PropTypes.oneOf(['x']),
|
|
600
632
|
classes: PropTypes.object,
|
|
633
|
+
className: PropTypes.string,
|
|
601
634
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
602
635
|
color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
|
|
603
636
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
@@ -643,6 +676,7 @@ process.env.NODE_ENV !== "production" ? ScatterChart.propTypes = {
|
|
|
643
676
|
}), PropTypes.shape({
|
|
644
677
|
axis: PropTypes.oneOf(['x']),
|
|
645
678
|
classes: PropTypes.object,
|
|
679
|
+
className: PropTypes.string,
|
|
646
680
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
647
681
|
color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
|
|
648
682
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
@@ -692,6 +726,7 @@ process.env.NODE_ENV !== "production" ? ScatterChart.propTypes = {
|
|
|
692
726
|
}), PropTypes.shape({
|
|
693
727
|
axis: PropTypes.oneOf(['x']),
|
|
694
728
|
classes: PropTypes.object,
|
|
729
|
+
className: PropTypes.string,
|
|
695
730
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
696
731
|
color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
|
|
697
732
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
@@ -741,6 +776,7 @@ process.env.NODE_ENV !== "production" ? ScatterChart.propTypes = {
|
|
|
741
776
|
}), PropTypes.shape({
|
|
742
777
|
axis: PropTypes.oneOf(['x']),
|
|
743
778
|
classes: PropTypes.object,
|
|
779
|
+
className: PropTypes.string,
|
|
744
780
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
745
781
|
color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
|
|
746
782
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
@@ -794,6 +830,7 @@ process.env.NODE_ENV !== "production" ? ScatterChart.propTypes = {
|
|
|
794
830
|
barGapRatio: PropTypes.number,
|
|
795
831
|
categoryGapRatio: PropTypes.number,
|
|
796
832
|
classes: PropTypes.object,
|
|
833
|
+
className: PropTypes.string,
|
|
797
834
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
798
835
|
colors: PropTypes.arrayOf(PropTypes.string).isRequired,
|
|
799
836
|
type: PropTypes.oneOf(['ordinal']).isRequired,
|
|
@@ -851,6 +888,7 @@ process.env.NODE_ENV !== "production" ? ScatterChart.propTypes = {
|
|
|
851
888
|
}), PropTypes.shape({
|
|
852
889
|
axis: PropTypes.oneOf(['y']),
|
|
853
890
|
classes: PropTypes.object,
|
|
891
|
+
className: PropTypes.string,
|
|
854
892
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
855
893
|
colors: PropTypes.arrayOf(PropTypes.string).isRequired,
|
|
856
894
|
type: PropTypes.oneOf(['ordinal']).isRequired,
|
|
@@ -908,6 +946,7 @@ process.env.NODE_ENV !== "production" ? ScatterChart.propTypes = {
|
|
|
908
946
|
}), PropTypes.shape({
|
|
909
947
|
axis: PropTypes.oneOf(['y']),
|
|
910
948
|
classes: PropTypes.object,
|
|
949
|
+
className: PropTypes.string,
|
|
911
950
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
912
951
|
color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
|
|
913
952
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
@@ -952,6 +991,7 @@ process.env.NODE_ENV !== "production" ? ScatterChart.propTypes = {
|
|
|
952
991
|
}), PropTypes.shape({
|
|
953
992
|
axis: PropTypes.oneOf(['y']),
|
|
954
993
|
classes: PropTypes.object,
|
|
994
|
+
className: PropTypes.string,
|
|
955
995
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
956
996
|
color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
|
|
957
997
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
@@ -997,6 +1037,7 @@ process.env.NODE_ENV !== "production" ? ScatterChart.propTypes = {
|
|
|
997
1037
|
}), PropTypes.shape({
|
|
998
1038
|
axis: PropTypes.oneOf(['y']),
|
|
999
1039
|
classes: PropTypes.object,
|
|
1040
|
+
className: PropTypes.string,
|
|
1000
1041
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
1001
1042
|
color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
|
|
1002
1043
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
@@ -1041,6 +1082,7 @@ process.env.NODE_ENV !== "production" ? ScatterChart.propTypes = {
|
|
|
1041
1082
|
}), PropTypes.shape({
|
|
1042
1083
|
axis: PropTypes.oneOf(['y']),
|
|
1043
1084
|
classes: PropTypes.object,
|
|
1085
|
+
className: PropTypes.string,
|
|
1044
1086
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
1045
1087
|
color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
|
|
1046
1088
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
@@ -1085,6 +1127,7 @@ process.env.NODE_ENV !== "production" ? ScatterChart.propTypes = {
|
|
|
1085
1127
|
}), PropTypes.shape({
|
|
1086
1128
|
axis: PropTypes.oneOf(['y']),
|
|
1087
1129
|
classes: PropTypes.object,
|
|
1130
|
+
className: PropTypes.string,
|
|
1088
1131
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
1089
1132
|
color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
|
|
1090
1133
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
@@ -1133,6 +1176,7 @@ process.env.NODE_ENV !== "production" ? ScatterChart.propTypes = {
|
|
|
1133
1176
|
}), PropTypes.shape({
|
|
1134
1177
|
axis: PropTypes.oneOf(['y']),
|
|
1135
1178
|
classes: PropTypes.object,
|
|
1179
|
+
className: PropTypes.string,
|
|
1136
1180
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
1137
1181
|
color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
|
|
1138
1182
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
@@ -1181,6 +1225,7 @@ process.env.NODE_ENV !== "production" ? ScatterChart.propTypes = {
|
|
|
1181
1225
|
}), PropTypes.shape({
|
|
1182
1226
|
axis: PropTypes.oneOf(['y']),
|
|
1183
1227
|
classes: PropTypes.object,
|
|
1228
|
+
className: PropTypes.string,
|
|
1184
1229
|
colorMap: PropTypes.oneOfType([PropTypes.shape({
|
|
1185
1230
|
color: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.string.isRequired), PropTypes.func]).isRequired,
|
|
1186
1231
|
max: PropTypes.oneOfType([PropTypes.instanceOf(Date), PropTypes.number]),
|
|
@@ -7,7 +7,8 @@ export interface ScatterPlotSlotProps extends ScatterSlotProps {
|
|
|
7
7
|
scatter?: Partial<ScatterProps>;
|
|
8
8
|
}
|
|
9
9
|
export type RendererType = 'svg-single' | 'svg-batch';
|
|
10
|
-
export interface ScatterPlotProps extends Pick<ScatterProps, 'onItemClick'> {
|
|
10
|
+
export interface ScatterPlotProps extends Pick<ScatterProps, 'onItemClick' | 'classes'> {
|
|
11
|
+
className?: string;
|
|
11
12
|
/**
|
|
12
13
|
* Overridable component slots.
|
|
13
14
|
* @default {}
|
|
@@ -7,7 +7,8 @@ export interface ScatterPlotSlotProps extends ScatterSlotProps {
|
|
|
7
7
|
scatter?: Partial<ScatterProps>;
|
|
8
8
|
}
|
|
9
9
|
export type RendererType = 'svg-single' | 'svg-batch';
|
|
10
|
-
export interface ScatterPlotProps extends Pick<ScatterProps, 'onItemClick'> {
|
|
10
|
+
export interface ScatterPlotProps extends Pick<ScatterProps, 'onItemClick' | 'classes'> {
|
|
11
|
+
className?: string;
|
|
11
12
|
/**
|
|
12
13
|
* Overridable component slots.
|
|
13
14
|
* @default {}
|
|
@@ -10,13 +10,21 @@ exports.ScatterPlot = ScatterPlot;
|
|
|
10
10
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
11
11
|
var React = _interopRequireWildcard(require("react"));
|
|
12
12
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
13
|
+
var _clsx = _interopRequireDefault(require("clsx"));
|
|
14
|
+
var _styles = require("@mui/material/styles");
|
|
13
15
|
var _Scatter = require("./Scatter");
|
|
14
16
|
var _useScatterSeries = require("../hooks/useScatterSeries");
|
|
15
17
|
var _hooks = require("../hooks");
|
|
16
18
|
var _useZAxis = require("../hooks/useZAxis");
|
|
17
19
|
var _seriesConfig = require("./seriesConfig");
|
|
18
20
|
var _BatchScatter = require("./BatchScatter");
|
|
21
|
+
var _scatterClasses = require("./scatterClasses");
|
|
19
22
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
23
|
+
const ScatterPlotRoot = (0, _styles.styled)('g', {
|
|
24
|
+
name: 'MuiScatterPlot',
|
|
25
|
+
slot: 'Root'
|
|
26
|
+
})();
|
|
27
|
+
|
|
20
28
|
/**
|
|
21
29
|
* Demos:
|
|
22
30
|
*
|
|
@@ -32,7 +40,9 @@ function ScatterPlot(props) {
|
|
|
32
40
|
slots,
|
|
33
41
|
slotProps,
|
|
34
42
|
onItemClick,
|
|
35
|
-
renderer
|
|
43
|
+
renderer,
|
|
44
|
+
className,
|
|
45
|
+
classes: inClasses
|
|
36
46
|
} = props;
|
|
37
47
|
const seriesData = (0, _useScatterSeries.useScatterSeriesContext)();
|
|
38
48
|
const {
|
|
@@ -47,6 +57,9 @@ function ScatterPlot(props) {
|
|
|
47
57
|
zAxis,
|
|
48
58
|
zAxisIds
|
|
49
59
|
} = (0, _useZAxis.useZAxes)();
|
|
60
|
+
const classes = (0, _scatterClasses.useUtilityClasses)({
|
|
61
|
+
classes: inClasses
|
|
62
|
+
});
|
|
50
63
|
if (seriesData === undefined) {
|
|
51
64
|
return null;
|
|
52
65
|
}
|
|
@@ -59,7 +72,8 @@ function ScatterPlot(props) {
|
|
|
59
72
|
const defaultZAxisId = zAxisIds[0];
|
|
60
73
|
const DefaultScatterItems = renderer === 'svg-batch' ? _BatchScatter.BatchScatter : _Scatter.Scatter;
|
|
61
74
|
const ScatterItems = slots?.scatter ?? DefaultScatterItems;
|
|
62
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
75
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(ScatterPlotRoot, {
|
|
76
|
+
className: (0, _clsx.default)(classes.root, className),
|
|
63
77
|
children: seriesOrder.map(seriesId => {
|
|
64
78
|
const {
|
|
65
79
|
id,
|
|
@@ -3,13 +3,21 @@
|
|
|
3
3
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
|
+
import clsx from 'clsx';
|
|
7
|
+
import { styled } from '@mui/material/styles';
|
|
6
8
|
import { Scatter } from "./Scatter.mjs";
|
|
7
9
|
import { useScatterSeriesContext } from "../hooks/useScatterSeries.mjs";
|
|
8
10
|
import { useXAxes, useYAxes } from "../hooks/index.mjs";
|
|
9
11
|
import { useZAxes } from "../hooks/useZAxis.mjs";
|
|
10
12
|
import { scatterSeriesConfig } from "./seriesConfig/index.mjs";
|
|
11
13
|
import { BatchScatter } from "./BatchScatter.mjs";
|
|
14
|
+
import { useUtilityClasses } from "./scatterClasses.mjs";
|
|
12
15
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
16
|
+
const ScatterPlotRoot = styled('g', {
|
|
17
|
+
name: 'MuiScatterPlot',
|
|
18
|
+
slot: 'Root'
|
|
19
|
+
})();
|
|
20
|
+
|
|
13
21
|
/**
|
|
14
22
|
* Demos:
|
|
15
23
|
*
|
|
@@ -25,7 +33,9 @@ function ScatterPlot(props) {
|
|
|
25
33
|
slots,
|
|
26
34
|
slotProps,
|
|
27
35
|
onItemClick,
|
|
28
|
-
renderer
|
|
36
|
+
renderer,
|
|
37
|
+
className,
|
|
38
|
+
classes: inClasses
|
|
29
39
|
} = props;
|
|
30
40
|
const seriesData = useScatterSeriesContext();
|
|
31
41
|
const {
|
|
@@ -40,6 +50,9 @@ function ScatterPlot(props) {
|
|
|
40
50
|
zAxis,
|
|
41
51
|
zAxisIds
|
|
42
52
|
} = useZAxes();
|
|
53
|
+
const classes = useUtilityClasses({
|
|
54
|
+
classes: inClasses
|
|
55
|
+
});
|
|
43
56
|
if (seriesData === undefined) {
|
|
44
57
|
return null;
|
|
45
58
|
}
|
|
@@ -52,7 +65,8 @@ function ScatterPlot(props) {
|
|
|
52
65
|
const defaultZAxisId = zAxisIds[0];
|
|
53
66
|
const DefaultScatterItems = renderer === 'svg-batch' ? BatchScatter : Scatter;
|
|
54
67
|
const ScatterItems = slots?.scatter ?? DefaultScatterItems;
|
|
55
|
-
return /*#__PURE__*/_jsx(
|
|
68
|
+
return /*#__PURE__*/_jsx(ScatterPlotRoot, {
|
|
69
|
+
className: clsx(classes.root, className),
|
|
56
70
|
children: seriesOrder.map(seriesId => {
|
|
57
71
|
const {
|
|
58
72
|
id,
|