@mui/x-charts 8.21.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 +14 -14
- package/BarChart/BarChart.js +22 -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 +2 -2
- package/BarChart/BarLabel/BarLabelItem.d.ts +4 -4
- package/BarChart/BarLabel/BarLabelPlot.d.ts +4 -4
- package/BarChart/BarLabel/getBarLabel.d.ts +3 -3
- package/BarChart/BarPlot.d.ts +4 -4
- package/BarChart/BarPlot.js +4 -1
- 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 +2 -2
- 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 +1 -1
- 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/useBarChartProps.d.ts +9 -9
- package/BarChart/useBarPlotData.d.ts +5 -20
- package/BarChart/useBarPlotData.js +2 -46
- package/CHANGELOG.md +137 -1
- package/ChartContainer/ChartContainer.d.ts +5 -5
- package/ChartContainer/ChartContainer.js +30 -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 +2 -1
- package/ChartsGrid/ChartsVerticalGrid.d.ts +2 -2
- package/ChartsGrid/ChartsVerticalGrid.js +2 -1
- 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 +3 -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 +4 -2
- package/ChartsXAxis/ChartsXAxis.d.ts +1 -1
- package/ChartsXAxis/ChartsXAxisImpl.d.ts +2 -2
- package/ChartsXAxis/ChartsXAxisImpl.js +7 -3
- package/ChartsXAxis/getVisibleLabels.d.ts +2 -2
- package/ChartsXAxis/shortenLabels.d.ts +3 -3
- package/ChartsXAxis/useAxisTicksProps.d.ts +20 -2
- 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 +4 -2
- package/ChartsYAxis/ChartsYAxis.d.ts +1 -1
- package/ChartsYAxis/ChartsYAxisImpl.d.ts +2 -2
- package/ChartsYAxis/ChartsYAxisImpl.js +7 -3
- package/ChartsYAxis/shortenLabels.d.ts +3 -3
- package/ChartsYAxis/useAxisTicksProps.d.ts +20 -2
- 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 +22 -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 +2 -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/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 +22 -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 +22 -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 +14 -14
- package/esm/BarChart/BarChart.js +22 -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 +2 -2
- package/esm/BarChart/BarLabel/BarLabelItem.d.ts +4 -4
- package/esm/BarChart/BarLabel/BarLabelPlot.d.ts +4 -4
- package/esm/BarChart/BarLabel/getBarLabel.d.ts +3 -3
- package/esm/BarChart/BarPlot.d.ts +4 -4
- package/esm/BarChart/BarPlot.js +4 -1
- 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 +2 -2
- 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 +1 -1
- 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/useBarChartProps.d.ts +9 -9
- package/esm/BarChart/useBarPlotData.d.ts +5 -20
- package/esm/BarChart/useBarPlotData.js +1 -44
- package/esm/ChartContainer/ChartContainer.d.ts +5 -5
- package/esm/ChartContainer/ChartContainer.js +30 -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 +2 -1
- package/esm/ChartsGrid/ChartsVerticalGrid.d.ts +2 -2
- package/esm/ChartsGrid/ChartsVerticalGrid.js +2 -1
- 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 +2 -1
- 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 +4 -2
- package/esm/ChartsXAxis/ChartsXAxis.d.ts +1 -1
- package/esm/ChartsXAxis/ChartsXAxisImpl.d.ts +2 -2
- package/esm/ChartsXAxis/ChartsXAxisImpl.js +7 -3
- package/esm/ChartsXAxis/getVisibleLabels.d.ts +2 -2
- package/esm/ChartsXAxis/shortenLabels.d.ts +3 -3
- package/esm/ChartsXAxis/useAxisTicksProps.d.ts +20 -2
- 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 +4 -2
- package/esm/ChartsYAxis/ChartsYAxis.d.ts +1 -1
- package/esm/ChartsYAxis/ChartsYAxisImpl.d.ts +2 -2
- package/esm/ChartsYAxis/ChartsYAxisImpl.js +7 -3
- package/esm/ChartsYAxis/shortenLabels.d.ts +3 -3
- package/esm/ChartsYAxis/useAxisTicksProps.d.ts +20 -2
- 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 +22 -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 +2 -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/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 +22 -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 +22 -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/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 +9 -7
- package/esm/hooks/useTicks.js +94 -7
- 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 +1 -1
- package/esm/internals/findMinMax.d.ts +7 -0
- package/esm/internals/findMinMax.js +7 -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 +1 -1
- package/esm/internals/index.d.ts +1 -1
- package/esm/internals/index.js +1 -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/processSeries.d.ts +5 -5
- 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 +2 -2
- package/esm/internals/plugins/corePlugins/useChartSeries/useChartSeries.types.d.ts +5 -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/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/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 +3 -3
- package/esm/internals/plugins/featurePlugins/useChartClosestPoint/useChartClosestPoint.d.ts +2 -2
- package/esm/internals/plugins/featurePlugins/useChartClosestPoint/useChartClosestPoint.js +10 -6
- 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.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 +2 -2
- 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/{useChartInteraction → useChartTooltip}/useChartTooltip.selectors.js +6 -3
- 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/seriesConfig.types.d.ts +4 -4
- package/esm/internals/plugins/models/seriesConfig/seriesLayout.types.d.ts +2 -2
- package/esm/internals/plugins/models/seriesConfig/tooltipGetter.types.d.ts +7 -7
- package/esm/internals/plugins/models/seriesConfig/tooltipItemPositionGetter.types.d.ts +6 -6
- 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 +5 -5
- 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 +15 -6
- package/esm/models/index.d.ts +2 -1
- package/esm/models/seriesType/bar.d.ts +3 -3
- package/esm/models/seriesType/common.d.ts +5 -2
- package/esm/models/seriesType/config.d.ts +8 -8
- package/esm/models/seriesType/index.d.ts +2 -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/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 +9 -7
- package/hooks/useTicks.js +95 -8
- 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 +1 -1
- package/internals/findMinMax.d.ts +7 -0
- package/internals/findMinMax.js +7 -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 +1 -1
- package/internals/index.d.ts +1 -1
- package/internals/index.js +12 -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/processSeries.d.ts +5 -5
- 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 +2 -2
- package/internals/plugins/corePlugins/useChartSeries/useChartSeries.types.d.ts +5 -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/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/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 +3 -3
- package/internals/plugins/featurePlugins/useChartClosestPoint/useChartClosestPoint.d.ts +2 -2
- package/internals/plugins/featurePlugins/useChartClosestPoint/useChartClosestPoint.js +10 -6
- 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.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 +2 -2
- 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/{useChartInteraction → useChartTooltip}/useChartTooltip.selectors.js +7 -4
- 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/seriesConfig.types.d.ts +4 -4
- package/internals/plugins/models/seriesConfig/seriesLayout.types.d.ts +2 -2
- package/internals/plugins/models/seriesConfig/tooltipGetter.types.d.ts +7 -7
- package/internals/plugins/models/seriesConfig/tooltipItemPositionGetter.types.d.ts +6 -6
- 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 +5 -5
- 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 +15 -6
- package/models/index.d.ts +2 -1
- package/models/seriesType/bar.d.ts +3 -3
- package/models/seriesType/common.d.ts +5 -2
- package/models/seriesType/config.d.ts +8 -8
- package/models/seriesType/index.d.ts +2 -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 +3 -4
- 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/LineChart/FocusedMark.d.ts +0 -1
- package/RadarChart/seriesConfig/formatter.d.ts +0 -3
- package/RadarChart/seriesConfig/formatter.js +0 -18
- 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/internals/defaultizeValueFormatter.d.ts +0 -6
- package/internals/defaultizeValueFormatter.js +0 -17
- package/internals/plugins/featurePlugins/useChartInteraction/useChartTooltip.selectors.d.ts +0 -12
|
@@ -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'> {
|
package/esm/PieChart/PiePlot.js
CHANGED
|
@@ -3,11 +3,8 @@
|
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import { PieArcPlot } from "./PieArcPlot.js";
|
|
5
5
|
import { PieArcLabelPlot } from "./PieArcLabelPlot.js";
|
|
6
|
-
import {
|
|
7
|
-
import { getPieCoordinates } from "./getPieCoordinates.js";
|
|
8
|
-
import { usePieSeriesContext } from "../hooks/usePieSeries.js";
|
|
6
|
+
import { usePieSeriesContext, usePieSeriesLayout } from "../hooks/usePieSeries.js";
|
|
9
7
|
import { useSkipAnimation } from "../hooks/useSkipAnimation.js";
|
|
10
|
-
import { useDrawingArea } from "../hooks/index.js";
|
|
11
8
|
import { useUtilityClasses } from "./pieClasses.js";
|
|
12
9
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
10
|
/**
|
|
@@ -28,12 +25,7 @@ function PiePlot(props) {
|
|
|
28
25
|
onItemClick
|
|
29
26
|
} = props;
|
|
30
27
|
const seriesData = usePieSeriesContext();
|
|
31
|
-
const
|
|
32
|
-
left,
|
|
33
|
-
top,
|
|
34
|
-
width,
|
|
35
|
-
height
|
|
36
|
-
} = useDrawingArea();
|
|
28
|
+
const seriesLayout = usePieSeriesLayout();
|
|
37
29
|
const skipAnimation = useSkipAnimation(inSkipAnimation);
|
|
38
30
|
const classes = useUtilityClasses();
|
|
39
31
|
if (seriesData === undefined) {
|
|
@@ -46,36 +38,19 @@ function PiePlot(props) {
|
|
|
46
38
|
return /*#__PURE__*/_jsxs("g", {
|
|
47
39
|
children: [seriesOrder.map(seriesId => {
|
|
48
40
|
const {
|
|
49
|
-
innerRadius: innerRadiusParam,
|
|
50
|
-
outerRadius: outerRadiusParam,
|
|
51
41
|
cornerRadius,
|
|
52
42
|
paddingAngle,
|
|
53
43
|
data,
|
|
54
|
-
cx: cxParam,
|
|
55
|
-
cy: cyParam,
|
|
56
44
|
highlighted,
|
|
57
45
|
faded
|
|
58
46
|
} = series[seriesId];
|
|
59
|
-
const {
|
|
60
|
-
cx,
|
|
61
|
-
cy,
|
|
62
|
-
availableRadius
|
|
63
|
-
} = getPieCoordinates({
|
|
64
|
-
cx: cxParam,
|
|
65
|
-
cy: cyParam
|
|
66
|
-
}, {
|
|
67
|
-
width,
|
|
68
|
-
height
|
|
69
|
-
});
|
|
70
|
-
const outerRadius = getPercentageValue(outerRadiusParam ?? availableRadius, availableRadius);
|
|
71
|
-
const innerRadius = getPercentageValue(innerRadiusParam ?? 0, availableRadius);
|
|
72
47
|
return /*#__PURE__*/_jsx("g", {
|
|
73
48
|
className: classes.series,
|
|
74
|
-
transform: `translate(${
|
|
49
|
+
transform: `translate(${seriesLayout[seriesId].center.x}, ${seriesLayout[seriesId].center.y})`,
|
|
75
50
|
"data-series": seriesId,
|
|
76
51
|
children: /*#__PURE__*/_jsx(PieArcPlot, {
|
|
77
|
-
innerRadius:
|
|
78
|
-
outerRadius:
|
|
52
|
+
innerRadius: seriesLayout[seriesId].radius.inner,
|
|
53
|
+
outerRadius: seriesLayout[seriesId].radius.outer,
|
|
79
54
|
cornerRadius: cornerRadius,
|
|
80
55
|
paddingAngle: paddingAngle,
|
|
81
56
|
id: seriesId,
|
|
@@ -90,39 +65,20 @@ function PiePlot(props) {
|
|
|
90
65
|
}, seriesId);
|
|
91
66
|
}), seriesOrder.map(seriesId => {
|
|
92
67
|
const {
|
|
93
|
-
innerRadius: innerRadiusParam,
|
|
94
|
-
outerRadius: outerRadiusParam,
|
|
95
|
-
arcLabelRadius: arcLabelRadiusParam,
|
|
96
68
|
cornerRadius,
|
|
97
69
|
paddingAngle,
|
|
98
70
|
arcLabel,
|
|
99
71
|
arcLabelMinAngle,
|
|
100
|
-
data
|
|
101
|
-
cx: cxParam,
|
|
102
|
-
cy: cyParam
|
|
72
|
+
data
|
|
103
73
|
} = series[seriesId];
|
|
104
|
-
const {
|
|
105
|
-
cx,
|
|
106
|
-
cy,
|
|
107
|
-
availableRadius
|
|
108
|
-
} = getPieCoordinates({
|
|
109
|
-
cx: cxParam,
|
|
110
|
-
cy: cyParam
|
|
111
|
-
}, {
|
|
112
|
-
width,
|
|
113
|
-
height
|
|
114
|
-
});
|
|
115
|
-
const outerRadius = getPercentageValue(outerRadiusParam ?? availableRadius, availableRadius);
|
|
116
|
-
const innerRadius = getPercentageValue(innerRadiusParam ?? 0, availableRadius);
|
|
117
|
-
const arcLabelRadius = arcLabelRadiusParam === undefined ? (outerRadius + innerRadius) / 2 : getPercentageValue(arcLabelRadiusParam, availableRadius);
|
|
118
74
|
return /*#__PURE__*/_jsx("g", {
|
|
119
75
|
className: classes.seriesLabels,
|
|
120
|
-
transform: `translate(${
|
|
76
|
+
transform: `translate(${seriesLayout[seriesId].center.x}, ${seriesLayout[seriesId].center.y})`,
|
|
121
77
|
"data-series": seriesId,
|
|
122
78
|
children: /*#__PURE__*/_jsx(PieArcLabelPlot, {
|
|
123
|
-
innerRadius:
|
|
124
|
-
outerRadius:
|
|
125
|
-
arcLabelRadius:
|
|
79
|
+
innerRadius: seriesLayout[seriesId].radius.inner,
|
|
80
|
+
outerRadius: seriesLayout[seriesId].radius.outer,
|
|
81
|
+
arcLabelRadius: seriesLayout[seriesId].radius.label,
|
|
126
82
|
cornerRadius: cornerRadius,
|
|
127
83
|
paddingAngle: paddingAngle,
|
|
128
84
|
id: seriesId,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ComputedPieRadius, DefaultizedPieSeriesType, DefaultizedPieValueType } from "../../models/seriesType/pie.js";
|
|
1
|
+
import { type ComputedPieRadius, type DefaultizedPieSeriesType, type DefaultizedPieValueType } from "../../models/seriesType/pie.js";
|
|
2
2
|
export interface AnimatedObject {
|
|
3
3
|
innerRadius: number;
|
|
4
4
|
outerRadius: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ChartDrawingArea } from "../hooks/index.js";
|
|
2
|
-
import { DefaultizedPieSeriesType } from "../models/seriesType/pie.js";
|
|
1
|
+
import { type ChartDrawingArea } from "../hooks/index.js";
|
|
2
|
+
import { type DefaultizedPieSeriesType } from "../models/seriesType/pie.js";
|
|
3
3
|
export declare function getPieCoordinates(series: Pick<DefaultizedPieSeriesType, 'cx' | 'cy'>, drawing: Pick<ChartDrawingArea, 'width' | 'height'>): {
|
|
4
4
|
cx: number;
|
|
5
5
|
cy: number;
|
|
@@ -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 pieSeriesConfig: ChartSeriesTypeConfig<'pie'>;
|
|
@@ -2,11 +2,13 @@ import seriesProcessor from "./seriesProcessor.js";
|
|
|
2
2
|
import getColor from "./getColor.js";
|
|
3
3
|
import legendGetter from "./legend.js";
|
|
4
4
|
import tooltipGetter from "./tooltip.js";
|
|
5
|
+
import seriesLayout from "./seriesLayout.js";
|
|
5
6
|
import getSeriesWithDefaultValues from "./getSeriesWithDefaultValues.js";
|
|
6
7
|
import tooltipItemPositionGetter from "./tooltipPosition.js";
|
|
7
8
|
export const pieSeriesConfig = {
|
|
8
9
|
colorProcessor: getColor,
|
|
9
10
|
seriesProcessor,
|
|
11
|
+
seriesLayout,
|
|
10
12
|
legendGetter,
|
|
11
13
|
tooltipGetter,
|
|
12
14
|
tooltipItemPositionGetter,
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { getPercentageValue } from "../../internals/getPercentageValue.js";
|
|
2
|
+
import { getPieCoordinates } from "../getPieCoordinates.js";
|
|
3
|
+
const seriesLayout = (series, drawingArea) => {
|
|
4
|
+
const seriesLayoutRecord = {};
|
|
5
|
+
for (const seriesId of series.seriesOrder) {
|
|
6
|
+
const {
|
|
7
|
+
innerRadius,
|
|
8
|
+
outerRadius,
|
|
9
|
+
arcLabelRadius,
|
|
10
|
+
cx: cxParam,
|
|
11
|
+
cy: cyParam
|
|
12
|
+
} = series.series[seriesId];
|
|
13
|
+
const {
|
|
14
|
+
cx,
|
|
15
|
+
cy,
|
|
16
|
+
availableRadius
|
|
17
|
+
} = getPieCoordinates({
|
|
18
|
+
cx: cxParam,
|
|
19
|
+
cy: cyParam
|
|
20
|
+
}, {
|
|
21
|
+
width: drawingArea.width,
|
|
22
|
+
height: drawingArea.height
|
|
23
|
+
});
|
|
24
|
+
const outer = getPercentageValue(outerRadius ?? availableRadius, availableRadius);
|
|
25
|
+
const inner = getPercentageValue(innerRadius ?? 0, availableRadius);
|
|
26
|
+
const label = arcLabelRadius === undefined ? (inner + outer) / 2 : getPercentageValue(arcLabelRadius, availableRadius);
|
|
27
|
+
seriesLayoutRecord[seriesId] = {
|
|
28
|
+
radius: {
|
|
29
|
+
available: availableRadius,
|
|
30
|
+
inner,
|
|
31
|
+
outer,
|
|
32
|
+
label
|
|
33
|
+
},
|
|
34
|
+
center: {
|
|
35
|
+
x: drawingArea.left + cx,
|
|
36
|
+
y: drawingArea.top + cy
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
return seriesLayoutRecord;
|
|
41
|
+
};
|
|
42
|
+
export default seriesLayout;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { UseRadarAxisParams } from "./useRadarAxis.js";
|
|
3
|
-
import { RadarAxisClasses } from "./radarAxisClasses.js";
|
|
2
|
+
import { type UseRadarAxisParams } from "./useRadarAxis.js";
|
|
3
|
+
import { type RadarAxisClasses } from "./radarAxisClasses.js";
|
|
4
4
|
export interface RadarAxisProps extends UseRadarAxisParams {
|
|
5
5
|
/**
|
|
6
6
|
* Defines how label align with the axis.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { RadarAxisProps } from "./RadarAxis.js";
|
|
1
|
+
import { type RadarAxisProps } from "./RadarAxis.js";
|
|
2
2
|
interface GetLabelAttributesParams extends Required<Pick<RadarAxisProps, 'labelOrientation'>>, Partial<Pick<RadarAxisProps, 'textAnchor' | 'dominantBaseline'>> {
|
|
3
3
|
x: number;
|
|
4
4
|
y: number;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { UseChartPolarAxisSignature } from "../../internals/plugins/featurePlugins/useChartPolarAxis/index.js";
|
|
2
|
-
import { AxisId } from "../../models/axis.js";
|
|
3
|
-
import { DefaultizedRadarSeriesType } from "../../models/seriesType/radar.js";
|
|
4
|
-
import { ChartInstance } from "../../internals/plugins/models/index.js";
|
|
1
|
+
import { type UseChartPolarAxisSignature } from "../../internals/plugins/featurePlugins/useChartPolarAxis/index.js";
|
|
2
|
+
import { type AxisId } from "../../models/axis.js";
|
|
3
|
+
import { type DefaultizedRadarSeriesType } from "../../models/seriesType/radar.js";
|
|
4
|
+
import { type ChartInstance } from "../../internals/plugins/models/index.js";
|
|
5
5
|
interface UseRadarAxisHighlightReturnValue {
|
|
6
6
|
/**
|
|
7
7
|
* The radar center.
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { ChartsLegendSlotProps, ChartsLegendSlots } from "../ChartsLegend/index.js";
|
|
3
|
-
import { ChartsOverlayProps, ChartsOverlaySlotProps, ChartsOverlaySlots } from "../ChartsOverlay/ChartsOverlay.js";
|
|
4
|
-
import { ChartsSurfaceProps } from "../ChartsSurface/index.js";
|
|
5
|
-
import { ChartsWrapperProps } from "../ChartsWrapper/index.js";
|
|
6
|
-
import { RadarGridProps } from "./RadarGrid/index.js";
|
|
7
|
-
import { RadarDataProviderProps } from "./RadarDataProvider/RadarDataProvider.js";
|
|
8
|
-
import { RadarSeriesPlotProps } from "./RadarSeriesPlot/index.js";
|
|
9
|
-
import { RadarAxisHighlightProps } from "./RadarAxisHighlight/index.js";
|
|
10
|
-
import { ChartsTooltipSlotProps, ChartsTooltipSlots } from "../ChartsTooltip/index.js";
|
|
11
|
-
import { ChartsSlotProps, ChartsSlots } from "../internals/material/index.js";
|
|
12
|
-
import { ChartsToolbarSlotProps, ChartsToolbarSlots } from "../Toolbar/index.js";
|
|
2
|
+
import { type ChartsLegendSlotProps, type ChartsLegendSlots } from "../ChartsLegend/index.js";
|
|
3
|
+
import { type ChartsOverlayProps, type ChartsOverlaySlotProps, type ChartsOverlaySlots } from "../ChartsOverlay/ChartsOverlay.js";
|
|
4
|
+
import { type ChartsSurfaceProps } from "../ChartsSurface/index.js";
|
|
5
|
+
import { type ChartsWrapperProps } from "../ChartsWrapper/index.js";
|
|
6
|
+
import { type RadarGridProps } from "./RadarGrid/index.js";
|
|
7
|
+
import { type RadarDataProviderProps } from "./RadarDataProvider/RadarDataProvider.js";
|
|
8
|
+
import { type RadarSeriesPlotProps } from "./RadarSeriesPlot/index.js";
|
|
9
|
+
import { type RadarAxisHighlightProps } from "./RadarAxisHighlight/index.js";
|
|
10
|
+
import { type ChartsTooltipSlotProps, type ChartsTooltipSlots } from "../ChartsTooltip/index.js";
|
|
11
|
+
import { type ChartsSlotProps, type ChartsSlots } from "../internals/material/index.js";
|
|
12
|
+
import { type ChartsToolbarSlotProps, type ChartsToolbarSlots } from "../Toolbar/index.js";
|
|
13
13
|
export interface RadarChartSlots extends ChartsTooltipSlots, ChartsOverlaySlots, ChartsLegendSlots, ChartsToolbarSlots, Partial<ChartsSlots> {}
|
|
14
14
|
export interface RadarChartSlotProps extends ChartsTooltipSlotProps, ChartsOverlaySlotProps, ChartsLegendSlotProps, ChartsToolbarSlotProps, Partial<ChartsSlotProps> {}
|
|
15
15
|
export interface RadarChartProps extends RadarDataProviderProps, Omit<RadarGridProps, 'classes'>, Omit<Partial<RadarAxisHighlightProps>, 'classes'>, Omit<ChartsOverlayProps, 'slots' | 'slotProps'>, Pick<ChartsWrapperProps, 'sx'>, Omit<ChartsSurfaceProps, 'sx'>, Pick<RadarSeriesPlotProps, 'onAreaClick' | 'onMarkClick'> {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { UseChartPolarAxisSignature } from "../internals/plugins/featurePlugins/useChartPolarAxis/index.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
export
|
|
1
|
+
import { type UseChartPolarAxisSignature } from "../internals/plugins/featurePlugins/useChartPolarAxis/index.js";
|
|
2
|
+
import { type UseChartTooltipSignature } from "../internals/plugins/featurePlugins/useChartTooltip/index.js";
|
|
3
|
+
import { type UseChartInteractionSignature } from "../internals/plugins/featurePlugins/useChartInteraction/index.js";
|
|
4
|
+
import { type UseChartHighlightSignature } from "../internals/plugins/featurePlugins/useChartHighlight/index.js";
|
|
5
|
+
export declare const RADAR_PLUGINS: readonly [import("../internals/index.js").ChartPlugin<UseChartTooltipSignature>, import("../internals/index.js").ChartPlugin<UseChartInteractionSignature>, import("../internals/index.js").ChartPlugin<UseChartPolarAxisSignature<any>>, import("../internals/index.js").ChartPlugin<UseChartHighlightSignature>];
|
|
6
|
+
export type RadarChartPluginSignatures = [UseChartTooltipSignature, UseChartInteractionSignature, UseChartPolarAxisSignature, UseChartHighlightSignature];
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { useChartPolarAxis } from "../internals/plugins/featurePlugins/useChartPolarAxis/index.js";
|
|
2
|
+
import { useChartTooltip } from "../internals/plugins/featurePlugins/useChartTooltip/index.js";
|
|
2
3
|
import { useChartInteraction } from "../internals/plugins/featurePlugins/useChartInteraction/index.js";
|
|
3
4
|
import { useChartHighlight } from "../internals/plugins/featurePlugins/useChartHighlight/index.js";
|
|
4
|
-
export const RADAR_PLUGINS = [useChartInteraction, useChartPolarAxis, useChartHighlight];
|
|
5
|
+
export const RADAR_PLUGINS = [useChartTooltip, useChartInteraction, useChartPolarAxis, useChartHighlight];
|