@mui/x-charts 8.20.0 → 8.22.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/AnimatedBarElement.d.ts +2 -2
- package/BarChart/BarChart.d.ts +15 -15
- package/BarChart/BarChart.js +40 -1
- package/BarChart/BarChart.plugins.d.ts +9 -8
- package/BarChart/BarChart.plugins.js +2 -1
- package/BarChart/BarElement.d.ts +3 -3
- package/BarChart/BarElement.js +1 -2
- package/BarChart/BarLabel/BarLabel.d.ts +1 -1
- package/BarChart/BarLabel/BarLabel.js +12 -8
- package/BarChart/BarLabel/BarLabel.types.d.ts +5 -4
- package/BarChart/BarLabel/BarLabelItem.d.ts +8 -7
- package/BarChart/BarLabel/BarLabelPlot.d.ts +26 -7
- package/BarChart/BarLabel/BarLabelPlot.js +10 -9
- package/BarChart/BarLabel/getBarLabel.d.ts +7 -6
- package/BarChart/BarLabel/getBarLabel.js +3 -4
- package/BarChart/BarPlot.d.ts +4 -4
- package/BarChart/BarPlot.js +8 -4
- package/BarChart/FocusedBar.d.ts +2 -0
- package/BarChart/FocusedBar.js +68 -0
- package/BarChart/barElementClasses.d.ts +1 -1
- package/BarChart/checkBarChartScaleErrors.d.ts +7 -0
- package/BarChart/{checkScaleErrors.js → checkBarChartScaleErrors.js} +6 -7
- package/BarChart/index.d.ts +1 -0
- package/BarChart/index.js +12 -0
- package/BarChart/seriesConfig/bar/extremums.d.ts +1 -1
- package/BarChart/seriesConfig/bar/getColor.d.ts +1 -1
- package/BarChart/seriesConfig/bar/getSeriesWithDefaultValues.d.ts +5 -3
- package/BarChart/seriesConfig/bar/getSeriesWithDefaultValues.js +3 -4
- package/BarChart/seriesConfig/bar/legend.d.ts +1 -1
- package/BarChart/seriesConfig/bar/seriesProcessor.d.ts +1 -1
- package/BarChart/seriesConfig/bar/tooltipPosition.js +2 -2
- package/BarChart/seriesConfig/index.d.ts +1 -1
- package/BarChart/seriesConfig/index.js +2 -2
- package/BarChart/types.d.ts +6 -3
- package/BarChart/useBarChartProps.d.ts +9 -9
- package/BarChart/useBarPlotData.d.ts +5 -20
- package/BarChart/useBarPlotData.js +17 -89
- package/CHANGELOG.md +248 -0
- package/ChartContainer/ChartContainer.d.ts +5 -5
- package/ChartContainer/ChartContainer.js +58 -0
- package/ChartContainer/useChartContainerProps.d.ts +6 -6
- package/ChartDataProvider/ChartDataProvider.d.ts +6 -6
- package/ChartDataProvider/useChartDataProviderProps.d.ts +5 -5
- package/ChartsAxis/ChartsAxis.d.ts +1 -1
- package/ChartsAxisHighlight/ChartsAxisHighlight.d.ts +1 -1
- package/ChartsAxisHighlight/ChartsAxisHighlightPath.d.ts +1 -1
- package/ChartsAxisHighlight/ChartsXAxisHighlight.d.ts +2 -2
- package/ChartsAxisHighlight/ChartsYAxisHighlight.d.ts +2 -2
- package/ChartsGrid/ChartsGrid.d.ts +1 -1
- package/ChartsGrid/ChartsHorizontalGrid.d.ts +2 -2
- package/ChartsGrid/ChartsHorizontalGrid.js +5 -2
- package/ChartsGrid/ChartsVerticalGrid.d.ts +2 -2
- package/ChartsGrid/ChartsVerticalGrid.js +5 -2
- package/ChartsLabel/ChartsLabel.d.ts +2 -2
- package/ChartsLabel/ChartsLabelGradient.d.ts +2 -2
- package/ChartsLabel/ChartsLabelMark.d.ts +2 -2
- package/ChartsLegend/ChartsLegend.d.ts +2 -2
- package/ChartsLegend/ContinuousColorLegend.d.ts +6 -6
- package/ChartsLegend/PiecewiseColorLegend.d.ts +8 -8
- package/ChartsLegend/chartsLegend.types.d.ts +3 -3
- package/ChartsLegend/colorLegend.types.d.ts +1 -1
- package/ChartsLegend/continuousColorLegendClasses.d.ts +1 -1
- package/ChartsLegend/legend.types.d.ts +1 -1
- package/ChartsLegend/legendContext.types.d.ts +3 -3
- package/ChartsLegend/onClickContextBuilder.d.ts +1 -1
- package/ChartsLegend/piecewiseColorDefaultLabelFormatter.d.ts +1 -1
- package/ChartsLegend/useAxis.d.ts +3 -3
- package/ChartsOverlay/ChartsOverlay.d.ts +2 -2
- package/ChartsReferenceLine/ChartsReferenceLine.d.ts +3 -3
- package/ChartsReferenceLine/ChartsXReferenceLine.d.ts +2 -2
- package/ChartsReferenceLine/ChartsYReferenceLine.d.ts +2 -2
- package/ChartsReferenceLine/common.d.ts +3 -3
- package/ChartsSurface/ChartsSurface.d.ts +1 -1
- package/ChartsSurface/ChartsSurface.js +1 -13
- package/ChartsText/ChartsText.d.ts +1 -1
- package/ChartsText/defaultTextPlacement.d.ts +1 -1
- package/ChartsTooltip/ChartTooltip.types.d.ts +1 -1
- package/ChartsTooltip/ChartsAxisTooltipContent.d.ts +2 -2
- package/ChartsTooltip/ChartsItemTooltipContent.d.ts +2 -2
- package/ChartsTooltip/ChartsTooltip.d.ts +2 -2
- package/ChartsTooltip/ChartsTooltipContainer.d.ts +3 -3
- package/ChartsTooltip/ChartsTooltipContainer.js +4 -2
- package/ChartsTooltip/ChartsTooltipTable.d.ts +1 -1
- package/ChartsTooltip/useAxesTooltip.d.ts +1 -1
- package/ChartsTooltip/useAxisTooltip.d.ts +4 -4
- package/ChartsTooltip/useItemTooltip.d.ts +2 -2
- package/ChartsTooltip/useItemTooltip.js +2 -2
- package/ChartsWrapper/ChartsWrapper.d.ts +3 -3
- package/ChartsXAxis/ChartsGroupedXAxisTicks.d.ts +1 -1
- package/ChartsXAxis/ChartsSingleXAxisTicks.d.ts +3 -1
- package/ChartsXAxis/ChartsSingleXAxisTicks.js +6 -2
- package/ChartsXAxis/ChartsXAxis.d.ts +1 -1
- package/ChartsXAxis/ChartsXAxisImpl.d.ts +2 -2
- package/ChartsXAxis/ChartsXAxisImpl.js +9 -3
- package/ChartsXAxis/getVisibleLabels.d.ts +2 -2
- package/ChartsXAxis/shortenLabels.d.ts +3 -3
- package/ChartsXAxis/useAxisTicksProps.d.ts +218 -119
- package/ChartsXAxis/useAxisTicksProps.js +2 -0
- package/ChartsXAxis/utilities.d.ts +1 -1
- package/ChartsYAxis/ChartsGroupedYAxisTicks.d.ts +1 -1
- package/ChartsYAxis/ChartsSingleYAxisTicks.d.ts +3 -1
- package/ChartsYAxis/ChartsSingleYAxisTicks.js +6 -2
- package/ChartsYAxis/ChartsYAxis.d.ts +1 -1
- package/ChartsYAxis/ChartsYAxisImpl.d.ts +2 -2
- package/ChartsYAxis/ChartsYAxisImpl.js +9 -3
- package/ChartsYAxis/shortenLabels.d.ts +3 -3
- package/ChartsYAxis/useAxisTicksProps.d.ts +218 -119
- package/ChartsYAxis/useAxisTicksProps.js +2 -0
- package/ChartsYAxis/utilities.d.ts +1 -1
- package/Gauge/Gauge.d.ts +3 -3
- package/Gauge/GaugeContainer.d.ts +4 -4
- package/Gauge/GaugeValueText.d.ts +1 -1
- package/LineChart/AppearingMask.d.ts +1 -1
- package/LineChart/AreaElement.d.ts +3 -3
- package/LineChart/AreaPlot.d.ts +2 -2
- package/LineChart/AreaPlot.js +4 -1
- package/LineChart/CircleMarkElement.d.ts +1 -1
- package/LineChart/CircleMarkElement.js +1 -1
- package/LineChart/FocusedLineMark.d.ts +1 -0
- package/LineChart/{FocusedMark.js → FocusedLineMark.js} +2 -2
- package/LineChart/LineChart.d.ts +17 -17
- package/LineChart/LineChart.js +40 -2
- package/LineChart/LineChart.plugins.d.ts +9 -8
- package/LineChart/LineChart.plugins.js +2 -1
- package/LineChart/LineElement.d.ts +3 -3
- package/LineChart/LineHighlightElement.d.ts +1 -1
- package/LineChart/LineHighlightPlot.d.ts +2 -2
- package/LineChart/LinePlot.d.ts +2 -2
- package/LineChart/LinePlot.js +4 -1
- package/LineChart/MarkElement.d.ts +1 -1
- package/LineChart/MarkElement.js +1 -1
- package/LineChart/MarkPlot.d.ts +3 -3
- package/LineChart/MarkPlot.js +44 -114
- package/LineChart/index.d.ts +1 -0
- package/LineChart/index.js +12 -0
- package/LineChart/markElementClasses.d.ts +1 -1
- package/LineChart/seriesConfig/extremums.d.ts +1 -1
- package/LineChart/seriesConfig/getColor.d.ts +1 -1
- package/LineChart/seriesConfig/index.d.ts +1 -1
- package/LineChart/seriesConfig/legend.d.ts +1 -1
- package/LineChart/seriesConfig/seriesProcessor.d.ts +1 -1
- package/LineChart/seriesConfig/seriesProcessor.js +3 -3
- package/LineChart/useAreaPlotData.d.ts +3 -3
- package/LineChart/useLineChartProps.d.ts +12 -12
- package/LineChart/useLinePlotData.d.ts +3 -3
- package/LineChart/useMarkPlotData.d.ts +18 -0
- package/LineChart/useMarkPlotData.js +105 -0
- package/PieChart/PieArc.d.ts +1 -1
- package/PieChart/PieArcLabel.d.ts +1 -1
- package/PieChart/PieArcLabel.js +4 -1
- package/PieChart/PieArcLabelPlot.d.ts +2 -2
- package/PieChart/PieArcPlot.d.ts +2 -2
- package/PieChart/PieChart.d.ts +11 -11
- package/PieChart/PieChart.plugins.d.ts +6 -5
- package/PieChart/PieChart.plugins.js +2 -1
- package/PieChart/PiePlot.d.ts +2 -2
- package/PieChart/PiePlot.js +9 -53
- package/PieChart/dataTransform/useTransformData.d.ts +1 -1
- package/PieChart/getPieCoordinates.d.ts +2 -2
- package/PieChart/seriesConfig/getColor.d.ts +1 -1
- package/PieChart/seriesConfig/index.d.ts +1 -1
- package/PieChart/seriesConfig/index.js +2 -0
- package/PieChart/seriesConfig/legend.d.ts +1 -1
- package/PieChart/seriesConfig/seriesLayout.d.ts +3 -0
- package/PieChart/seriesConfig/seriesLayout.js +48 -0
- package/PieChart/seriesConfig/seriesProcessor.d.ts +1 -1
- package/RadarChart/RadarAxis/RadarAxis.d.ts +2 -2
- package/RadarChart/RadarAxis/RadarAxis.utils.d.ts +1 -1
- package/RadarChart/RadarAxisHighlight/RadarAxisHighlight.d.ts +1 -1
- package/RadarChart/RadarAxisHighlight/useRadarAxisHighlight.d.ts +4 -4
- package/RadarChart/RadarChart.d.ts +11 -11
- package/RadarChart/RadarChart.plugins.d.ts +6 -5
- package/RadarChart/RadarChart.plugins.js +2 -1
- package/RadarChart/RadarDataProvider/RadarDataProvider.d.ts +6 -6
- package/RadarChart/RadarDataProvider/radar.types.d.ts +1 -1
- package/RadarChart/RadarGrid/CircularRadarGrid.d.ts +1 -1
- package/RadarChart/RadarGrid/CircularRadarStripes.d.ts +1 -1
- package/RadarChart/RadarGrid/RadarGrid.d.ts +1 -1
- package/RadarChart/RadarGrid/RadarGrid.types.d.ts +1 -1
- package/RadarChart/RadarGrid/SharpRadarGrid.d.ts +1 -1
- package/RadarChart/RadarGrid/SharpRadarStripes.d.ts +1 -1
- package/RadarChart/RadarSeriesPlot/RadarSeriesArea.d.ts +4 -4
- package/RadarChart/RadarSeriesPlot/RadarSeriesMarks.d.ts +4 -4
- package/RadarChart/RadarSeriesPlot/RadarSeriesPlot.d.ts +1 -1
- package/RadarChart/RadarSeriesPlot/RadarSeriesPlot.types.d.ts +3 -3
- package/RadarChart/RadarSeriesPlot/useInteractionAllItemProps.d.ts +1 -1
- package/RadarChart/RadarSeriesPlot/useRadarSeriesData.d.ts +1 -1
- package/RadarChart/seriesConfig/extremums.d.ts +1 -1
- package/RadarChart/seriesConfig/getColor.d.ts +1 -1
- package/RadarChart/seriesConfig/index.d.ts +1 -1
- package/RadarChart/seriesConfig/index.js +4 -2
- package/RadarChart/seriesConfig/legend.d.ts +1 -1
- package/RadarChart/seriesConfig/seriesProcessor.d.ts +3 -0
- package/RadarChart/seriesConfig/seriesProcessor.js +29 -0
- package/RadarChart/seriesConfig/tooltipPosition.d.ts +3 -0
- package/RadarChart/seriesConfig/tooltipPosition.js +80 -0
- package/RadarChart/useRadarChartProps.d.ts +7 -7
- package/RadarChart/useRadarChartProps.js +3 -1
- package/ScatterChart/BatchScatter.d.ts +4 -4
- package/ScatterChart/FocusedScatterMark.d.ts +2 -0
- package/ScatterChart/FocusedScatterMark.js +51 -0
- package/ScatterChart/Scatter.d.ts +5 -5
- package/ScatterChart/Scatter.js +1 -9
- package/ScatterChart/ScatterChart.d.ts +16 -16
- package/ScatterChart/ScatterChart.js +40 -1
- package/ScatterChart/ScatterChart.plugins.d.ts +10 -9
- package/ScatterChart/ScatterChart.plugins.js +2 -1
- package/ScatterChart/ScatterMarker.d.ts +1 -1
- package/ScatterChart/ScatterMarker.types.d.ts +1 -1
- package/ScatterChart/ScatterPlot.d.ts +1 -1
- package/ScatterChart/index.d.ts +1 -0
- package/ScatterChart/index.js +12 -0
- package/ScatterChart/seriesConfig/extremums.d.ts +1 -1
- package/ScatterChart/seriesConfig/getColor.d.ts +1 -1
- package/ScatterChart/seriesConfig/index.d.ts +1 -1
- package/ScatterChart/seriesConfig/legend.d.ts +1 -1
- package/ScatterChart/seriesConfig/seriesProcessor.d.ts +1 -1
- package/ScatterChart/useScatterChartProps.d.ts +7 -7
- package/ScatterChart/useScatterPlotData.d.ts +3 -3
- package/SparkLineChart/SparkLineChart.d.ts +12 -12
- package/SparkLineChart/SparkLineChart.js +40 -2
- package/Toolbar/Toolbar.d.ts +1 -1
- package/Toolbar/Toolbar.types.d.ts +1 -1
- package/Toolbar/ToolbarButton.d.ts +2 -2
- package/colorPalettes/categorical/blueberryTwilight.d.ts +1 -1
- package/colorPalettes/categorical/cheerfulFiesta.d.ts +1 -1
- package/colorPalettes/categorical/mangoFusion.d.ts +1 -1
- package/colorPalettes/categorical/rainbowSurge.d.ts +1 -1
- package/colorPalettes/sequential/blue.d.ts +1 -1
- package/colorPalettes/sequential/cyan.d.ts +1 -1
- package/colorPalettes/sequential/green.d.ts +1 -1
- package/colorPalettes/sequential/orange.d.ts +1 -1
- package/colorPalettes/sequential/pink.d.ts +1 -1
- package/colorPalettes/sequential/purple.d.ts +1 -1
- package/colorPalettes/sequential/red.d.ts +1 -1
- package/colorPalettes/sequential/strawberrySky.d.ts +1 -1
- package/colorPalettes/sequential/yellow.d.ts +1 -1
- package/context/ChartProvider/ChartProvider.d.ts +3 -3
- package/context/ChartProvider/ChartProvider.js +2 -1
- package/context/ChartProvider/ChartProvider.types.d.ts +2 -2
- package/context/ChartProvider/useChartContext.d.ts +2 -2
- package/context/ChartsSlotsContext.d.ts +1 -1
- package/context/useChartApiContext.d.ts +1 -1
- package/esm/BarChart/AnimatedBarElement.d.ts +2 -2
- package/esm/BarChart/BarChart.d.ts +15 -15
- package/esm/BarChart/BarChart.js +40 -1
- package/esm/BarChart/BarChart.plugins.d.ts +9 -8
- package/esm/BarChart/BarChart.plugins.js +2 -1
- package/esm/BarChart/BarElement.d.ts +3 -3
- package/esm/BarChart/BarElement.js +1 -2
- package/esm/BarChart/BarLabel/BarLabel.d.ts +1 -1
- package/esm/BarChart/BarLabel/BarLabel.js +12 -8
- package/esm/BarChart/BarLabel/BarLabel.types.d.ts +5 -4
- package/esm/BarChart/BarLabel/BarLabelItem.d.ts +8 -7
- package/esm/BarChart/BarLabel/BarLabelPlot.d.ts +26 -7
- package/esm/BarChart/BarLabel/BarLabelPlot.js +9 -9
- package/esm/BarChart/BarLabel/getBarLabel.d.ts +7 -6
- package/esm/BarChart/BarLabel/getBarLabel.js +2 -2
- package/esm/BarChart/BarPlot.d.ts +4 -4
- package/esm/BarChart/BarPlot.js +8 -4
- package/esm/BarChart/FocusedBar.d.ts +2 -0
- package/esm/BarChart/FocusedBar.js +61 -0
- package/esm/BarChart/barElementClasses.d.ts +1 -1
- package/esm/BarChart/checkBarChartScaleErrors.d.ts +7 -0
- package/esm/BarChart/{checkScaleErrors.js → checkBarChartScaleErrors.js} +5 -6
- package/esm/BarChart/index.d.ts +1 -0
- package/esm/BarChart/index.js +1 -0
- package/esm/BarChart/seriesConfig/bar/extremums.d.ts +1 -1
- package/esm/BarChart/seriesConfig/bar/getColor.d.ts +1 -1
- package/esm/BarChart/seriesConfig/bar/getSeriesWithDefaultValues.d.ts +5 -3
- package/esm/BarChart/seriesConfig/bar/getSeriesWithDefaultValues.js +2 -3
- package/esm/BarChart/seriesConfig/bar/legend.d.ts +1 -1
- package/esm/BarChart/seriesConfig/bar/seriesProcessor.d.ts +1 -1
- package/esm/BarChart/seriesConfig/bar/tooltipPosition.js +1 -1
- package/esm/BarChart/seriesConfig/index.d.ts +1 -1
- package/esm/BarChart/seriesConfig/index.js +1 -1
- package/esm/BarChart/types.d.ts +6 -3
- package/esm/BarChart/useBarChartProps.d.ts +9 -9
- package/esm/BarChart/useBarPlotData.d.ts +5 -20
- package/esm/BarChart/useBarPlotData.js +16 -87
- package/esm/ChartContainer/ChartContainer.d.ts +5 -5
- package/esm/ChartContainer/ChartContainer.js +58 -0
- package/esm/ChartContainer/useChartContainerProps.d.ts +6 -6
- package/esm/ChartDataProvider/ChartDataProvider.d.ts +6 -6
- package/esm/ChartDataProvider/useChartDataProviderProps.d.ts +5 -5
- package/esm/ChartsAxis/ChartsAxis.d.ts +1 -1
- package/esm/ChartsAxisHighlight/ChartsAxisHighlight.d.ts +1 -1
- package/esm/ChartsAxisHighlight/ChartsAxisHighlightPath.d.ts +1 -1
- package/esm/ChartsAxisHighlight/ChartsXAxisHighlight.d.ts +2 -2
- package/esm/ChartsAxisHighlight/ChartsYAxisHighlight.d.ts +2 -2
- package/esm/ChartsGrid/ChartsGrid.d.ts +1 -1
- package/esm/ChartsGrid/ChartsHorizontalGrid.d.ts +2 -2
- package/esm/ChartsGrid/ChartsHorizontalGrid.js +5 -2
- package/esm/ChartsGrid/ChartsVerticalGrid.d.ts +2 -2
- package/esm/ChartsGrid/ChartsVerticalGrid.js +5 -2
- package/esm/ChartsLabel/ChartsLabel.d.ts +2 -2
- package/esm/ChartsLabel/ChartsLabelGradient.d.ts +2 -2
- package/esm/ChartsLabel/ChartsLabelMark.d.ts +2 -2
- package/esm/ChartsLegend/ChartsLegend.d.ts +2 -2
- package/esm/ChartsLegend/ContinuousColorLegend.d.ts +6 -6
- package/esm/ChartsLegend/PiecewiseColorLegend.d.ts +8 -8
- package/esm/ChartsLegend/chartsLegend.types.d.ts +3 -3
- package/esm/ChartsLegend/colorLegend.types.d.ts +1 -1
- package/esm/ChartsLegend/continuousColorLegendClasses.d.ts +1 -1
- package/esm/ChartsLegend/legend.types.d.ts +1 -1
- package/esm/ChartsLegend/legendContext.types.d.ts +3 -3
- package/esm/ChartsLegend/onClickContextBuilder.d.ts +1 -1
- package/esm/ChartsLegend/piecewiseColorDefaultLabelFormatter.d.ts +1 -1
- package/esm/ChartsLegend/useAxis.d.ts +3 -3
- package/esm/ChartsOverlay/ChartsOverlay.d.ts +2 -2
- package/esm/ChartsReferenceLine/ChartsReferenceLine.d.ts +3 -3
- package/esm/ChartsReferenceLine/ChartsXReferenceLine.d.ts +2 -2
- package/esm/ChartsReferenceLine/ChartsYReferenceLine.d.ts +2 -2
- package/esm/ChartsReferenceLine/common.d.ts +3 -3
- package/esm/ChartsSurface/ChartsSurface.d.ts +1 -1
- package/esm/ChartsSurface/ChartsSurface.js +1 -13
- package/esm/ChartsText/ChartsText.d.ts +1 -1
- package/esm/ChartsText/defaultTextPlacement.d.ts +1 -1
- package/esm/ChartsTooltip/ChartTooltip.types.d.ts +1 -1
- package/esm/ChartsTooltip/ChartsAxisTooltipContent.d.ts +2 -2
- package/esm/ChartsTooltip/ChartsItemTooltipContent.d.ts +2 -2
- package/esm/ChartsTooltip/ChartsTooltip.d.ts +2 -2
- package/esm/ChartsTooltip/ChartsTooltipContainer.d.ts +3 -3
- package/esm/ChartsTooltip/ChartsTooltipContainer.js +4 -2
- package/esm/ChartsTooltip/ChartsTooltipTable.d.ts +1 -1
- package/esm/ChartsTooltip/useAxesTooltip.d.ts +1 -1
- package/esm/ChartsTooltip/useAxisTooltip.d.ts +4 -4
- package/esm/ChartsTooltip/useItemTooltip.d.ts +2 -2
- package/esm/ChartsTooltip/useItemTooltip.js +1 -1
- package/esm/ChartsWrapper/ChartsWrapper.d.ts +3 -3
- package/esm/ChartsXAxis/ChartsGroupedXAxisTicks.d.ts +1 -1
- package/esm/ChartsXAxis/ChartsSingleXAxisTicks.d.ts +3 -1
- package/esm/ChartsXAxis/ChartsSingleXAxisTicks.js +6 -2
- package/esm/ChartsXAxis/ChartsXAxis.d.ts +1 -1
- package/esm/ChartsXAxis/ChartsXAxisImpl.d.ts +2 -2
- package/esm/ChartsXAxis/ChartsXAxisImpl.js +9 -3
- package/esm/ChartsXAxis/getVisibleLabels.d.ts +2 -2
- package/esm/ChartsXAxis/shortenLabels.d.ts +3 -3
- package/esm/ChartsXAxis/useAxisTicksProps.d.ts +218 -119
- package/esm/ChartsXAxis/useAxisTicksProps.js +2 -0
- package/esm/ChartsXAxis/utilities.d.ts +1 -1
- package/esm/ChartsYAxis/ChartsGroupedYAxisTicks.d.ts +1 -1
- package/esm/ChartsYAxis/ChartsSingleYAxisTicks.d.ts +3 -1
- package/esm/ChartsYAxis/ChartsSingleYAxisTicks.js +6 -2
- package/esm/ChartsYAxis/ChartsYAxis.d.ts +1 -1
- package/esm/ChartsYAxis/ChartsYAxisImpl.d.ts +2 -2
- package/esm/ChartsYAxis/ChartsYAxisImpl.js +9 -3
- package/esm/ChartsYAxis/shortenLabels.d.ts +3 -3
- package/esm/ChartsYAxis/useAxisTicksProps.d.ts +218 -119
- package/esm/ChartsYAxis/useAxisTicksProps.js +2 -0
- package/esm/ChartsYAxis/utilities.d.ts +1 -1
- package/esm/Gauge/Gauge.d.ts +3 -3
- package/esm/Gauge/GaugeContainer.d.ts +4 -4
- package/esm/Gauge/GaugeValueText.d.ts +1 -1
- package/esm/LineChart/AppearingMask.d.ts +1 -1
- package/esm/LineChart/AreaElement.d.ts +3 -3
- package/esm/LineChart/AreaPlot.d.ts +2 -2
- package/esm/LineChart/AreaPlot.js +4 -1
- package/esm/LineChart/CircleMarkElement.d.ts +1 -1
- package/esm/LineChart/CircleMarkElement.js +1 -1
- package/esm/LineChart/FocusedLineMark.d.ts +1 -0
- package/esm/LineChart/{FocusedMark.js → FocusedLineMark.js} +1 -1
- package/esm/LineChart/LineChart.d.ts +17 -17
- package/esm/LineChart/LineChart.js +40 -2
- package/esm/LineChart/LineChart.plugins.d.ts +9 -8
- package/esm/LineChart/LineChart.plugins.js +2 -1
- package/esm/LineChart/LineElement.d.ts +3 -3
- package/esm/LineChart/LineHighlightElement.d.ts +1 -1
- package/esm/LineChart/LineHighlightPlot.d.ts +2 -2
- package/esm/LineChart/LinePlot.d.ts +2 -2
- package/esm/LineChart/LinePlot.js +4 -1
- package/esm/LineChart/MarkElement.d.ts +1 -1
- package/esm/LineChart/MarkElement.js +1 -1
- package/esm/LineChart/MarkPlot.d.ts +3 -3
- package/esm/LineChart/MarkPlot.js +44 -114
- package/esm/LineChart/index.d.ts +1 -0
- package/esm/LineChart/index.js +1 -0
- package/esm/LineChart/markElementClasses.d.ts +1 -1
- package/esm/LineChart/seriesConfig/extremums.d.ts +1 -1
- package/esm/LineChart/seriesConfig/getColor.d.ts +1 -1
- package/esm/LineChart/seriesConfig/index.d.ts +1 -1
- package/esm/LineChart/seriesConfig/legend.d.ts +1 -1
- package/esm/LineChart/seriesConfig/seriesProcessor.d.ts +1 -1
- package/esm/LineChart/seriesConfig/seriesProcessor.js +3 -3
- package/esm/LineChart/useAreaPlotData.d.ts +3 -3
- package/esm/LineChart/useLineChartProps.d.ts +12 -12
- package/esm/LineChart/useLinePlotData.d.ts +3 -3
- package/esm/LineChart/useMarkPlotData.d.ts +18 -0
- package/esm/LineChart/useMarkPlotData.js +97 -0
- package/esm/PieChart/PieArc.d.ts +1 -1
- package/esm/PieChart/PieArcLabel.d.ts +1 -1
- package/esm/PieChart/PieArcLabel.js +4 -1
- package/esm/PieChart/PieArcLabelPlot.d.ts +2 -2
- package/esm/PieChart/PieArcPlot.d.ts +2 -2
- package/esm/PieChart/PieChart.d.ts +11 -11
- package/esm/PieChart/PieChart.plugins.d.ts +6 -5
- package/esm/PieChart/PieChart.plugins.js +2 -1
- package/esm/PieChart/PiePlot.d.ts +2 -2
- package/esm/PieChart/PiePlot.js +10 -54
- package/esm/PieChart/dataTransform/useTransformData.d.ts +1 -1
- package/esm/PieChart/getPieCoordinates.d.ts +2 -2
- package/esm/PieChart/seriesConfig/getColor.d.ts +1 -1
- package/esm/PieChart/seriesConfig/index.d.ts +1 -1
- package/esm/PieChart/seriesConfig/index.js +2 -0
- package/esm/PieChart/seriesConfig/legend.d.ts +1 -1
- package/esm/PieChart/seriesConfig/seriesLayout.d.ts +3 -0
- package/esm/PieChart/seriesConfig/seriesLayout.js +42 -0
- package/esm/PieChart/seriesConfig/seriesProcessor.d.ts +1 -1
- package/esm/RadarChart/RadarAxis/RadarAxis.d.ts +2 -2
- package/esm/RadarChart/RadarAxis/RadarAxis.utils.d.ts +1 -1
- package/esm/RadarChart/RadarAxisHighlight/RadarAxisHighlight.d.ts +1 -1
- package/esm/RadarChart/RadarAxisHighlight/useRadarAxisHighlight.d.ts +4 -4
- package/esm/RadarChart/RadarChart.d.ts +11 -11
- package/esm/RadarChart/RadarChart.plugins.d.ts +6 -5
- package/esm/RadarChart/RadarChart.plugins.js +2 -1
- package/esm/RadarChart/RadarDataProvider/RadarDataProvider.d.ts +6 -6
- package/esm/RadarChart/RadarDataProvider/radar.types.d.ts +1 -1
- package/esm/RadarChart/RadarGrid/CircularRadarGrid.d.ts +1 -1
- package/esm/RadarChart/RadarGrid/CircularRadarStripes.d.ts +1 -1
- package/esm/RadarChart/RadarGrid/RadarGrid.d.ts +1 -1
- package/esm/RadarChart/RadarGrid/RadarGrid.types.d.ts +1 -1
- package/esm/RadarChart/RadarGrid/SharpRadarGrid.d.ts +1 -1
- package/esm/RadarChart/RadarGrid/SharpRadarStripes.d.ts +1 -1
- package/esm/RadarChart/RadarSeriesPlot/RadarSeriesArea.d.ts +4 -4
- package/esm/RadarChart/RadarSeriesPlot/RadarSeriesMarks.d.ts +4 -4
- package/esm/RadarChart/RadarSeriesPlot/RadarSeriesPlot.d.ts +1 -1
- package/esm/RadarChart/RadarSeriesPlot/RadarSeriesPlot.types.d.ts +3 -3
- package/esm/RadarChart/RadarSeriesPlot/useInteractionAllItemProps.d.ts +1 -1
- package/esm/RadarChart/RadarSeriesPlot/useRadarSeriesData.d.ts +1 -1
- package/esm/RadarChart/seriesConfig/extremums.d.ts +1 -1
- package/esm/RadarChart/seriesConfig/getColor.d.ts +1 -1
- package/esm/RadarChart/seriesConfig/index.d.ts +1 -1
- package/esm/RadarChart/seriesConfig/index.js +4 -2
- package/esm/RadarChart/seriesConfig/legend.d.ts +1 -1
- package/esm/RadarChart/seriesConfig/seriesProcessor.d.ts +3 -0
- package/esm/RadarChart/seriesConfig/seriesProcessor.js +22 -0
- package/esm/RadarChart/seriesConfig/tooltipPosition.d.ts +3 -0
- package/esm/RadarChart/seriesConfig/tooltipPosition.js +74 -0
- package/esm/RadarChart/useRadarChartProps.d.ts +7 -7
- package/esm/RadarChart/useRadarChartProps.js +3 -1
- package/esm/ScatterChart/BatchScatter.d.ts +4 -4
- package/esm/ScatterChart/FocusedScatterMark.d.ts +2 -0
- package/esm/ScatterChart/FocusedScatterMark.js +44 -0
- package/esm/ScatterChart/Scatter.d.ts +5 -5
- package/esm/ScatterChart/Scatter.js +1 -9
- package/esm/ScatterChart/ScatterChart.d.ts +16 -16
- package/esm/ScatterChart/ScatterChart.js +40 -1
- package/esm/ScatterChart/ScatterChart.plugins.d.ts +10 -9
- package/esm/ScatterChart/ScatterChart.plugins.js +2 -1
- package/esm/ScatterChart/ScatterMarker.d.ts +1 -1
- package/esm/ScatterChart/ScatterMarker.types.d.ts +1 -1
- package/esm/ScatterChart/ScatterPlot.d.ts +1 -1
- package/esm/ScatterChart/index.d.ts +1 -0
- package/esm/ScatterChart/index.js +1 -0
- package/esm/ScatterChart/seriesConfig/extremums.d.ts +1 -1
- package/esm/ScatterChart/seriesConfig/getColor.d.ts +1 -1
- package/esm/ScatterChart/seriesConfig/index.d.ts +1 -1
- package/esm/ScatterChart/seriesConfig/legend.d.ts +1 -1
- package/esm/ScatterChart/seriesConfig/seriesProcessor.d.ts +1 -1
- package/esm/ScatterChart/useScatterChartProps.d.ts +7 -7
- package/esm/ScatterChart/useScatterPlotData.d.ts +3 -3
- package/esm/SparkLineChart/SparkLineChart.d.ts +12 -12
- package/esm/SparkLineChart/SparkLineChart.js +40 -2
- package/esm/Toolbar/Toolbar.d.ts +1 -1
- package/esm/Toolbar/Toolbar.types.d.ts +1 -1
- package/esm/Toolbar/ToolbarButton.d.ts +2 -2
- package/esm/colorPalettes/categorical/blueberryTwilight.d.ts +1 -1
- package/esm/colorPalettes/categorical/cheerfulFiesta.d.ts +1 -1
- package/esm/colorPalettes/categorical/mangoFusion.d.ts +1 -1
- package/esm/colorPalettes/categorical/rainbowSurge.d.ts +1 -1
- package/esm/colorPalettes/sequential/blue.d.ts +1 -1
- package/esm/colorPalettes/sequential/cyan.d.ts +1 -1
- package/esm/colorPalettes/sequential/green.d.ts +1 -1
- package/esm/colorPalettes/sequential/orange.d.ts +1 -1
- package/esm/colorPalettes/sequential/pink.d.ts +1 -1
- package/esm/colorPalettes/sequential/purple.d.ts +1 -1
- package/esm/colorPalettes/sequential/red.d.ts +1 -1
- package/esm/colorPalettes/sequential/strawberrySky.d.ts +1 -1
- package/esm/colorPalettes/sequential/yellow.d.ts +1 -1
- package/esm/context/ChartProvider/ChartProvider.d.ts +3 -3
- package/esm/context/ChartProvider/ChartProvider.js +2 -1
- package/esm/context/ChartProvider/ChartProvider.types.d.ts +2 -2
- package/esm/context/ChartProvider/useChartContext.d.ts +2 -2
- package/esm/context/ChartsSlotsContext.d.ts +1 -1
- package/esm/context/useChartApiContext.d.ts +1 -1
- package/esm/hooks/animation/useAnimate.d.ts +1 -1
- package/esm/hooks/animation/useAnimateArea.d.ts +1 -1
- package/esm/hooks/animation/useAnimateBar.d.ts +1 -1
- package/esm/hooks/animation/useAnimateBarLabel.d.ts +1 -1
- package/esm/hooks/animation/useAnimateGaugeValueArc.d.ts +1 -1
- package/esm/hooks/animation/useAnimateLine.d.ts +1 -1
- package/esm/hooks/animation/useAnimatePieArc.d.ts +1 -1
- package/esm/hooks/animation/useAnimatePieArcLabel.d.ts +1 -1
- package/esm/hooks/index.d.ts +1 -1
- package/esm/hooks/index.js +1 -1
- package/esm/hooks/useAxis.d.ts +1 -1
- package/esm/hooks/useBarSeries.d.ts +3 -3
- package/esm/hooks/useChartGradientId.d.ts +1 -1
- package/esm/hooks/useChartRootRef.d.ts +1 -1
- package/esm/hooks/useColorScale.d.ts +1 -1
- package/esm/hooks/useDataset.d.ts +1 -1
- package/esm/hooks/useFocusedItem.d.ts +2 -2
- package/esm/hooks/useInteractionItemProps.d.ts +7 -6
- package/esm/hooks/useInteractionItemProps.js +6 -8
- package/esm/hooks/useIsHydrated.js +1 -1
- package/esm/hooks/useIsItemFocused.d.ts +1 -1
- package/esm/hooks/useIsItemFocusedGetter.d.ts +1 -1
- package/esm/hooks/useItemHighlighted.d.ts +1 -1
- package/esm/hooks/useLineSeries.d.ts +3 -3
- package/esm/hooks/usePieSeries.d.ts +10 -4
- package/esm/hooks/usePieSeries.js +13 -0
- package/esm/hooks/useRadarSeries.d.ts +3 -3
- package/esm/hooks/useScale.d.ts +1 -1
- package/esm/hooks/useScatterSeries.d.ts +3 -3
- package/esm/hooks/useSvgRef.d.ts +1 -1
- package/esm/hooks/useTicks.d.ts +22 -7
- package/esm/hooks/useTicks.js +125 -9
- package/esm/hooks/useTicksGrouped.d.ts +1 -1
- package/esm/index.js +1 -1
- package/esm/internals/Flatbush.d.ts +0 -1
- package/esm/internals/Flatbush.js +1 -1
- package/esm/internals/colorScale.d.ts +3 -3
- package/esm/internals/components/ChartsAxesGradients/ChartsContinuousGradient.d.ts +1 -1
- package/esm/internals/components/ChartsAxesGradients/ChartsContinuousGradientObjectBound.d.ts +1 -1
- package/esm/internals/components/ChartsAxesGradients/ChartsPiecewiseGradient.d.ts +1 -1
- package/esm/internals/components/NotRendered.d.ts +1 -1
- package/esm/internals/configInit.d.ts +1 -1
- package/esm/internals/createSvgIcon.d.ts +2 -2
- package/esm/internals/dateHelpers.d.ts +3 -3
- package/esm/internals/defaultValueFormatters.d.ts +1 -1
- package/esm/internals/domUtils.d.ts +7 -4
- package/esm/internals/findMinMax.d.ts +7 -0
- package/esm/internals/findMinMax.js +7 -0
- package/esm/internals/getBandSize.d.ts +13 -0
- package/esm/internals/getBandSize.js +23 -0
- package/esm/internals/getBarDimensions.d.ts +17 -0
- package/esm/internals/getBarDimensions.js +44 -0
- package/esm/internals/getCurve.d.ts +1 -1
- package/esm/internals/getScale.d.ts +2 -2
- package/esm/internals/getSeriesColorFn.d.ts +1 -1
- package/esm/internals/getWordsByLines.d.ts +2 -1
- package/esm/internals/index.d.ts +6 -1
- package/esm/internals/index.js +6 -1
- package/esm/internals/invertScale.d.ts +1 -1
- package/esm/internals/invertTextAnchor.d.ts +1 -1
- package/esm/internals/isCartesian.d.ts +1 -1
- package/esm/internals/isPolar.d.ts +1 -1
- package/esm/internals/material/index.d.ts +2 -2
- package/esm/internals/plugins/allPlugins.d.ts +13 -12
- package/esm/internals/plugins/allPlugins.js +2 -1
- package/esm/internals/plugins/corePlugins/corePlugins.d.ts +1 -1
- package/esm/internals/plugins/corePlugins/useChartAnimation/useChartAnimation.d.ts +1 -1
- package/esm/internals/plugins/corePlugins/useChartAnimation/useChartAnimation.types.d.ts +1 -1
- package/esm/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.d.ts +1 -1
- package/esm/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.selectors.d.ts +2 -2
- package/esm/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.types.d.ts +1 -1
- package/esm/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.d.ts +1 -1
- package/esm/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.selectors.d.ts +1 -1
- package/esm/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.d.ts +1 -1
- package/esm/internals/plugins/corePlugins/useChartId/useChartId.d.ts +2 -2
- package/esm/internals/plugins/corePlugins/useChartId/useChartId.types.d.ts +1 -1
- package/esm/internals/plugins/corePlugins/useChartInteractionListener/useChartInteractionListener.d.ts +2 -2
- package/esm/internals/plugins/corePlugins/useChartInteractionListener/useChartInteractionListener.types.d.ts +2 -2
- package/esm/internals/plugins/corePlugins/useChartSeries/index.d.ts +1 -1
- package/esm/internals/plugins/corePlugins/useChartSeries/processSeries.d.ts +14 -5
- package/esm/internals/plugins/corePlugins/useChartSeries/processSeries.js +29 -0
- package/esm/internals/plugins/corePlugins/useChartSeries/useChartSeries.d.ts +2 -2
- package/esm/internals/plugins/corePlugins/useChartSeries/useChartSeries.js +2 -7
- package/esm/internals/plugins/corePlugins/useChartSeries/useChartSeries.selectors.d.ts +11 -3
- package/esm/internals/plugins/corePlugins/useChartSeries/useChartSeries.selectors.js +11 -1
- package/esm/internals/plugins/corePlugins/useChartSeries/useChartSeries.types.d.ts +6 -5
- package/esm/internals/plugins/corePlugins/useChartSeries/useColorProcessor.d.ts +2 -2
- package/esm/internals/plugins/featurePlugins/useChartBrush/useChartBrush.d.ts +2 -2
- package/esm/internals/plugins/featurePlugins/useChartBrush/useChartBrush.selectors.js +2 -2
- package/esm/internals/plugins/featurePlugins/useChartBrush/useChartBrush.types.d.ts +1 -1
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/computeAxisValue.d.ts +7 -7
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/computeAxisValue.js +4 -4
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/createAxisFilterMapper.d.ts +4 -4
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/createZoomLookup.d.ts +3 -3
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/defaultizeAxis.d.ts +4 -4
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/defaultizeZoom.d.ts +3 -3
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/domain.d.ts +4 -4
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/getAxisDomainLimit.d.ts +3 -3
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/getAxisExtrema.d.ts +5 -5
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/getAxisScale.d.ts +3 -3
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/getAxisTriggerTooltip.d.ts +4 -4
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/getAxisValue.d.ts +1 -1
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxis.d.ts +2 -2
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisLayout.selectors.d.ts +3 -3
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisPreview.selectors.d.ts +1 -1
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisPreview.selectors.js +5 -5
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.d.ts +7 -67
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.js +7 -1
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianHighlight.selectors.d.ts +1 -1
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianHighlight.selectors.js +2 -2
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianInteraction.selectors.d.ts +2 -2
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/zoom.types.d.ts +1 -1
- package/esm/internals/plugins/featurePlugins/useChartClosestPoint/findClosestPoints.d.ts +4 -5
- package/esm/internals/plugins/featurePlugins/useChartClosestPoint/findClosestPoints.js +1 -1
- package/esm/internals/plugins/featurePlugins/useChartClosestPoint/useChartClosestPoint.d.ts +2 -2
- package/esm/internals/plugins/featurePlugins/useChartClosestPoint/useChartClosestPoint.js +12 -10
- package/esm/internals/plugins/featurePlugins/useChartClosestPoint/useChartClosestPoint.types.d.ts +8 -7
- package/esm/internals/plugins/featurePlugins/useChartHighlight/createIsFaded.d.ts +2 -2
- package/esm/internals/plugins/featurePlugins/useChartHighlight/createIsHighlighted.d.ts +2 -2
- package/esm/internals/plugins/featurePlugins/useChartHighlight/highlightStates.d.ts +3 -3
- package/esm/internals/plugins/featurePlugins/useChartHighlight/useChartHighlight.d.ts +2 -2
- package/esm/internals/plugins/featurePlugins/useChartHighlight/useChartHighlight.js +2 -2
- package/esm/internals/plugins/featurePlugins/useChartHighlight/useChartHighlight.selectors.d.ts +3 -3
- package/esm/internals/plugins/featurePlugins/useChartHighlight/useChartHighlight.selectors.js +2 -2
- package/esm/internals/plugins/featurePlugins/useChartHighlight/useChartHighlight.types.d.ts +4 -4
- package/esm/internals/plugins/featurePlugins/useChartInteraction/checkHasInteractionPlugin.d.ts +2 -2
- package/esm/internals/plugins/featurePlugins/useChartInteraction/index.d.ts +0 -1
- package/esm/internals/plugins/featurePlugins/useChartInteraction/index.js +1 -2
- package/esm/internals/plugins/featurePlugins/useChartInteraction/useChartInteraction.d.ts +2 -2
- package/esm/internals/plugins/featurePlugins/useChartInteraction/useChartInteraction.js +9 -30
- package/esm/internals/plugins/featurePlugins/useChartInteraction/useChartInteraction.selectors.d.ts +0 -6
- package/esm/internals/plugins/featurePlugins/useChartInteraction/useChartInteraction.selectors.js +0 -2
- package/esm/internals/plugins/featurePlugins/useChartInteraction/useChartInteraction.types.d.ts +8 -20
- package/esm/internals/plugins/featurePlugins/useChartKeyboardNavigation/isFocusableSeriesType.d.ts +2 -2
- package/esm/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.d.ts +2 -2
- package/esm/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.helpers.d.ts +4 -4
- package/esm/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.selectors.d.ts +3 -3
- package/esm/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.types.d.ts +5 -5
- package/esm/internals/plugins/featurePlugins/useChartPolarAxis/computeAxisValue.d.ts +5 -5
- package/esm/internals/plugins/featurePlugins/useChartPolarAxis/defaultizeAxis.d.ts +4 -4
- package/esm/internals/plugins/featurePlugins/useChartPolarAxis/getAxisExtremum.d.ts +4 -4
- package/esm/internals/plugins/featurePlugins/useChartPolarAxis/getAxisIndex.d.ts +1 -1
- package/esm/internals/plugins/featurePlugins/useChartPolarAxis/getAxisTriggerTooltip.d.ts +4 -4
- package/esm/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.d.ts +2 -2
- package/esm/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.selectors.d.ts +7 -2
- package/esm/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.selectors.js +10 -7
- package/esm/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.types.d.ts +5 -5
- package/esm/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarInteraction.selectors.d.ts +1 -1
- package/esm/internals/plugins/featurePlugins/useChartTooltip/index.d.ts +3 -0
- package/esm/internals/plugins/featurePlugins/useChartTooltip/index.js +2 -0
- package/esm/internals/plugins/featurePlugins/useChartTooltip/useChartTooltip.d.ts +3 -0
- package/esm/internals/plugins/featurePlugins/useChartTooltip/useChartTooltip.js +44 -0
- package/esm/internals/plugins/featurePlugins/useChartTooltip/useChartTooltip.selectors.d.ts +26 -0
- package/esm/internals/plugins/featurePlugins/useChartTooltip/useChartTooltip.selectors.js +58 -0
- package/esm/internals/plugins/featurePlugins/useChartTooltip/useChartTooltip.types.d.ts +29 -0
- package/esm/internals/plugins/featurePlugins/useChartTooltip/useChartTooltip.types.js +1 -0
- package/esm/internals/plugins/featurePlugins/useChartZAxis/useChartZAxis.d.ts +2 -2
- package/esm/internals/plugins/featurePlugins/useChartZAxis/useChartZAxis.types.d.ts +5 -5
- package/esm/internals/plugins/models/plugin.d.ts +4 -4
- package/esm/internals/plugins/models/seriesConfig/index.d.ts +1 -0
- package/esm/internals/plugins/models/seriesConfig/index.js +1 -0
- package/esm/internals/plugins/models/seriesConfig/seriesConfig.types.d.ts +8 -3
- package/esm/internals/plugins/models/seriesConfig/seriesLayout.types.d.ts +6 -0
- package/esm/internals/plugins/models/seriesConfig/seriesLayout.types.js +1 -0
- package/esm/internals/plugins/models/seriesConfig/tooltipGetter.types.d.ts +7 -7
- package/esm/internals/plugins/models/seriesConfig/tooltipItemPositionGetter.types.d.ts +9 -7
- package/esm/internals/plugins/utils/selectors.d.ts +2 -2
- package/esm/internals/plugins/utils/useLazySelectorEffect.d.ts +1 -1
- package/esm/internals/scaleGuards.d.ts +1 -1
- package/esm/internals/scales/scaleSymlog.d.ts +1 -1
- package/esm/internals/seriesSelectorOfType.d.ts +3 -3
- package/esm/internals/seriesSelectorOfType.js +1 -1
- package/esm/internals/stackSeries.d.ts +50 -4
- package/esm/internals/store/extractPluginParamsFromProps.d.ts +3 -3
- package/esm/internals/store/useCharts.d.ts +4 -4
- package/esm/internals/store/useCharts.types.d.ts +2 -2
- package/esm/internals/store/useStore.d.ts +2 -2
- package/esm/locales/elGR.d.ts +1 -1
- package/esm/locales/enUS.d.ts +1 -1
- package/esm/locales/frFR.d.ts +1 -1
- package/esm/locales/nbNO.d.ts +1 -1
- package/esm/locales/ptBR.d.ts +1 -1
- package/esm/locales/ptPT.d.ts +1 -1
- package/esm/locales/svSE.d.ts +1 -1
- package/esm/locales/utils/chartsLocaleTextApi.d.ts +1 -1
- package/esm/locales/utils/getChartsLocalization.d.ts +1 -1
- package/esm/models/axis.d.ts +20 -6
- package/esm/models/index.d.ts +2 -1
- package/esm/models/seriesType/bar.d.ts +6 -5
- package/esm/models/seriesType/common.d.ts +5 -2
- package/esm/models/seriesType/config.d.ts +17 -7
- package/esm/models/seriesType/index.d.ts +3 -2
- package/esm/models/seriesType/line.d.ts +3 -3
- package/esm/models/seriesType/pie.d.ts +39 -4
- package/esm/models/seriesType/radar.d.ts +2 -2
- package/esm/models/seriesType/scatter.d.ts +2 -2
- package/esm/models/slots/chartsBaseSlots.d.ts +2 -2
- package/esm/models/timeTicks.d.ts +37 -0
- package/esm/models/timeTicks.js +1 -0
- package/esm/models/z-axis.d.ts +1 -1
- package/esm/plugins/index.d.ts +1 -0
- package/esm/plugins/index.js +1 -0
- package/esm/themeAugmentation/components.d.ts +1 -1
- package/esm/themeAugmentation/overrides.d.ts +7 -7
- package/esm/themeAugmentation/props.d.ts +12 -12
- package/esm/utils/index.d.ts +2 -1
- package/esm/utils/index.js +2 -1
- package/esm/utils/niceDomain.d.ts +2 -2
- package/esm/utils/timeTicks.d.ts +2 -0
- package/esm/utils/timeTicks.js +62 -0
- package/hooks/animation/useAnimate.d.ts +1 -1
- package/hooks/animation/useAnimateArea.d.ts +1 -1
- package/hooks/animation/useAnimateBar.d.ts +1 -1
- package/hooks/animation/useAnimateBarLabel.d.ts +1 -1
- package/hooks/animation/useAnimateGaugeValueArc.d.ts +1 -1
- package/hooks/animation/useAnimateLine.d.ts +1 -1
- package/hooks/animation/useAnimatePieArc.d.ts +1 -1
- package/hooks/animation/useAnimatePieArcLabel.d.ts +1 -1
- package/hooks/index.d.ts +1 -1
- package/hooks/index.js +14 -11
- package/hooks/useAxis.d.ts +1 -1
- package/hooks/useBarSeries.d.ts +3 -3
- package/hooks/useChartGradientId.d.ts +1 -1
- package/hooks/useChartRootRef.d.ts +1 -1
- package/hooks/useColorScale.d.ts +1 -1
- package/hooks/useDataset.d.ts +1 -1
- package/hooks/useFocusedItem.d.ts +2 -2
- package/hooks/useInteractionItemProps.d.ts +7 -6
- package/hooks/useInteractionItemProps.js +6 -8
- package/hooks/useIsHydrated.js +1 -1
- package/hooks/useIsItemFocused.d.ts +1 -1
- package/hooks/useIsItemFocusedGetter.d.ts +1 -1
- package/hooks/useItemHighlighted.d.ts +1 -1
- package/hooks/useLineSeries.d.ts +3 -3
- package/hooks/usePieSeries.d.ts +10 -4
- package/hooks/usePieSeries.js +14 -0
- package/hooks/useRadarSeries.d.ts +3 -3
- package/hooks/useScale.d.ts +1 -1
- package/hooks/useScatterSeries.d.ts +3 -3
- package/hooks/useSvgRef.d.ts +1 -1
- package/hooks/useTicks.d.ts +22 -7
- package/hooks/useTicks.js +127 -10
- package/hooks/useTicksGrouped.d.ts +1 -1
- package/index.js +1 -1
- package/internals/Flatbush.d.ts +0 -1
- package/internals/Flatbush.js +1 -1
- package/internals/colorScale.d.ts +3 -3
- package/internals/components/ChartsAxesGradients/ChartsContinuousGradient.d.ts +1 -1
- package/internals/components/ChartsAxesGradients/ChartsContinuousGradientObjectBound.d.ts +1 -1
- package/internals/components/ChartsAxesGradients/ChartsPiecewiseGradient.d.ts +1 -1
- package/internals/components/NotRendered.d.ts +1 -1
- package/internals/configInit.d.ts +1 -1
- package/internals/createSvgIcon.d.ts +2 -2
- package/internals/dateHelpers.d.ts +3 -3
- package/internals/defaultValueFormatters.d.ts +1 -1
- package/internals/domUtils.d.ts +7 -4
- package/internals/findMinMax.d.ts +7 -0
- package/internals/findMinMax.js +7 -0
- package/internals/getBandSize.d.ts +13 -0
- package/internals/getBandSize.js +29 -0
- package/internals/getBarDimensions.d.ts +17 -0
- package/internals/getBarDimensions.js +50 -0
- package/internals/getCurve.d.ts +1 -1
- package/internals/getScale.d.ts +2 -2
- package/internals/getSeriesColorFn.d.ts +1 -1
- package/internals/getWordsByLines.d.ts +2 -1
- package/internals/index.d.ts +6 -1
- package/internals/index.js +60 -12
- package/internals/invertScale.d.ts +1 -1
- package/internals/invertTextAnchor.d.ts +1 -1
- package/internals/isCartesian.d.ts +1 -1
- package/internals/isPolar.d.ts +1 -1
- package/internals/material/index.d.ts +2 -2
- package/internals/plugins/allPlugins.d.ts +13 -12
- package/internals/plugins/allPlugins.js +2 -1
- package/internals/plugins/corePlugins/corePlugins.d.ts +1 -1
- package/internals/plugins/corePlugins/useChartAnimation/useChartAnimation.d.ts +1 -1
- package/internals/plugins/corePlugins/useChartAnimation/useChartAnimation.types.d.ts +1 -1
- package/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.d.ts +1 -1
- package/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.selectors.d.ts +2 -2
- package/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.types.d.ts +1 -1
- package/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.d.ts +1 -1
- package/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.selectors.d.ts +1 -1
- package/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.d.ts +1 -1
- package/internals/plugins/corePlugins/useChartId/useChartId.d.ts +2 -2
- package/internals/plugins/corePlugins/useChartId/useChartId.types.d.ts +1 -1
- package/internals/plugins/corePlugins/useChartInteractionListener/useChartInteractionListener.d.ts +2 -2
- package/internals/plugins/corePlugins/useChartInteractionListener/useChartInteractionListener.types.d.ts +2 -2
- package/internals/plugins/corePlugins/useChartSeries/index.d.ts +1 -1
- package/internals/plugins/corePlugins/useChartSeries/processSeries.d.ts +14 -5
- package/internals/plugins/corePlugins/useChartSeries/processSeries.js +32 -2
- package/internals/plugins/corePlugins/useChartSeries/useChartSeries.d.ts +2 -2
- package/internals/plugins/corePlugins/useChartSeries/useChartSeries.js +2 -8
- package/internals/plugins/corePlugins/useChartSeries/useChartSeries.selectors.d.ts +11 -3
- package/internals/plugins/corePlugins/useChartSeries/useChartSeries.selectors.js +11 -1
- package/internals/plugins/corePlugins/useChartSeries/useChartSeries.types.d.ts +6 -5
- package/internals/plugins/corePlugins/useChartSeries/useColorProcessor.d.ts +2 -2
- package/internals/plugins/featurePlugins/useChartBrush/useChartBrush.d.ts +2 -2
- package/internals/plugins/featurePlugins/useChartBrush/useChartBrush.selectors.js +1 -1
- package/internals/plugins/featurePlugins/useChartBrush/useChartBrush.types.d.ts +1 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/computeAxisValue.d.ts +7 -7
- package/internals/plugins/featurePlugins/useChartCartesianAxis/computeAxisValue.js +4 -4
- package/internals/plugins/featurePlugins/useChartCartesianAxis/createAxisFilterMapper.d.ts +4 -4
- package/internals/plugins/featurePlugins/useChartCartesianAxis/createZoomLookup.d.ts +3 -3
- package/internals/plugins/featurePlugins/useChartCartesianAxis/defaultizeAxis.d.ts +4 -4
- package/internals/plugins/featurePlugins/useChartCartesianAxis/defaultizeZoom.d.ts +3 -3
- package/internals/plugins/featurePlugins/useChartCartesianAxis/domain.d.ts +4 -4
- package/internals/plugins/featurePlugins/useChartCartesianAxis/getAxisDomainLimit.d.ts +3 -3
- package/internals/plugins/featurePlugins/useChartCartesianAxis/getAxisExtrema.d.ts +5 -5
- package/internals/plugins/featurePlugins/useChartCartesianAxis/getAxisScale.d.ts +3 -3
- package/internals/plugins/featurePlugins/useChartCartesianAxis/getAxisTriggerTooltip.d.ts +4 -4
- package/internals/plugins/featurePlugins/useChartCartesianAxis/getAxisValue.d.ts +1 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxis.d.ts +2 -2
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisLayout.selectors.d.ts +3 -3
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisPreview.selectors.d.ts +1 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisPreview.selectors.js +4 -4
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.d.ts +7 -67
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.js +6 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianHighlight.selectors.d.ts +1 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianHighlight.selectors.js +2 -2
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianInteraction.selectors.d.ts +2 -2
- package/internals/plugins/featurePlugins/useChartCartesianAxis/zoom.types.d.ts +1 -1
- package/internals/plugins/featurePlugins/useChartClosestPoint/findClosestPoints.d.ts +4 -5
- package/internals/plugins/featurePlugins/useChartClosestPoint/findClosestPoints.js +1 -1
- package/internals/plugins/featurePlugins/useChartClosestPoint/useChartClosestPoint.d.ts +2 -2
- package/internals/plugins/featurePlugins/useChartClosestPoint/useChartClosestPoint.js +12 -10
- package/internals/plugins/featurePlugins/useChartClosestPoint/useChartClosestPoint.types.d.ts +8 -7
- package/internals/plugins/featurePlugins/useChartHighlight/createIsFaded.d.ts +2 -2
- package/internals/plugins/featurePlugins/useChartHighlight/createIsHighlighted.d.ts +2 -2
- package/internals/plugins/featurePlugins/useChartHighlight/highlightStates.d.ts +3 -3
- package/internals/plugins/featurePlugins/useChartHighlight/useChartHighlight.d.ts +2 -2
- package/internals/plugins/featurePlugins/useChartHighlight/useChartHighlight.js +2 -2
- package/internals/plugins/featurePlugins/useChartHighlight/useChartHighlight.selectors.d.ts +3 -3
- package/internals/plugins/featurePlugins/useChartHighlight/useChartHighlight.selectors.js +2 -2
- package/internals/plugins/featurePlugins/useChartHighlight/useChartHighlight.types.d.ts +4 -4
- package/internals/plugins/featurePlugins/useChartInteraction/checkHasInteractionPlugin.d.ts +2 -2
- package/internals/plugins/featurePlugins/useChartInteraction/index.d.ts +0 -1
- package/internals/plugins/featurePlugins/useChartInteraction/index.js +0 -12
- package/internals/plugins/featurePlugins/useChartInteraction/useChartInteraction.d.ts +2 -2
- package/internals/plugins/featurePlugins/useChartInteraction/useChartInteraction.js +9 -30
- package/internals/plugins/featurePlugins/useChartInteraction/useChartInteraction.selectors.d.ts +0 -6
- package/internals/plugins/featurePlugins/useChartInteraction/useChartInteraction.selectors.js +1 -3
- package/internals/plugins/featurePlugins/useChartInteraction/useChartInteraction.types.d.ts +8 -20
- package/internals/plugins/featurePlugins/useChartKeyboardNavigation/isFocusableSeriesType.d.ts +2 -2
- package/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.d.ts +2 -2
- package/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.helpers.d.ts +4 -4
- package/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.selectors.d.ts +3 -3
- package/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.types.d.ts +5 -5
- package/internals/plugins/featurePlugins/useChartPolarAxis/computeAxisValue.d.ts +5 -5
- package/internals/plugins/featurePlugins/useChartPolarAxis/defaultizeAxis.d.ts +4 -4
- package/internals/plugins/featurePlugins/useChartPolarAxis/getAxisExtremum.d.ts +4 -4
- package/internals/plugins/featurePlugins/useChartPolarAxis/getAxisIndex.d.ts +1 -1
- package/internals/plugins/featurePlugins/useChartPolarAxis/getAxisTriggerTooltip.d.ts +4 -4
- package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.d.ts +2 -2
- package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.selectors.d.ts +7 -2
- package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.selectors.js +10 -6
- package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.types.d.ts +5 -5
- package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarInteraction.selectors.d.ts +1 -1
- package/internals/plugins/featurePlugins/useChartTooltip/index.d.ts +3 -0
- package/internals/plugins/featurePlugins/useChartTooltip/index.js +27 -0
- package/internals/plugins/featurePlugins/useChartTooltip/useChartTooltip.d.ts +3 -0
- package/internals/plugins/featurePlugins/useChartTooltip/useChartTooltip.js +52 -0
- package/internals/plugins/featurePlugins/useChartTooltip/useChartTooltip.selectors.d.ts +26 -0
- package/internals/plugins/featurePlugins/useChartTooltip/useChartTooltip.selectors.js +64 -0
- package/internals/plugins/featurePlugins/useChartTooltip/useChartTooltip.types.d.ts +29 -0
- package/internals/plugins/featurePlugins/useChartTooltip/useChartTooltip.types.js +5 -0
- package/internals/plugins/featurePlugins/useChartZAxis/useChartZAxis.d.ts +2 -2
- package/internals/plugins/featurePlugins/useChartZAxis/useChartZAxis.types.d.ts +5 -5
- package/internals/plugins/models/plugin.d.ts +4 -4
- package/internals/plugins/models/seriesConfig/index.d.ts +1 -0
- package/internals/plugins/models/seriesConfig/index.js +11 -0
- package/internals/plugins/models/seriesConfig/seriesConfig.types.d.ts +8 -3
- package/internals/plugins/models/seriesConfig/seriesLayout.types.d.ts +6 -0
- package/internals/plugins/models/seriesConfig/seriesLayout.types.js +5 -0
- package/internals/plugins/models/seriesConfig/tooltipGetter.types.d.ts +7 -7
- package/internals/plugins/models/seriesConfig/tooltipItemPositionGetter.types.d.ts +9 -7
- package/internals/plugins/utils/selectors.d.ts +2 -2
- package/internals/plugins/utils/useLazySelectorEffect.d.ts +1 -1
- package/internals/scaleGuards.d.ts +1 -1
- package/internals/scales/scaleSymlog.d.ts +1 -1
- package/internals/seriesSelectorOfType.d.ts +3 -3
- package/internals/seriesSelectorOfType.js +1 -1
- package/internals/stackSeries.d.ts +50 -4
- package/internals/store/extractPluginParamsFromProps.d.ts +3 -3
- package/internals/store/useCharts.d.ts +4 -4
- package/internals/store/useCharts.types.d.ts +2 -2
- package/internals/store/useStore.d.ts +2 -2
- package/locales/elGR.d.ts +1 -1
- package/locales/enUS.d.ts +1 -1
- package/locales/frFR.d.ts +1 -1
- package/locales/nbNO.d.ts +1 -1
- package/locales/ptBR.d.ts +1 -1
- package/locales/ptPT.d.ts +1 -1
- package/locales/svSE.d.ts +1 -1
- package/locales/utils/chartsLocaleTextApi.d.ts +1 -1
- package/locales/utils/getChartsLocalization.d.ts +1 -1
- package/models/axis.d.ts +20 -6
- package/models/index.d.ts +2 -1
- package/models/seriesType/bar.d.ts +6 -5
- package/models/seriesType/common.d.ts +5 -2
- package/models/seriesType/config.d.ts +17 -7
- package/models/seriesType/index.d.ts +3 -2
- package/models/seriesType/line.d.ts +3 -3
- package/models/seriesType/pie.d.ts +39 -4
- package/models/seriesType/radar.d.ts +2 -2
- package/models/seriesType/scatter.d.ts +2 -2
- package/models/slots/chartsBaseSlots.d.ts +2 -2
- package/models/timeTicks.d.ts +37 -0
- package/models/timeTicks.js +5 -0
- package/models/z-axis.d.ts +1 -1
- package/package.json +4 -5
- package/plugins/index.d.ts +1 -0
- package/plugins/index.js +7 -0
- package/themeAugmentation/components.d.ts +1 -1
- package/themeAugmentation/overrides.d.ts +7 -7
- package/themeAugmentation/props.d.ts +12 -12
- package/utils/index.d.ts +2 -1
- package/utils/index.js +12 -1
- package/utils/niceDomain.d.ts +2 -2
- package/utils/timeTicks.d.ts +2 -0
- package/utils/timeTicks.js +68 -0
- package/BarChart/checkScaleErrors.d.ts +0 -10
- package/LineChart/FocusedMark.d.ts +0 -1
- package/RadarChart/seriesConfig/formatter.d.ts +0 -3
- package/RadarChart/seriesConfig/formatter.js +0 -18
- package/esm/BarChart/checkScaleErrors.d.ts +0 -10
- package/esm/LineChart/FocusedMark.d.ts +0 -1
- package/esm/RadarChart/seriesConfig/formatter.d.ts +0 -3
- package/esm/RadarChart/seriesConfig/formatter.js +0 -12
- package/esm/internals/defaultizeValueFormatter.d.ts +0 -6
- package/esm/internals/defaultizeValueFormatter.js +0 -10
- package/esm/internals/plugins/featurePlugins/useChartInteraction/useChartTooltip.selectors.d.ts +0 -12
- package/esm/internals/plugins/featurePlugins/useChartInteraction/useChartTooltip.selectors.js +0 -40
- package/internals/defaultizeValueFormatter.d.ts +0 -6
- package/internals/defaultizeValueFormatter.js +0 -17
- package/internals/plugins/featurePlugins/useChartInteraction/useChartTooltip.selectors.d.ts +0 -12
- package/internals/plugins/featurePlugins/useChartInteraction/useChartTooltip.selectors.js +0 -46
|
@@ -5,20 +5,15 @@ import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWith
|
|
|
5
5
|
const _excluded = ["slots", "slotProps", "skipAnimation", "onItemClick"];
|
|
6
6
|
import PropTypes from 'prop-types';
|
|
7
7
|
import * as React from 'react';
|
|
8
|
-
import { DEFAULT_X_AXIS_KEY } from "../constants/index.js";
|
|
9
8
|
import { useSkipAnimation } from "../hooks/useSkipAnimation.js";
|
|
10
|
-
import { useChartId } from "../hooks/useChartId.js";
|
|
11
|
-
import { getValueToPositionMapper } from "../hooks/useScale.js";
|
|
12
|
-
import { useLineSeriesContext } from "../hooks/useLineSeries.js";
|
|
13
|
-
import { cleanId } from "../internals/cleanId.js";
|
|
14
9
|
import { CircleMarkElement } from "./CircleMarkElement.js";
|
|
15
|
-
import getColor from "./seriesConfig/getColor.js";
|
|
16
10
|
import { MarkElement } from "./MarkElement.js";
|
|
17
|
-
import { useChartContext } from "../context/ChartProvider/index.js";
|
|
18
11
|
import { useItemHighlightedGetter, useXAxes, useYAxes } from "../hooks/index.js";
|
|
19
12
|
import { useInternalIsZoomInteracting } from "../internals/plugins/featurePlugins/useChartCartesianAxis/useInternalIsZoomInteracting.js";
|
|
20
13
|
import { selectorChartsHighlightXAxisIndex } from "../internals/plugins/featurePlugins/useChartCartesianAxis/index.js";
|
|
21
14
|
import { useSelector } from "../internals/store/useSelector.js";
|
|
15
|
+
import { useChartContext } from "../context/ChartProvider/index.js";
|
|
16
|
+
import { useMarkPlotData } from "./useMarkPlotData.js";
|
|
22
17
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
23
18
|
/**
|
|
24
19
|
* Demos:
|
|
@@ -40,18 +35,13 @@ function MarkPlot(props) {
|
|
|
40
35
|
other = _objectWithoutPropertiesLoose(props, _excluded);
|
|
41
36
|
const isZoomInteracting = useInternalIsZoomInteracting();
|
|
42
37
|
const skipAnimation = useSkipAnimation(isZoomInteracting || inSkipAnimation);
|
|
43
|
-
const seriesData = useLineSeriesContext();
|
|
44
38
|
const {
|
|
45
|
-
xAxis
|
|
46
|
-
xAxisIds
|
|
39
|
+
xAxis
|
|
47
40
|
} = useXAxes();
|
|
48
41
|
const {
|
|
49
|
-
yAxis
|
|
50
|
-
yAxisIds
|
|
42
|
+
yAxis
|
|
51
43
|
} = useYAxes();
|
|
52
|
-
const chartId = useChartId();
|
|
53
44
|
const {
|
|
54
|
-
instance,
|
|
55
45
|
store
|
|
56
46
|
} = useChartContext();
|
|
57
47
|
const {
|
|
@@ -73,109 +63,49 @@ function MarkPlot(props) {
|
|
|
73
63
|
}
|
|
74
64
|
return rep;
|
|
75
65
|
}, [xAxisHighlightIndexes]);
|
|
76
|
-
|
|
77
|
-
return null;
|
|
78
|
-
}
|
|
79
|
-
const {
|
|
80
|
-
series,
|
|
81
|
-
stackingGroups
|
|
82
|
-
} = seriesData;
|
|
83
|
-
const defaultXAxisId = xAxisIds[0];
|
|
84
|
-
const defaultYAxisId = yAxisIds[0];
|
|
66
|
+
const completedData = useMarkPlotData(xAxis, yAxis);
|
|
85
67
|
return /*#__PURE__*/_jsx("g", _extends({}, other, {
|
|
86
|
-
children:
|
|
87
|
-
|
|
68
|
+
children: completedData.map(({
|
|
69
|
+
seriesId,
|
|
70
|
+
clipId,
|
|
71
|
+
shape,
|
|
72
|
+
xAxisId,
|
|
73
|
+
marks
|
|
88
74
|
}) => {
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
showMark = true,
|
|
96
|
-
shape = 'circle'
|
|
97
|
-
} = series[seriesId];
|
|
98
|
-
if (showMark === false) {
|
|
99
|
-
return null;
|
|
100
|
-
}
|
|
101
|
-
const xScale = getValueToPositionMapper(xAxis[xAxisId].scale);
|
|
102
|
-
const yScale = yAxis[yAxisId].scale;
|
|
103
|
-
const xData = xAxis[xAxisId].data;
|
|
104
|
-
if (xData === undefined) {
|
|
105
|
-
throw new Error(`MUI X Charts: ${xAxisId === DEFAULT_X_AXIS_KEY ? 'The first `xAxis`' : `The x-axis with id "${xAxisId}"`} should have data property to be able to display a line plot.`);
|
|
106
|
-
}
|
|
107
|
-
const clipId = cleanId(`${chartId}-${seriesId}-line-clip`); // We assume that if displaying line mark, the line will also be rendered
|
|
108
|
-
|
|
109
|
-
const colorGetter = getColor(series[seriesId], xAxis[xAxisId], yAxis[yAxisId]);
|
|
110
|
-
const Mark = slots?.mark ?? (shape === 'circle' ? CircleMarkElement : MarkElement);
|
|
111
|
-
const isSeriesHighlighted = isHighlighted({
|
|
112
|
-
seriesId
|
|
113
|
-
});
|
|
114
|
-
const isSeriesFaded = !isSeriesHighlighted && isFaded({
|
|
115
|
-
seriesId
|
|
116
|
-
});
|
|
117
|
-
return /*#__PURE__*/_jsx("g", {
|
|
118
|
-
clipPath: `url(#${clipId})`,
|
|
119
|
-
"data-series": seriesId,
|
|
120
|
-
children: xData?.map((x, index) => {
|
|
121
|
-
const value = data[index] == null ? null : stackedData[index][1];
|
|
122
|
-
return {
|
|
123
|
-
x: xScale(x),
|
|
124
|
-
y: value === null ? null : yScale(value),
|
|
125
|
-
position: x,
|
|
126
|
-
value,
|
|
127
|
-
index
|
|
128
|
-
};
|
|
129
|
-
}).filter(({
|
|
130
|
-
x,
|
|
131
|
-
y,
|
|
132
|
-
index,
|
|
133
|
-
position,
|
|
134
|
-
value
|
|
135
|
-
}) => {
|
|
136
|
-
if (value === null || y === null) {
|
|
137
|
-
// Remove missing data point
|
|
138
|
-
return false;
|
|
139
|
-
}
|
|
140
|
-
if (!instance.isPointInside(x, y)) {
|
|
141
|
-
// Remove out of range
|
|
142
|
-
return false;
|
|
143
|
-
}
|
|
144
|
-
if (showMark === true) {
|
|
145
|
-
return true;
|
|
146
|
-
}
|
|
147
|
-
return showMark({
|
|
148
|
-
x,
|
|
149
|
-
y,
|
|
150
|
-
index,
|
|
151
|
-
position,
|
|
152
|
-
value
|
|
153
|
-
});
|
|
154
|
-
}).map(({
|
|
155
|
-
x,
|
|
156
|
-
y,
|
|
157
|
-
index
|
|
158
|
-
}) => {
|
|
159
|
-
return /*#__PURE__*/_jsx(Mark, _extends({
|
|
160
|
-
id: seriesId,
|
|
161
|
-
dataIndex: index,
|
|
162
|
-
shape: shape,
|
|
163
|
-
color: colorGetter(index),
|
|
164
|
-
x: x,
|
|
165
|
-
y: y // Don't know why TS doesn't get from the filter that y can't be null
|
|
166
|
-
,
|
|
167
|
-
skipAnimation: skipAnimation,
|
|
168
|
-
onClick: onItemClick && (event => onItemClick(event, {
|
|
169
|
-
type: 'line',
|
|
170
|
-
seriesId,
|
|
171
|
-
dataIndex: index
|
|
172
|
-
})),
|
|
173
|
-
isHighlighted: highlightedItems[xAxisId]?.has(index) || isSeriesHighlighted,
|
|
174
|
-
isFaded: isSeriesFaded
|
|
175
|
-
}, slotProps?.mark), `${seriesId}-${index}`);
|
|
176
|
-
})
|
|
177
|
-
}, seriesId);
|
|
75
|
+
const Mark = slots?.mark ?? (shape === 'circle' ? CircleMarkElement : MarkElement);
|
|
76
|
+
const isSeriesHighlighted = isHighlighted({
|
|
77
|
+
seriesId
|
|
78
|
+
});
|
|
79
|
+
const isSeriesFaded = !isSeriesHighlighted && isFaded({
|
|
80
|
+
seriesId
|
|
178
81
|
});
|
|
82
|
+
return /*#__PURE__*/_jsx("g", {
|
|
83
|
+
clipPath: `url(#${clipId})`,
|
|
84
|
+
"data-series": seriesId,
|
|
85
|
+
children: marks.map(({
|
|
86
|
+
x,
|
|
87
|
+
y,
|
|
88
|
+
index,
|
|
89
|
+
color
|
|
90
|
+
}) => {
|
|
91
|
+
return /*#__PURE__*/_jsx(Mark, _extends({
|
|
92
|
+
id: seriesId,
|
|
93
|
+
dataIndex: index,
|
|
94
|
+
shape: shape,
|
|
95
|
+
color: color,
|
|
96
|
+
x: x,
|
|
97
|
+
y: y,
|
|
98
|
+
skipAnimation: skipAnimation,
|
|
99
|
+
onClick: onItemClick && (event => onItemClick(event, {
|
|
100
|
+
type: 'line',
|
|
101
|
+
seriesId,
|
|
102
|
+
dataIndex: index
|
|
103
|
+
})),
|
|
104
|
+
isHighlighted: highlightedItems[xAxisId]?.has(index) || isSeriesHighlighted,
|
|
105
|
+
isFaded: isSeriesFaded
|
|
106
|
+
}, slotProps?.mark), `${seriesId}-${index}`);
|
|
107
|
+
})
|
|
108
|
+
}, seriesId);
|
|
179
109
|
})
|
|
180
110
|
}));
|
|
181
111
|
}
|
package/esm/LineChart/index.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ export * from "./AnimatedArea.js";
|
|
|
8
8
|
export * from "./LineElement.js";
|
|
9
9
|
export * from "./AnimatedLine.js";
|
|
10
10
|
export * from "./MarkElement.js";
|
|
11
|
+
export * from "./FocusedLineMark.js";
|
|
11
12
|
export * from "./LineHighlightElement.js";
|
|
12
13
|
export * from "./LineChart.plugins.js";
|
|
13
14
|
export type { MarkElementClasses, MarkElementClassKey } from "./markElementClasses.js";
|
package/esm/LineChart/index.js
CHANGED
|
@@ -8,6 +8,7 @@ export * from "./AnimatedArea.js";
|
|
|
8
8
|
export * from "./LineElement.js";
|
|
9
9
|
export * from "./AnimatedLine.js";
|
|
10
10
|
export * from "./MarkElement.js";
|
|
11
|
+
export * from "./FocusedLineMark.js";
|
|
11
12
|
export * from "./LineHighlightElement.js";
|
|
12
13
|
export * from "./LineChart.plugins.js";
|
|
13
14
|
export { getMarkElementUtilityClass, markElementClasses } from "./markElementClasses.js";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { CartesianExtremumGetter } from "../../internals/plugins/models/seriesConfig/index.js";
|
|
1
|
+
import { type CartesianExtremumGetter } from "../../internals/plugins/models/seriesConfig/index.js";
|
|
2
2
|
export declare const getExtremumX: CartesianExtremumGetter<'line'>;
|
|
3
3
|
export declare const getExtremumY: CartesianExtremumGetter<'line'>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ChartSeriesTypeConfig } from "../../internals/plugins/models/seriesConfig/index.js";
|
|
1
|
+
import { type ChartSeriesTypeConfig } from "../../internals/plugins/models/seriesConfig/index.js";
|
|
2
2
|
export declare const lineSeriesConfig: ChartSeriesTypeConfig<'line'>;
|
|
@@ -2,7 +2,6 @@ import _extends from "@babel/runtime/helpers/esm/extends";
|
|
|
2
2
|
import { stack as d3Stack } from '@mui/x-charts-vendor/d3-shape';
|
|
3
3
|
import { warnOnce } from '@mui/x-internals/warning';
|
|
4
4
|
import { getStackingGroups } from "../../internals/stackSeries.js";
|
|
5
|
-
import { defaultizeValueFormatter } from "../../internals/defaultizeValueFormatter.js";
|
|
6
5
|
const seriesProcessor = (params, dataset) => {
|
|
7
6
|
const {
|
|
8
7
|
seriesOrder,
|
|
@@ -69,14 +68,15 @@ const seriesProcessor = (params, dataset) => {
|
|
|
69
68
|
const value = data[dataKey];
|
|
70
69
|
return typeof value === 'number' ? value : null;
|
|
71
70
|
}) : series[id].data,
|
|
72
|
-
stackedData: stackedSeries[index].map(([a, b]) => [a, b])
|
|
71
|
+
stackedData: stackedSeries[index].map(([a, b]) => [a, b]),
|
|
72
|
+
valueFormatter: series[id]?.valueFormatter ?? (v => v == null ? '' : v.toLocaleString())
|
|
73
73
|
});
|
|
74
74
|
});
|
|
75
75
|
});
|
|
76
76
|
return {
|
|
77
77
|
seriesOrder,
|
|
78
78
|
stackingGroups,
|
|
79
|
-
series:
|
|
79
|
+
series: completedSeries
|
|
80
80
|
};
|
|
81
81
|
};
|
|
82
82
|
export default seriesProcessor;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ComputedAxisConfig } from "../internals/plugins/featurePlugins/useChartCartesianAxis/index.js";
|
|
2
|
-
import { ChartsXAxisProps, ChartsYAxisProps } from "../models/index.js";
|
|
3
|
-
import { SeriesId } from "../models/seriesType/common.js";
|
|
1
|
+
import { type ComputedAxisConfig } from "../internals/plugins/featurePlugins/useChartCartesianAxis/index.js";
|
|
2
|
+
import { type ChartsXAxisProps, type ChartsYAxisProps } from "../models/index.js";
|
|
3
|
+
import { type SeriesId } from "../models/seriesType/common.js";
|
|
4
4
|
interface AreaPlotDataPoint {
|
|
5
5
|
d: string;
|
|
6
6
|
seriesId: SeriesId;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { ChartsAxisProps } from "../ChartsAxis/index.js";
|
|
3
|
-
import { ChartsAxisHighlightProps } from "../ChartsAxisHighlight/index.js";
|
|
4
|
-
import { ChartsClipPathProps } from "../ChartsClipPath/index.js";
|
|
5
|
-
import { ChartsGridProps } from "../ChartsGrid/index.js";
|
|
6
|
-
import { ChartsLegendSlotExtension } from "../ChartsLegend/index.js";
|
|
7
|
-
import { ChartsOverlayProps } from "../ChartsOverlay/index.js";
|
|
8
|
-
import { ChartContainerProps } from "../ChartContainer/index.js";
|
|
9
|
-
import { AreaPlotProps } from "./AreaPlot.js";
|
|
2
|
+
import { type ChartsAxisProps } from "../ChartsAxis/index.js";
|
|
3
|
+
import { type ChartsAxisHighlightProps } from "../ChartsAxisHighlight/index.js";
|
|
4
|
+
import { type ChartsClipPathProps } from "../ChartsClipPath/index.js";
|
|
5
|
+
import { type ChartsGridProps } from "../ChartsGrid/index.js";
|
|
6
|
+
import { type ChartsLegendSlotExtension } from "../ChartsLegend/index.js";
|
|
7
|
+
import { type ChartsOverlayProps } from "../ChartsOverlay/index.js";
|
|
8
|
+
import { type ChartContainerProps } from "../ChartContainer/index.js";
|
|
9
|
+
import { type AreaPlotProps } from "./AreaPlot.js";
|
|
10
10
|
import type { LineChartProps } from "./LineChart.js";
|
|
11
|
-
import { LineHighlightPlotProps } from "./LineHighlightPlot.js";
|
|
12
|
-
import { LinePlotProps } from "./LinePlot.js";
|
|
13
|
-
import { MarkPlotProps } from "./MarkPlot.js";
|
|
11
|
+
import { type LineHighlightPlotProps } from "./LineHighlightPlot.js";
|
|
12
|
+
import { type LinePlotProps } from "./LinePlot.js";
|
|
13
|
+
import { type MarkPlotProps } from "./MarkPlot.js";
|
|
14
14
|
import type { ChartsWrapperProps } from "../ChartsWrapper/index.js";
|
|
15
|
-
import { LineChartPluginSignatures } from "./LineChart.plugins.js";
|
|
15
|
+
import { type LineChartPluginSignatures } from "./LineChart.plugins.js";
|
|
16
16
|
/**
|
|
17
17
|
* A helper function that extracts LineChartProps from the input props
|
|
18
18
|
* and returns an object with props for the children components of LineChart.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ComputedAxisConfig } from "../internals/plugins/featurePlugins/useChartCartesianAxis/index.js";
|
|
2
|
-
import { ChartsXAxisProps, ChartsYAxisProps } from "../models/index.js";
|
|
3
|
-
import { SeriesId } from "../models/seriesType/common.js";
|
|
1
|
+
import { type ComputedAxisConfig } from "../internals/plugins/featurePlugins/useChartCartesianAxis/index.js";
|
|
2
|
+
import { type ChartsXAxisProps, type ChartsYAxisProps } from "../models/index.js";
|
|
3
|
+
import { type SeriesId } from "../models/seriesType/common.js";
|
|
4
4
|
interface LinePlotDataPoint {
|
|
5
5
|
d: string;
|
|
6
6
|
seriesId: SeriesId;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { type SeriesId } from "../models/seriesType/common.js";
|
|
2
|
+
import { type ComputedAxisConfig } from "../internals/plugins/featurePlugins/useChartCartesianAxis/index.js";
|
|
3
|
+
import { type ChartsXAxisProps, type ChartsYAxisProps } from "../models/index.js";
|
|
4
|
+
import { type AxisId } from "../models/axis.js";
|
|
5
|
+
export interface MarkPlotDataPoint {
|
|
6
|
+
x: number;
|
|
7
|
+
y: number;
|
|
8
|
+
index: number;
|
|
9
|
+
color: string;
|
|
10
|
+
}
|
|
11
|
+
export interface MarkPlotSeriesData {
|
|
12
|
+
seriesId: SeriesId;
|
|
13
|
+
clipId: string;
|
|
14
|
+
shape: 'circle' | 'cross' | 'diamond' | 'square' | 'star' | 'triangle' | 'wye';
|
|
15
|
+
xAxisId: AxisId;
|
|
16
|
+
marks: MarkPlotDataPoint[];
|
|
17
|
+
}
|
|
18
|
+
export declare function useMarkPlotData(xAxes: ComputedAxisConfig<ChartsXAxisProps>, yAxes: ComputedAxisConfig<ChartsYAxisProps>): MarkPlotSeriesData[];
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { useChartId } from "../hooks/useChartId.js";
|
|
3
|
+
import { getValueToPositionMapper, useLineSeriesContext, useXAxes, useYAxes } from "../hooks/index.js";
|
|
4
|
+
import { cleanId } from "../internals/cleanId.js";
|
|
5
|
+
import { DEFAULT_X_AXIS_KEY } from "../constants/index.js";
|
|
6
|
+
import getColor from "./seriesConfig/getColor.js";
|
|
7
|
+
import { useChartContext } from "../context/ChartProvider/index.js";
|
|
8
|
+
export function useMarkPlotData(xAxes, yAxes) {
|
|
9
|
+
const seriesData = useLineSeriesContext();
|
|
10
|
+
const defaultXAxisId = useXAxes().xAxisIds[0];
|
|
11
|
+
const defaultYAxisId = useYAxes().yAxisIds[0];
|
|
12
|
+
const chartId = useChartId();
|
|
13
|
+
const {
|
|
14
|
+
instance
|
|
15
|
+
} = useChartContext();
|
|
16
|
+
const allData = React.useMemo(() => {
|
|
17
|
+
if (seriesData === undefined) {
|
|
18
|
+
return [];
|
|
19
|
+
}
|
|
20
|
+
const {
|
|
21
|
+
series,
|
|
22
|
+
stackingGroups
|
|
23
|
+
} = seriesData;
|
|
24
|
+
const markPlotData = [];
|
|
25
|
+
for (const stackingGroup of stackingGroups) {
|
|
26
|
+
const groupIds = stackingGroup.ids;
|
|
27
|
+
for (const seriesId of groupIds) {
|
|
28
|
+
const {
|
|
29
|
+
xAxisId = defaultXAxisId,
|
|
30
|
+
yAxisId = defaultYAxisId,
|
|
31
|
+
stackedData,
|
|
32
|
+
data,
|
|
33
|
+
showMark = true,
|
|
34
|
+
shape = 'circle'
|
|
35
|
+
} = series[seriesId];
|
|
36
|
+
if (showMark === false) {
|
|
37
|
+
continue;
|
|
38
|
+
}
|
|
39
|
+
if (!(xAxisId in xAxes) || !(yAxisId in yAxes)) {
|
|
40
|
+
continue;
|
|
41
|
+
}
|
|
42
|
+
const xScale = getValueToPositionMapper(xAxes[xAxisId].scale);
|
|
43
|
+
const yScale = yAxes[yAxisId].scale;
|
|
44
|
+
const xData = xAxes[xAxisId].data;
|
|
45
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
46
|
+
if (xData === undefined) {
|
|
47
|
+
throw new Error(`MUI X Charts: ${xAxisId === DEFAULT_X_AXIS_KEY ? 'The first `xAxis`' : `The x-axis with id "${xAxisId}"`} should have data property to be able to display a line plot.`);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
const clipId = cleanId(`${chartId}-${seriesId}-line-clip`);
|
|
51
|
+
const colorGetter = getColor(series[seriesId], xAxes[xAxisId], yAxes[yAxisId]);
|
|
52
|
+
const marks = [];
|
|
53
|
+
if (xData) {
|
|
54
|
+
for (let index = 0; index < xData.length; index += 1) {
|
|
55
|
+
const x = xData[index];
|
|
56
|
+
const value = data[index] == null ? null : stackedData[index][1];
|
|
57
|
+
if (value === null) {
|
|
58
|
+
continue;
|
|
59
|
+
}
|
|
60
|
+
const y = yScale(value);
|
|
61
|
+
const xPos = xScale(x);
|
|
62
|
+
if (!instance.isPointInside(xPos, y)) {
|
|
63
|
+
continue;
|
|
64
|
+
}
|
|
65
|
+
if (showMark !== true) {
|
|
66
|
+
const shouldInclude = showMark({
|
|
67
|
+
x: xPos,
|
|
68
|
+
y,
|
|
69
|
+
index,
|
|
70
|
+
position: x,
|
|
71
|
+
value
|
|
72
|
+
});
|
|
73
|
+
if (!shouldInclude) {
|
|
74
|
+
continue;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
marks.push({
|
|
78
|
+
x: xPos,
|
|
79
|
+
y,
|
|
80
|
+
index,
|
|
81
|
+
color: colorGetter(index)
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
markPlotData.push({
|
|
86
|
+
seriesId,
|
|
87
|
+
clipId,
|
|
88
|
+
shape,
|
|
89
|
+
xAxisId,
|
|
90
|
+
marks
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
return markPlotData;
|
|
95
|
+
}, [seriesData, defaultXAxisId, defaultYAxisId, chartId, xAxes, yAxes, instance]);
|
|
96
|
+
return allData;
|
|
97
|
+
}
|
package/esm/PieChart/PieArc.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
4
4
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
5
|
-
const _excluded = ["id", "classes", "color", "startAngle", "endAngle", "paddingAngle", "arcLabelRadius", "innerRadius", "outerRadius", "cornerRadius", "formattedArcLabel", "isHighlighted", "isFaded", "
|
|
5
|
+
const _excluded = ["id", "classes", "color", "startAngle", "endAngle", "paddingAngle", "arcLabelRadius", "innerRadius", "outerRadius", "cornerRadius", "formattedArcLabel", "isHighlighted", "isFaded", "skipAnimation"];
|
|
6
6
|
import * as React from 'react';
|
|
7
7
|
import PropTypes from 'prop-types';
|
|
8
8
|
import composeClasses from '@mui/utils/composeClasses';
|
|
@@ -42,6 +42,9 @@ const PieArcLabelRoot = styled('text', {
|
|
|
42
42
|
animationName: 'animate-opacity',
|
|
43
43
|
animationDuration: '0s',
|
|
44
44
|
animationTimingFunction: ANIMATION_TIMING_FUNCTION,
|
|
45
|
+
transitionDuration: `${ANIMATION_DURATION_MS}ms`,
|
|
46
|
+
transitionProperty: 'opacity',
|
|
47
|
+
transitionTimingFunction: ANIMATION_TIMING_FUNCTION,
|
|
45
48
|
[`&.${pieArcLabelClasses.animate}`]: {
|
|
46
49
|
animationDuration: `${ANIMATION_DURATION_MS}ms`
|
|
47
50
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { ComputedPieRadius, DefaultizedPieSeriesType } from "../models/seriesType/pie.js";
|
|
3
|
-
import { PieArcLabelProps } from "./PieArcLabel.js";
|
|
2
|
+
import { type ComputedPieRadius, type DefaultizedPieSeriesType } from "../models/seriesType/pie.js";
|
|
3
|
+
import { type PieArcLabelProps } from "./PieArcLabel.js";
|
|
4
4
|
export interface PieArcLabelPlotSlots {
|
|
5
5
|
pieArcLabel?: React.JSXElementConstructor<PieArcLabelProps>;
|
|
6
6
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { PieArcProps } from "./PieArc.js";
|
|
3
|
-
import { ComputedPieRadius, DefaultizedPieSeriesType, DefaultizedPieValueType, PieItemIdentifier } from "../models/seriesType/pie.js";
|
|
2
|
+
import { type PieArcProps } from "./PieArc.js";
|
|
3
|
+
import { type ComputedPieRadius, type DefaultizedPieSeriesType, type DefaultizedPieValueType, type PieItemIdentifier } from "../models/seriesType/pie.js";
|
|
4
4
|
export interface PieArcPlotSlots {
|
|
5
5
|
pieArc?: React.JSXElementConstructor<PieArcProps>;
|
|
6
6
|
}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { MakeOptional } from '@mui/x-internals/types';
|
|
3
|
-
import { ChartsToolbarSlotProps, ChartsToolbarSlots } from "../Toolbar/index.js";
|
|
4
|
-
import { ChartsSlotProps, ChartsSlots } from "../internals/material/index.js";
|
|
5
|
-
import { ChartContainerProps } from "../ChartContainer/index.js";
|
|
6
|
-
import { PieSeriesType } from "../models/seriesType/index.js";
|
|
7
|
-
import { ChartsTooltipSlots, ChartsTooltipSlotProps } from "../ChartsTooltip/ChartTooltip.types.js";
|
|
8
|
-
import { ChartsLegendSlotProps, ChartsLegendSlots } from "../ChartsLegend/index.js";
|
|
9
|
-
import { PiePlotProps, PiePlotSlotProps, PiePlotSlots } from "./PiePlot.js";
|
|
10
|
-
import { PieValueType } from "../models/seriesType/pie.js";
|
|
11
|
-
import { ChartsOverlayProps, ChartsOverlaySlotProps, ChartsOverlaySlots } from "../ChartsOverlay/index.js";
|
|
12
|
-
import { PieChartPluginSignatures } from "./PieChart.plugins.js";
|
|
2
|
+
import { type MakeOptional } from '@mui/x-internals/types';
|
|
3
|
+
import { type ChartsToolbarSlotProps, type ChartsToolbarSlots } from "../Toolbar/index.js";
|
|
4
|
+
import { type ChartsSlotProps, type ChartsSlots } from "../internals/material/index.js";
|
|
5
|
+
import { type ChartContainerProps } from "../ChartContainer/index.js";
|
|
6
|
+
import { type PieSeriesType } from "../models/seriesType/index.js";
|
|
7
|
+
import { type ChartsTooltipSlots, type ChartsTooltipSlotProps } from "../ChartsTooltip/ChartTooltip.types.js";
|
|
8
|
+
import { type ChartsLegendSlotProps, type ChartsLegendSlots } from "../ChartsLegend/index.js";
|
|
9
|
+
import { type PiePlotProps, type PiePlotSlotProps, type PiePlotSlots } from "./PiePlot.js";
|
|
10
|
+
import { type PieValueType } from "../models/seriesType/pie.js";
|
|
11
|
+
import { type ChartsOverlayProps, type ChartsOverlaySlotProps, type ChartsOverlaySlots } from "../ChartsOverlay/index.js";
|
|
12
|
+
import { type PieChartPluginSignatures } from "./PieChart.plugins.js";
|
|
13
13
|
export interface PieChartSlots extends PiePlotSlots, ChartsLegendSlots, ChartsOverlaySlots, ChartsTooltipSlots, ChartsToolbarSlots, Partial<ChartsSlots> {}
|
|
14
14
|
export interface PieChartSlotProps extends PiePlotSlotProps, ChartsLegendSlotProps, ChartsOverlaySlotProps, ChartsTooltipSlotProps, ChartsToolbarSlotProps, Partial<ChartsSlotProps> {}
|
|
15
15
|
export type PieSeries = MakeOptional<PieSeriesType<MakeOptional<PieValueType, 'id'>>, 'type'>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { UseChartInteractionSignature } from "../internals/plugins/featurePlugins/useChartInteraction/index.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
1
|
+
import { type UseChartInteractionSignature } from "../internals/plugins/featurePlugins/useChartInteraction/index.js";
|
|
2
|
+
import { type UseChartTooltipSignature } from "../internals/plugins/featurePlugins/useChartTooltip/index.js";
|
|
3
|
+
import { type UseChartHighlightSignature } from "../internals/plugins/featurePlugins/useChartHighlight/index.js";
|
|
4
|
+
import { type UseChartKeyboardNavigationSignature } from "../internals/plugins/featurePlugins/useChartKeyboardNavigation/index.js";
|
|
5
|
+
import { type ConvertSignaturesIntoPlugins } from "../internals/plugins/models/helpers.js";
|
|
6
|
+
export type PieChartPluginSignatures = [UseChartTooltipSignature, UseChartInteractionSignature, UseChartHighlightSignature, UseChartKeyboardNavigationSignature];
|
|
6
7
|
export declare const PIE_CHART_PLUGINS: ConvertSignaturesIntoPlugins<PieChartPluginSignatures>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { useChartInteraction } from "../internals/plugins/featurePlugins/useChartInteraction/index.js";
|
|
2
|
+
import { useChartTooltip } from "../internals/plugins/featurePlugins/useChartTooltip/index.js";
|
|
2
3
|
import { useChartHighlight } from "../internals/plugins/featurePlugins/useChartHighlight/index.js";
|
|
3
4
|
import { useChartKeyboardNavigation } from "../internals/plugins/featurePlugins/useChartKeyboardNavigation/index.js";
|
|
4
|
-
export const PIE_CHART_PLUGINS = [useChartInteraction, useChartHighlight, useChartKeyboardNavigation];
|
|
5
|
+
export const PIE_CHART_PLUGINS = [useChartTooltip, useChartInteraction, useChartHighlight, useChartKeyboardNavigation];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { PieArcPlotProps, PieArcPlotSlotProps, PieArcPlotSlots } from "./PieArcPlot.js";
|
|
2
|
-
import { PieArcLabelPlotSlots, PieArcLabelPlotSlotProps } from "./PieArcLabelPlot.js";
|
|
1
|
+
import { type PieArcPlotProps, type PieArcPlotSlotProps, type PieArcPlotSlots } from "./PieArcPlot.js";
|
|
2
|
+
import { type PieArcLabelPlotSlots, type PieArcLabelPlotSlotProps } from "./PieArcLabelPlot.js";
|
|
3
3
|
export interface PiePlotSlots extends PieArcPlotSlots, PieArcLabelPlotSlots {}
|
|
4
4
|
export interface PiePlotSlotProps extends PieArcPlotSlotProps, PieArcLabelPlotSlotProps {}
|
|
5
5
|
export interface PiePlotProps extends Pick<PieArcPlotProps, 'skipAnimation' | 'onItemClick'> {
|