@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
package/esm/internals/index.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
export * from "./components/ChartsAxesGradients/index.js";
|
|
2
2
|
export * from "../ChartsLabel/ChartsLabelMark.js";
|
|
3
3
|
export * from "./components/NotRendered.js";
|
|
4
|
+
export * from "../BarChart/BarLabel/BarLabelPlot.js";
|
|
5
|
+
export * from "../BarChart/BarClipPath.js";
|
|
4
6
|
export { useSeries } from "../hooks/useSeries.js";
|
|
5
7
|
export { useInteractionItemProps } from "../hooks/useInteractionItemProps.js";
|
|
6
8
|
export { useDrawingArea } from "../hooks/useDrawingArea.js";
|
|
@@ -16,6 +18,7 @@ export { useRadarChartProps } from "../RadarChart/useRadarChartProps.js";
|
|
|
16
18
|
export * from "../ChartContainer/useChartContainerProps.js";
|
|
17
19
|
export * from "../ChartDataProvider/useChartDataProviderProps.js";
|
|
18
20
|
export * from "./seriesSelectorOfType.js";
|
|
21
|
+
export { useSkipAnimation } from "../hooks/useSkipAnimation.js";
|
|
19
22
|
export * from "./plugins/corePlugins/useChartId/index.js";
|
|
20
23
|
export * from "./plugins/corePlugins/useChartSeries/index.js";
|
|
21
24
|
export * from "./plugins/corePlugins/useChartDimensions/index.js";
|
|
@@ -23,6 +26,7 @@ export * from "./plugins/corePlugins/useChartInteractionListener/index.js";
|
|
|
23
26
|
export * from "./plugins/featurePlugins/useChartZAxis/index.js";
|
|
24
27
|
export * from "./plugins/featurePlugins/useChartCartesianAxis/index.js";
|
|
25
28
|
export * from "./plugins/featurePlugins/useChartPolarAxis/index.js";
|
|
29
|
+
export * from "./plugins/featurePlugins/useChartTooltip/index.js";
|
|
26
30
|
export * from "./plugins/featurePlugins/useChartInteraction/index.js";
|
|
27
31
|
export * from "./plugins/featurePlugins/useChartHighlight/index.js";
|
|
28
32
|
export * from "./plugins/featurePlugins/useChartKeyboardNavigation/index.js";
|
|
@@ -39,7 +43,6 @@ export * from "../LineChart/LineChart.plugins.js";
|
|
|
39
43
|
export * from "../ScatterChart/ScatterChart.plugins.js";
|
|
40
44
|
export * from "../RadarChart/RadarChart.plugins.js";
|
|
41
45
|
export * from "../PieChart/PieChart.plugins.js";
|
|
42
|
-
export * from "./defaultizeValueFormatter.js";
|
|
43
46
|
export * from "./configInit.js";
|
|
44
47
|
export * from "./getLabel.js";
|
|
45
48
|
export * from "./getSVGPoint.js";
|
|
@@ -56,6 +59,8 @@ export * from "./dateHelpers.js";
|
|
|
56
59
|
export * from "./invertScale.js";
|
|
57
60
|
export * from "./scaleGuards.js";
|
|
58
61
|
export * from "./findMinMax.js";
|
|
62
|
+
export { checkBarChartScaleErrors } from "../BarChart/checkBarChartScaleErrors.js";
|
|
63
|
+
export { getBandSize } from "./getBandSize.js";
|
|
59
64
|
export { getAxisExtrema } from "./plugins/featurePlugins/useChartCartesianAxis/getAxisExtrema.js";
|
|
60
65
|
export * from "../context/ChartProvider/index.js";
|
|
61
66
|
export * from "../context/ChartsSlotsContext.js";
|
package/esm/internals/index.js
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
export * from "./components/ChartsAxesGradients/index.js";
|
|
3
3
|
export * from "../ChartsLabel/ChartsLabelMark.js";
|
|
4
4
|
export * from "./components/NotRendered.js";
|
|
5
|
+
export * from "../BarChart/BarLabel/BarLabelPlot.js";
|
|
6
|
+
export * from "../BarChart/BarClipPath.js";
|
|
5
7
|
|
|
6
8
|
// hooks
|
|
7
9
|
export { useSeries } from "../hooks/useSeries.js";
|
|
@@ -19,6 +21,7 @@ export { useRadarChartProps } from "../RadarChart/useRadarChartProps.js";
|
|
|
19
21
|
export * from "../ChartContainer/useChartContainerProps.js";
|
|
20
22
|
export * from "../ChartDataProvider/useChartDataProviderProps.js";
|
|
21
23
|
export * from "./seriesSelectorOfType.js";
|
|
24
|
+
export { useSkipAnimation } from "../hooks/useSkipAnimation.js";
|
|
22
25
|
|
|
23
26
|
// plugins
|
|
24
27
|
export * from "./plugins/corePlugins/useChartId/index.js";
|
|
@@ -28,6 +31,7 @@ export * from "./plugins/corePlugins/useChartInteractionListener/index.js";
|
|
|
28
31
|
export * from "./plugins/featurePlugins/useChartZAxis/index.js";
|
|
29
32
|
export * from "./plugins/featurePlugins/useChartCartesianAxis/index.js";
|
|
30
33
|
export * from "./plugins/featurePlugins/useChartPolarAxis/index.js";
|
|
34
|
+
export * from "./plugins/featurePlugins/useChartTooltip/index.js";
|
|
31
35
|
export * from "./plugins/featurePlugins/useChartInteraction/index.js";
|
|
32
36
|
export * from "./plugins/featurePlugins/useChartHighlight/index.js";
|
|
33
37
|
export * from "./plugins/featurePlugins/useChartKeyboardNavigation/index.js";
|
|
@@ -49,7 +53,6 @@ export * from "../RadarChart/RadarChart.plugins.js";
|
|
|
49
53
|
export * from "../PieChart/PieChart.plugins.js";
|
|
50
54
|
|
|
51
55
|
// utils
|
|
52
|
-
export * from "./defaultizeValueFormatter.js";
|
|
53
56
|
export * from "./configInit.js";
|
|
54
57
|
export * from "./getLabel.js";
|
|
55
58
|
export * from "./getSVGPoint.js";
|
|
@@ -66,6 +69,8 @@ export * from "./dateHelpers.js";
|
|
|
66
69
|
export * from "./invertScale.js";
|
|
67
70
|
export * from "./scaleGuards.js";
|
|
68
71
|
export * from "./findMinMax.js";
|
|
72
|
+
export { checkBarChartScaleErrors } from "../BarChart/checkBarChartScaleErrors.js";
|
|
73
|
+
export { getBandSize } from "./getBandSize.js";
|
|
69
74
|
|
|
70
75
|
// contexts
|
|
71
76
|
export { getAxisExtrema } from "./plugins/featurePlugins/useChartCartesianAxis/getAxisExtrema.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { D3Scale } from "../models/axis.js";
|
|
1
|
+
import { type D3Scale } from "../models/axis.js";
|
|
2
2
|
export declare function invertScale<T>(scale: D3Scale, data: readonly T[], value: number): number | Date | T;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ChartsTextStyle } from "../ChartsText/index.js";
|
|
1
|
+
import { type ChartsTextStyle } from "../ChartsText/index.js";
|
|
2
2
|
export declare function invertTextAnchor(textAnchor: ChartsTextStyle['textAnchor']): ChartsTextStyle['textAnchor'];
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { CartesianChartSeriesType, ChartSeriesDefaultized, ChartSeriesType } from "../models/seriesType/config.js";
|
|
1
|
+
import { type CartesianChartSeriesType, type ChartSeriesDefaultized, type ChartSeriesType } from "../models/seriesType/config.js";
|
|
2
2
|
export declare function isCartesianSeriesType(seriesType: string): seriesType is CartesianChartSeriesType;
|
|
3
3
|
export declare function isCartesianSeries(series: ChartSeriesDefaultized<ChartSeriesType>): series is ChartSeriesDefaultized<CartesianChartSeriesType>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { PolarChartSeriesType } from "../models/seriesType/config.js";
|
|
1
|
+
import { type PolarChartSeriesType } from "../models/seriesType/config.js";
|
|
2
2
|
export declare function isPolarSeriesType(seriesType: string): seriesType is PolarChartSeriesType;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type * as React from 'react';
|
|
2
|
-
import { ChartsBaseSlots } from "../../models/slots/chartsBaseSlots.js";
|
|
3
|
-
import { ChartsIconSlots } from "../../models/slots/chartsIconSlots.js";
|
|
2
|
+
import { type ChartsBaseSlots } from "../../models/slots/chartsBaseSlots.js";
|
|
3
|
+
import { type ChartsIconSlots } from "../../models/slots/chartsIconSlots.js";
|
|
4
4
|
export type ChartsSlots = ChartsBaseSlots & ChartsIconSlots;
|
|
5
5
|
export type ChartsSlotProps = { [key in keyof ChartsSlots]: React.ComponentProps<ChartsSlots[key]> };
|
|
6
6
|
export declare const defaultSlotsMaterial: ChartsSlots;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import { ChartSeriesType } from "../../models/seriesType/config.js";
|
|
2
|
-
import { UseChartCartesianAxisSignature } from "./featurePlugins/useChartCartesianAxis/index.js";
|
|
3
|
-
import { UseChartHighlightSignature } from "./featurePlugins/useChartHighlight/index.js";
|
|
4
|
-
import { UseChartInteractionSignature } from "./featurePlugins/useChartInteraction/index.js";
|
|
5
|
-
import { UseChartKeyboardNavigationSignature } from "./featurePlugins/useChartKeyboardNavigation/index.js";
|
|
6
|
-
import { UseChartPolarAxisSignature } from "./featurePlugins/useChartPolarAxis/index.js";
|
|
7
|
-
import { UseChartClosestPointSignature } from "./featurePlugins/useChartClosestPoint/index.js";
|
|
8
|
-
import { UseChartZAxisSignature } from "./featurePlugins/useChartZAxis/index.js";
|
|
9
|
-
import { UseChartBrushSignature } from "./featurePlugins/useChartBrush/index.js";
|
|
10
|
-
|
|
11
|
-
export type
|
|
12
|
-
export
|
|
1
|
+
import { type ChartSeriesType } from "../../models/seriesType/config.js";
|
|
2
|
+
import { type UseChartCartesianAxisSignature } from "./featurePlugins/useChartCartesianAxis/index.js";
|
|
3
|
+
import { type UseChartHighlightSignature } from "./featurePlugins/useChartHighlight/index.js";
|
|
4
|
+
import { type UseChartInteractionSignature } from "./featurePlugins/useChartInteraction/index.js";
|
|
5
|
+
import { type UseChartKeyboardNavigationSignature } from "./featurePlugins/useChartKeyboardNavigation/index.js";
|
|
6
|
+
import { type UseChartPolarAxisSignature } from "./featurePlugins/useChartPolarAxis/index.js";
|
|
7
|
+
import { type UseChartClosestPointSignature } from "./featurePlugins/useChartClosestPoint/index.js";
|
|
8
|
+
import { type UseChartZAxisSignature } from "./featurePlugins/useChartZAxis/index.js";
|
|
9
|
+
import { type UseChartBrushSignature } from "./featurePlugins/useChartBrush/index.js";
|
|
10
|
+
import { type UseChartTooltipSignature } from "./featurePlugins/useChartTooltip/index.js";
|
|
11
|
+
export type AllPluginSignatures<TSeries extends ChartSeriesType = ChartSeriesType> = [UseChartZAxisSignature, UseChartBrushSignature, UseChartCartesianAxisSignature<TSeries>, UseChartPolarAxisSignature, UseChartTooltipSignature, UseChartInteractionSignature, UseChartHighlightSignature, UseChartClosestPointSignature, UseChartKeyboardNavigationSignature];
|
|
12
|
+
export type DefaultPluginSignatures<TSeries extends ChartSeriesType = ChartSeriesType> = [UseChartZAxisSignature, UseChartBrushSignature, UseChartTooltipSignature, UseChartInteractionSignature, UseChartCartesianAxisSignature<TSeries>, UseChartHighlightSignature, UseChartClosestPointSignature, UseChartKeyboardNavigationSignature];
|
|
13
|
+
export declare const DEFAULT_PLUGINS: readonly [import("./models/index.js").ChartPlugin<UseChartZAxisSignature>, import("./models/index.js").ChartPlugin<UseChartBrushSignature>, import("./models/index.js").ChartPlugin<UseChartTooltipSignature>, import("./models/index.js").ChartPlugin<UseChartInteractionSignature>, import("./models/index.js").ChartPlugin<UseChartCartesianAxisSignature<any>>, import("./models/index.js").ChartPlugin<UseChartHighlightSignature>, import("./models/index.js").ChartPlugin<UseChartClosestPointSignature>, import("./models/index.js").ChartPlugin<UseChartKeyboardNavigationSignature>];
|
|
@@ -7,4 +7,5 @@ import { useChartKeyboardNavigation } from "./featurePlugins/useChartKeyboardNav
|
|
|
7
7
|
import { useChartClosestPoint } from "./featurePlugins/useChartClosestPoint/index.js";
|
|
8
8
|
import { useChartZAxis } from "./featurePlugins/useChartZAxis/index.js";
|
|
9
9
|
import { useChartBrush } from "./featurePlugins/useChartBrush/index.js";
|
|
10
|
-
|
|
10
|
+
import { useChartTooltip } from "./featurePlugins/useChartTooltip/index.js";
|
|
11
|
+
export const DEFAULT_PLUGINS = [useChartZAxis, useChartBrush, useChartTooltip, useChartInteraction, useChartCartesianAxis, useChartHighlight, useChartClosestPoint, useChartKeyboardNavigation];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type UseChartAnimationSignature } from "./useChartAnimation/index.js";
|
|
2
2
|
import { type UseChartDimensionsSignature } from "./useChartDimensions/index.js";
|
|
3
3
|
import { type UseChartExperimentalFeaturesSignature } from "./useChartExperimentalFeature/index.js";
|
|
4
|
-
import { type UseChartIdSignature, UseChartIdParameters } from "./useChartId/index.js";
|
|
4
|
+
import { type UseChartIdSignature, type UseChartIdParameters } from "./useChartId/index.js";
|
|
5
5
|
import { type UseChartSeriesSignature } from "./useChartSeries/index.js";
|
|
6
6
|
import { type UseChartInteractionListenerSignature } from "./useChartInteractionListener/index.js";
|
|
7
7
|
/**
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { ChartPlugin } from "../../models/index.js";
|
|
1
|
+
import { type ChartPlugin } from "../../models/index.js";
|
|
2
2
|
import type { UseChartAnimationSignature } from "./useChartAnimation.types.js";
|
|
3
3
|
export declare const useChartAnimation: ChartPlugin<UseChartAnimationSignature>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ChartPluginSignature } from "../../models/index.js";
|
|
1
|
+
import { type ChartPluginSignature } from "../../models/index.js";
|
|
2
2
|
import type { UseChartCartesianAxisSignature } from "../../featurePlugins/useChartCartesianAxis/index.js";
|
|
3
3
|
export interface UseChartAnimationParameters {
|
|
4
4
|
/**
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { ChartPlugin } from "../../models/index.js";
|
|
1
|
+
import { type ChartPlugin } from "../../models/index.js";
|
|
2
2
|
import type { UseChartDimensionsSignature } from "./useChartDimensions.types.js";
|
|
3
3
|
export declare const useChartDimensions: ChartPlugin<UseChartDimensionsSignature>;
|
package/esm/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.selectors.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ChartRootSelector } from "../../utils/selectors.js";
|
|
1
|
+
import { type ChartRootSelector } from "../../utils/selectors.js";
|
|
2
2
|
import type { UseChartDimensionsSignature } from "./useChartDimensions.types.js";
|
|
3
|
-
import { ChartState } from "../../models/chart.js";
|
|
3
|
+
import { type ChartState } from "../../models/chart.js";
|
|
4
4
|
export declare const selectorChartDimensionsState: ChartRootSelector<UseChartDimensionsSignature>;
|
|
5
5
|
export declare const selectorChartMargin: (state: ChartState<[UseChartDimensionsSignature]>) => import("./useChartDimensions.types.js").ChartMargin;
|
|
6
6
|
export declare const selectorChartDrawingArea: (args_0: import("../useChartId/useChartId.types.js").UseChartIdState & import("../useChartExperimentalFeature/useChartExperimentalFeature.types.js").UseChartExperimentalFeaturesState & import("./useChartDimensions.types.js").UseChartDimensionsState & import("../useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & import("../useChartInteractionListener/index.js").UseChartInteractionListenerState & Partial<{}> & {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ChartPluginSignature } from "../../models/index.js";
|
|
1
|
+
import { type ChartPluginSignature } from "../../models/index.js";
|
|
2
2
|
import type { UseChartCartesianAxisSignature } from "../../featurePlugins/useChartCartesianAxis/index.js";
|
|
3
3
|
export interface ChartMargin {
|
|
4
4
|
/**
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { ChartPlugin } from "../../models/index.js";
|
|
1
|
+
import { type ChartPlugin } from "../../models/index.js";
|
|
2
2
|
import type { UseChartExperimentalFeaturesSignature } from "./useChartExperimentalFeature.types.js";
|
|
3
3
|
export declare const useChartExperimentalFeatures: ChartPlugin<UseChartExperimentalFeaturesSignature>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ChartRootSelector } from "../../utils/selectors.js";
|
|
1
|
+
import { type ChartRootSelector } from "../../utils/selectors.js";
|
|
2
2
|
import type { UseChartExperimentalFeaturesSignature } from "./useChartExperimentalFeature.types.js";
|
|
3
3
|
export declare const selectorChartExperimentalFeaturesState: ChartRootSelector<UseChartExperimentalFeaturesSignature>;
|
|
4
4
|
export declare const selectorPreferStrictDomainInLineCharts: (args_0: import("../useChartId/useChartId.types.js").UseChartIdState & import("./useChartExperimentalFeature.types.js").UseChartExperimentalFeaturesState & import("../useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("../useChartSeries/useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & import("../useChartInteractionListener/index.js").UseChartInteractionListenerState & Partial<{}> & {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { ChartPlugin } from "../../models/index.js";
|
|
2
|
-
import { UseChartIdSignature } from "./useChartId.types.js";
|
|
1
|
+
import { type ChartPlugin } from "../../models/index.js";
|
|
2
|
+
import { type UseChartIdSignature } from "./useChartId.types.js";
|
|
3
3
|
export declare const useChartId: ChartPlugin<UseChartIdSignature>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { ChartPlugin } from "../../models/index.js";
|
|
2
|
-
import { UseChartInteractionListenerSignature } from "./useChartInteractionListener.types.js";
|
|
1
|
+
import { type ChartPlugin } from "../../models/index.js";
|
|
2
|
+
import { type UseChartInteractionListenerSignature } from "./useChartInteractionListener.types.js";
|
|
3
3
|
export declare const useChartInteractionListener: ChartPlugin<UseChartInteractionListenerSignature>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { MoveEvent, PanEvent, PanGestureOptions, PinchEvent, PinchGestureOptions, PressEvent, TapEvent, TurnWheelEvent, type PressAndDragEvent, type PressAndDragGestureOptions, type TapAndDragEvent, type TapAndDragGestureOptions, type TapGestureOptions, type TurnWheelGestureOptions } from '@mui/x-internal-gestures/core';
|
|
2
|
-
import { ChartPluginSignature } from "../../models/index.js";
|
|
1
|
+
import { type MoveEvent, type PanEvent, type PanGestureOptions, type PinchEvent, type PinchGestureOptions, type PressEvent, type TapEvent, type TurnWheelEvent, type PressAndDragEvent, type PressAndDragGestureOptions, type TapAndDragEvent, type TapAndDragGestureOptions, type TapGestureOptions, type TurnWheelGestureOptions } from '@mui/x-internal-gestures/core';
|
|
2
|
+
import { type ChartPluginSignature } from "../../models/index.js";
|
|
3
3
|
export type ChartInteraction = 'pan' | 'panStart' | 'panEnd' | 'zoomPan' | 'zoomPanStart' | 'zoomPanEnd' | 'zoomPinch' | 'zoomPinchStart' | 'zoomPinchEnd' | 'zoomTurnWheel' | 'panTurnWheel' | 'zoomTapAndDrag' | 'zoomTapAndDragStart' | 'zoomTapAndDragEnd' | 'zoomPressAndDrag' | 'zoomPressAndDragStart' | 'zoomPressAndDragEnd' | 'move' | 'moveStart' | 'moveEnd' | 'tap' | 'quickPress' | 'quickPressEnd' | 'zoomDoubleTapReset' | 'brush' | 'brushStart' | 'brushCancel' | 'brushEnd';
|
|
4
4
|
export type InteractionListenerResult = {
|
|
5
5
|
cleanup: () => void;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { useChartSeries } from "./useChartSeries.js";
|
|
2
|
-
export type { UseChartSeriesSignature, UseChartSeriesParameters, UseChartSeriesDefaultizedParameters, ProcessedSeries } from "./useChartSeries.types.js";
|
|
2
|
+
export type { UseChartSeriesSignature, UseChartSeriesParameters, UseChartSeriesDefaultizedParameters, ProcessedSeries, SeriesLayout } from "./useChartSeries.types.js";
|
|
3
3
|
export * from "./useChartSeries.selectors.js";
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { type ChartDrawingArea } from "../../../../hooks/useDrawingArea.js";
|
|
2
|
+
import { type AllSeriesType } from "../../../../models/seriesType/index.js";
|
|
3
|
+
import { type ChartSeriesType, type DatasetType } from "../../../../models/seriesType/config.js";
|
|
4
|
+
import { type ChartSeriesConfig } from "../../models/seriesConfig/index.js";
|
|
5
|
+
import { type DefaultizedSeriesGroups, type ProcessedSeries, type SeriesLayout } from "./useChartSeries.types.js";
|
|
5
6
|
/**
|
|
6
7
|
* This method groups series by type and adds defaultized values such as the ids and colors.
|
|
7
8
|
* It does NOT apply the series processors - that happens in a selector.
|
|
@@ -26,4 +27,12 @@ export declare const defaultizeSeries: <TSeriesType extends ChartSeriesType>({
|
|
|
26
27
|
* @param dataset The optional dataset
|
|
27
28
|
* @returns Processed series with all transformations applied
|
|
28
29
|
*/
|
|
29
|
-
export declare const applySeriesProcessors: <TSeriesType extends ChartSeriesType>(defaultizedSeries: DefaultizedSeriesGroups<TSeriesType>, seriesConfig: ChartSeriesConfig<TSeriesType>, dataset?: Readonly<DatasetType>) => ProcessedSeries<TSeriesType>;
|
|
30
|
+
export declare const applySeriesProcessors: <TSeriesType extends ChartSeriesType>(defaultizedSeries: DefaultizedSeriesGroups<TSeriesType>, seriesConfig: ChartSeriesConfig<TSeriesType>, dataset?: Readonly<DatasetType>) => ProcessedSeries<TSeriesType>;
|
|
31
|
+
/**
|
|
32
|
+
* Applies series processors with drawing area to series if defined.
|
|
33
|
+
* @param processedSeries The processed series groups
|
|
34
|
+
* @param seriesConfig The series configuration
|
|
35
|
+
* @param drawingArea The drawing area
|
|
36
|
+
* @returns Processed series with all transformations applied
|
|
37
|
+
*/
|
|
38
|
+
export declare const applySeriesLayout: <TSeriesType extends ChartSeriesType>(processedSeries: ProcessedSeries<TSeriesType>, seriesConfig: ChartSeriesConfig<TSeriesType>, drawingArea: ChartDrawingArea) => SeriesLayout<TSeriesType>;
|
|
@@ -49,4 +49,33 @@ export const applySeriesProcessors = (defaultizedSeries, seriesConfig, dataset)
|
|
|
49
49
|
}
|
|
50
50
|
});
|
|
51
51
|
return processedSeries;
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Applies series processors with drawing area to series if defined.
|
|
56
|
+
* @param processedSeries The processed series groups
|
|
57
|
+
* @param seriesConfig The series configuration
|
|
58
|
+
* @param drawingArea The drawing area
|
|
59
|
+
* @returns Processed series with all transformations applied
|
|
60
|
+
*/
|
|
61
|
+
export const applySeriesLayout = (processedSeries, seriesConfig, drawingArea) => {
|
|
62
|
+
let processingDetected = false;
|
|
63
|
+
const seriesLayout = {};
|
|
64
|
+
|
|
65
|
+
// Apply processors on series type per group
|
|
66
|
+
Object.keys(processedSeries).forEach(type => {
|
|
67
|
+
const processor = seriesConfig[type]?.seriesLayout;
|
|
68
|
+
const thisSeries = processedSeries[type];
|
|
69
|
+
if (processor !== undefined && thisSeries !== undefined) {
|
|
70
|
+
const newValue = processor(thisSeries, drawingArea);
|
|
71
|
+
if (newValue && newValue !== processedSeries[type]) {
|
|
72
|
+
processingDetected = true;
|
|
73
|
+
seriesLayout[type] = newValue;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
});
|
|
77
|
+
if (!processingDetected) {
|
|
78
|
+
return {};
|
|
79
|
+
}
|
|
80
|
+
return seriesLayout;
|
|
52
81
|
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { ChartPlugin } from "../../models/index.js";
|
|
2
|
-
import { UseChartSeriesSignature } from "./useChartSeries.types.js";
|
|
1
|
+
import { type ChartPlugin } from "../../models/index.js";
|
|
2
|
+
import { type UseChartSeriesSignature } from "./useChartSeries.types.js";
|
|
3
3
|
export declare const useChartSeries: ChartPlugin<UseChartSeriesSignature>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
3
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
4
|
-
import
|
|
4
|
+
import { useEffectAfterFirstRender } from '@mui/x-internals/useEffectAfterFirstRender';
|
|
5
5
|
import { rainbowSurgePalette } from "../../../../colorPalettes/index.js";
|
|
6
6
|
import { defaultizeSeries } from "./processSeries.js";
|
|
7
7
|
export const useChartSeries = ({
|
|
@@ -18,12 +18,7 @@ export const useChartSeries = ({
|
|
|
18
18
|
|
|
19
19
|
// The effect do not track any value defined synchronously during the 1st render by hooks called after `useChartSeries`
|
|
20
20
|
// As a consequence, the state generated by the 1st run of this useEffect will always be equal to the initialization one
|
|
21
|
-
|
|
22
|
-
React.useEffect(() => {
|
|
23
|
-
if (isFirstRender.current) {
|
|
24
|
-
isFirstRender.current = false;
|
|
25
|
-
return;
|
|
26
|
-
}
|
|
21
|
+
useEffectAfterFirstRender(() => {
|
|
27
22
|
store.set('series', _extends({}, store.state.series, {
|
|
28
23
|
defaultizedSeries: defaultizeSeries({
|
|
29
24
|
series,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ChartRootSelector } from "../../utils/selectors.js";
|
|
2
|
-
import { UseChartSeriesSignature } from "./useChartSeries.types.js";
|
|
1
|
+
import { type ChartRootSelector } from "../../utils/selectors.js";
|
|
2
|
+
import { type UseChartSeriesSignature } from "./useChartSeries.types.js";
|
|
3
3
|
export declare const selectorChartSeriesState: ChartRootSelector<UseChartSeriesSignature>;
|
|
4
4
|
export declare const selectorChartDefaultizedSeries: (args_0: import("../useChartId/useChartId.types.js").UseChartIdState & import("../useChartExperimentalFeature/useChartExperimentalFeature.types.js").UseChartExperimentalFeaturesState & import("../useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("./useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & import("../useChartInteractionListener/index.js").UseChartInteractionListenerState & Partial<{}> & {
|
|
5
5
|
cacheKey: import("../../models/index.js").ChartStateCacheKey;
|
|
@@ -21,4 +21,12 @@ export declare const selectorChartDataset: (args_0: import("../useChartId/useCha
|
|
|
21
21
|
*/
|
|
22
22
|
export declare const selectorChartSeriesProcessed: (args_0: import("../useChartId/useChartId.types.js").UseChartIdState & import("../useChartExperimentalFeature/useChartExperimentalFeature.types.js").UseChartExperimentalFeaturesState & import("../useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("./useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & import("../useChartInteractionListener/index.js").UseChartInteractionListenerState & Partial<{}> & {
|
|
23
23
|
cacheKey: import("../../models/index.js").ChartStateCacheKey;
|
|
24
|
-
}) => import("./useChartSeries.types.js").ProcessedSeries<keyof import("../../../index.js").ChartsSeriesConfig>;
|
|
24
|
+
}) => import("./useChartSeries.types.js").ProcessedSeries<keyof import("../../../index.js").ChartsSeriesConfig>;
|
|
25
|
+
/**
|
|
26
|
+
* Get the processed series after applying series processors.
|
|
27
|
+
* This selector computes the processed series on-demand from the defaultized series.
|
|
28
|
+
* @returns {ProcessedSeries} The processed series.
|
|
29
|
+
*/
|
|
30
|
+
export declare const selectorChartSeriesLayout: (args_0: import("../useChartId/useChartId.types.js").UseChartIdState & import("../useChartExperimentalFeature/useChartExperimentalFeature.types.js").UseChartExperimentalFeaturesState & import("../useChartDimensions/useChartDimensions.types.js").UseChartDimensionsState & import("./useChartSeries.types.js").UseChartSeriesState<keyof import("../../../index.js").ChartsSeriesConfig> & import("../useChartAnimation/useChartAnimation.types.js").UseChartAnimationState & import("../useChartInteractionListener/index.js").UseChartInteractionListenerState & Partial<{}> & {
|
|
31
|
+
cacheKey: import("../../models/index.js").ChartStateCacheKey;
|
|
32
|
+
}) => import("./useChartSeries.types.js").SeriesLayout<keyof import("../../../index.js").ChartsSeriesConfig>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { createSelectorMemoized, createSelector } from '@mui/x-internals/store';
|
|
2
|
-
import { applySeriesProcessors } from "./processSeries.js";
|
|
2
|
+
import { applySeriesLayout, applySeriesProcessors } from "./processSeries.js";
|
|
3
|
+
import { selectorChartDrawingArea } from "../useChartDimensions/useChartDimensions.selectors.js";
|
|
3
4
|
export const selectorChartSeriesState = state => state.series;
|
|
4
5
|
export const selectorChartDefaultizedSeries = createSelector(selectorChartSeriesState, seriesState => seriesState.defaultizedSeries);
|
|
5
6
|
export const selectorChartSeriesConfig = createSelector(selectorChartSeriesState, seriesState => seriesState.seriesConfig);
|
|
@@ -17,4 +18,13 @@ export const selectorChartDataset = createSelector(selectorChartSeriesState, ser
|
|
|
17
18
|
*/
|
|
18
19
|
export const selectorChartSeriesProcessed = createSelectorMemoized(selectorChartDefaultizedSeries, selectorChartSeriesConfig, selectorChartDataset, function selectorChartSeriesProcessed(defaultizedSeries, seriesConfig, dataset) {
|
|
19
20
|
return applySeriesProcessors(defaultizedSeries, seriesConfig, dataset);
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Get the processed series after applying series processors.
|
|
25
|
+
* This selector computes the processed series on-demand from the defaultized series.
|
|
26
|
+
* @returns {ProcessedSeries} The processed series.
|
|
27
|
+
*/
|
|
28
|
+
export const selectorChartSeriesLayout = createSelectorMemoized(selectorChartSeriesProcessed, selectorChartSeriesConfig, selectorChartDrawingArea, function selectorChartSeriesLayout(processedSeries, seriesConfig, drawingArea) {
|
|
29
|
+
return applySeriesLayout(processedSeries, seriesConfig, drawingArea);
|
|
20
30
|
});
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { AllSeriesType } from "../../../../models/seriesType/index.js";
|
|
2
|
-
import { ChartsColorPalette } from "../../../../colorPalettes/index.js";
|
|
3
|
-
import { ChartPluginSignature, ChartSeriesConfig } from "../../models/index.js";
|
|
4
|
-
import { ChartSeriesType, DatasetType } from "../../../../models/seriesType/config.js";
|
|
5
|
-
import { SeriesProcessorParams, SeriesProcessorResult } from "../../models/seriesConfig/seriesProcessor.types.js";
|
|
1
|
+
import { type AllSeriesType } from "../../../../models/seriesType/index.js";
|
|
2
|
+
import { type ChartsColorPalette } from "../../../../colorPalettes/index.js";
|
|
3
|
+
import { type ChartPluginSignature, type ChartSeriesConfig, type SeriesLayoutGetterResult } from "../../models/index.js";
|
|
4
|
+
import { type ChartSeriesType, type DatasetType } from "../../../../models/seriesType/config.js";
|
|
5
|
+
import { type SeriesProcessorParams, type SeriesProcessorResult } from "../../models/seriesConfig/seriesProcessor.types.js";
|
|
6
6
|
export interface UseChartSeriesParameters<T extends ChartSeriesType = ChartSeriesType> {
|
|
7
7
|
/**
|
|
8
8
|
* An array of objects that can be used to populate series and axes data using their `dataKey` property.
|
|
@@ -36,6 +36,7 @@ export type UseChartSeriesDefaultizedParameters<T extends ChartSeriesType = Char
|
|
|
36
36
|
theme: 'light' | 'dark';
|
|
37
37
|
};
|
|
38
38
|
export type ProcessedSeries<TSeriesTypes extends ChartSeriesType = ChartSeriesType> = { [type in TSeriesTypes]?: SeriesProcessorResult<type> };
|
|
39
|
+
export type SeriesLayout<TSeriesTypes extends ChartSeriesType = ChartSeriesType> = { [type in TSeriesTypes]?: SeriesLayoutGetterResult<type> };
|
|
39
40
|
export type DefaultizedSeriesGroups<TSeriesTypes extends ChartSeriesType = ChartSeriesType> = { [type in TSeriesTypes]?: SeriesProcessorParams<type> };
|
|
40
41
|
export interface UseChartSeriesState<T extends ChartSeriesType = ChartSeriesType> {
|
|
41
42
|
series: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ChartSeriesType } from "../../../../models/seriesType/config.js";
|
|
2
|
-
import { ColorProcessor } from "../../models/seriesConfig/index.js";
|
|
1
|
+
import { type ChartSeriesType } from "../../../../models/seriesType/config.js";
|
|
2
|
+
import { type ColorProcessor } from "../../models/seriesConfig/index.js";
|
|
3
3
|
export type ColorProcessorsConfig<T extends ChartSeriesType> = { [Key in T]?: ColorProcessor<Key> };
|
|
4
4
|
export declare function useColorProcessor<T extends ChartSeriesType>(seriesType: T): ColorProcessor<T>;
|
|
5
5
|
export declare function useColorProcessor(): ColorProcessorsConfig<ChartSeriesType>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { ChartPlugin } from "../../models/index.js";
|
|
2
|
-
import { UseChartBrushSignature } from "./useChartBrush.types.js";
|
|
1
|
+
import { type ChartPlugin } from "../../models/index.js";
|
|
2
|
+
import { type UseChartBrushSignature } from "./useChartBrush.types.js";
|
|
3
3
|
export declare const useChartBrush: ChartPlugin<UseChartBrushSignature>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createSelector } from '@mui/x-internals/store';
|
|
1
|
+
import { createSelector, createSelectorMemoized } from '@mui/x-internals/store';
|
|
2
2
|
import { selectorChartZoomOptionsLookup } from "../useChartCartesianAxis/useChartCartesianAxisRendering.selectors.js";
|
|
3
3
|
import { selectorChartSeriesProcessed } from "../../corePlugins/useChartSeries/index.js";
|
|
4
4
|
export const selectorBrush = state => state.brush;
|
|
@@ -8,7 +8,7 @@ export const selectorBrushStartX = createSelector(selectorBrush, brush => brush?
|
|
|
8
8
|
export const selectorBrushStartY = createSelector(selectorBrush, brush => brush?.start?.y ?? null);
|
|
9
9
|
export const selectorBrushCurrentX = createSelector(selectorBrush, brush => brush?.current?.x ?? null);
|
|
10
10
|
export const selectorBrushCurrentY = createSelector(selectorBrush, brush => brush?.current?.y ?? null);
|
|
11
|
-
export const selectorBrushState =
|
|
11
|
+
export const selectorBrushState = createSelectorMemoized(selectorBrushStartX, selectorBrushStartY, selectorBrushCurrentX, selectorBrushCurrentY, (startX, startY, currentX, currentY) => {
|
|
12
12
|
if (startX === null || startY === null || currentX === null || currentY === null) {
|
|
13
13
|
return null;
|
|
14
14
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { NumberValue } from '@mui/x-charts-vendor/d3-scale';
|
|
2
|
-
import { ChartsXAxisProps, ChartsAxisProps, ChartsYAxisProps, AxisId, DefaultedXAxis, DefaultedYAxis, D3Scale } from "../../../../models/axis.js";
|
|
3
|
-
import { ChartSeriesType } from "../../../../models/seriesType/config.js";
|
|
1
|
+
import { type NumberValue } from '@mui/x-charts-vendor/d3-scale';
|
|
2
|
+
import { type ChartsXAxisProps, type ChartsAxisProps, type ChartsYAxisProps, type AxisId, type DefaultedXAxis, type DefaultedYAxis, type D3Scale } from "../../../../models/axis.js";
|
|
3
|
+
import { type ChartSeriesType } from "../../../../models/seriesType/config.js";
|
|
4
4
|
import type { ChartDrawingArea } from "../../../../hooks/index.js";
|
|
5
|
-
import { ChartSeriesConfig } from "../../models/seriesConfig/index.js";
|
|
6
|
-
import { ComputedAxisConfig } from "./useChartCartesianAxis.types.js";
|
|
7
|
-
import { ProcessedSeries } from "../../corePlugins/useChartSeries/useChartSeries.types.js";
|
|
8
|
-
import { ZoomData } from "./zoom.types.js";
|
|
5
|
+
import { type ChartSeriesConfig } from "../../models/seriesConfig/index.js";
|
|
6
|
+
import { type ComputedAxisConfig } from "./useChartCartesianAxis.types.js";
|
|
7
|
+
import { type ProcessedSeries } from "../../corePlugins/useChartSeries/useChartSeries.types.js";
|
|
8
|
+
import { type ZoomData } from "./zoom.types.js";
|
|
9
9
|
export type ComputeResult<T extends ChartsAxisProps> = {
|
|
10
10
|
axis: ComputedAxisConfig<T>;
|
|
11
11
|
axisIds: AxisId[];
|
|
@@ -39,7 +39,9 @@ export function computeAxisValue({
|
|
|
39
39
|
const zoom = zoomMap?.get(axis.id);
|
|
40
40
|
const zoomRange = zoom ? [zoom.start, zoom.end] : [0, 100];
|
|
41
41
|
const range = getRange(drawingArea, axisDirection, axis.reverse ?? false);
|
|
42
|
+
const rawTickNumber = domains[axis.id].tickNumber;
|
|
42
43
|
const triggerTooltip = !axis.ignoreTooltip && axisIdsTriggeringTooltip.has(axis.id);
|
|
44
|
+
const tickNumber = scaleTickNumberByRange(rawTickNumber, zoomRange);
|
|
43
45
|
const data = axis.data ?? [];
|
|
44
46
|
if (isOrdinalScale(scale)) {
|
|
45
47
|
// Reverse range because ordinal scales are presented from top to bottom on y-axis
|
|
@@ -56,7 +58,7 @@ export function computeAxisValue({
|
|
|
56
58
|
}, axis, {
|
|
57
59
|
data,
|
|
58
60
|
scale,
|
|
59
|
-
tickNumber
|
|
61
|
+
tickNumber,
|
|
60
62
|
colorScale: axis.colorMap && (axis.colorMap.type === 'ordinal' ? getOrdinalColorScale(_extends({
|
|
61
63
|
values: axis.data
|
|
62
64
|
}, axis.colorMap)) : getColorScale(axis.colorMap))
|
|
@@ -70,7 +72,7 @@ export function computeAxisValue({
|
|
|
70
72
|
}, axis, {
|
|
71
73
|
data,
|
|
72
74
|
scale,
|
|
73
|
-
tickNumber
|
|
75
|
+
tickNumber,
|
|
74
76
|
colorScale: axis.colorMap && (axis.colorMap.type === 'ordinal' ? getOrdinalColorScale(_extends({
|
|
75
77
|
values: axis.data
|
|
76
78
|
}, axis.colorMap)) : getColorScale(axis.colorMap))
|
|
@@ -86,10 +88,8 @@ export function computeAxisValue({
|
|
|
86
88
|
// Could be merged with the two previous "if conditions" but then TS does not get that `axis.scaleType` can't be `band` or `point`.
|
|
87
89
|
return;
|
|
88
90
|
}
|
|
89
|
-
const rawTickNumber = domains[axis.id].tickNumber;
|
|
90
91
|
const continuousAxis = axis;
|
|
91
92
|
const scaleType = continuousAxis.scaleType ?? 'linear';
|
|
92
|
-
const tickNumber = scaleTickNumberByRange(rawTickNumber, zoomRange);
|
|
93
93
|
completeAxis[axis.id] = _extends({
|
|
94
94
|
offset: 0,
|
|
95
95
|
height: 0,
|
package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/createAxisFilterMapper.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { NumberValue } from '@mui/x-charts-vendor/d3-scale';
|
|
2
|
-
import { AxisConfig } from "../../../../models/index.js";
|
|
3
|
-
import { ExtremumFilter } from "./useChartCartesianAxis.types.js";
|
|
4
|
-
import { GetZoomAxisFilters, ZoomAxisFilters } from "./zoom.types.js";
|
|
1
|
+
import { type NumberValue } from '@mui/x-charts-vendor/d3-scale';
|
|
2
|
+
import { type AxisConfig } from "../../../../models/index.js";
|
|
3
|
+
import { type ExtremumFilter } from "./useChartCartesianAxis.types.js";
|
|
4
|
+
import { type GetZoomAxisFilters, type ZoomAxisFilters } from "./zoom.types.js";
|
|
5
5
|
export declare function createDiscreteScaleGetAxisFilter(axisData: AxisConfig['data'], zoomStart: number, zoomEnd: number, direction: 'x' | 'y'): ExtremumFilter;
|
|
6
6
|
export declare function createContinuousScaleGetAxisFilter(domain: readonly NumberValue[], zoomStart: number, zoomEnd: number, direction: 'x' | 'y', axisData: AxisConfig['data']): ExtremumFilter;
|
|
7
7
|
export declare const createGetAxisFilters: (filters: ZoomAxisFilters) => GetZoomAxisFilters;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AxisConfig, ChartsXAxisProps, ChartsYAxisProps, ScaleName } from "../../../../models/index.js";
|
|
2
|
-
import { AxisId } from "../../../../models/axis.js";
|
|
3
|
-
import { DefaultizedZoomOptions } from "./useChartCartesianAxis.types.js";
|
|
1
|
+
import { type AxisConfig, type ChartsXAxisProps, type ChartsYAxisProps, type ScaleName } from "../../../../models/index.js";
|
|
2
|
+
import { type AxisId } from "../../../../models/axis.js";
|
|
3
|
+
import { type DefaultizedZoomOptions } from "./useChartCartesianAxis.types.js";
|
|
4
4
|
export declare const createZoomLookup: (axisDirection: "x" | "y") => (axes?: AxisConfig<ScaleName, any, ChartsXAxisProps | ChartsYAxisProps>[]) => Record<AxisId, DefaultizedZoomOptions>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ZoomOptions } from "./zoom.types.js";
|
|
2
|
-
import { XAxis, YAxis } from "../../../../models/index.js";
|
|
3
|
-
import { DefaultedXAxis, DefaultedYAxis } from "../../../../models/axis.js";
|
|
4
|
-
import { DatasetType } from "../../../../models/seriesType/config.js";
|
|
1
|
+
import { type ZoomOptions } from "./zoom.types.js";
|
|
2
|
+
import { type XAxis, type YAxis } from "../../../../models/index.js";
|
|
3
|
+
import { type DefaultedXAxis, type DefaultedYAxis } from "../../../../models/axis.js";
|
|
4
|
+
import { type DatasetType } from "../../../../models/seriesType/config.js";
|
|
5
5
|
type InXAxis = XAxis & {
|
|
6
6
|
zoom?: boolean | ZoomOptions;
|
|
7
7
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { AxisId } from "../../../../models/axis.js";
|
|
2
|
-
import { DefaultizedZoomOptions } from "./useChartCartesianAxis.types.js";
|
|
3
|
-
import { ZoomOptions } from "./zoom.types.js";
|
|
1
|
+
import { type AxisId } from "../../../../models/axis.js";
|
|
2
|
+
import { type DefaultizedZoomOptions } from "./useChartCartesianAxis.types.js";
|
|
3
|
+
import { type ZoomOptions } from "./zoom.types.js";
|
|
4
4
|
export declare const defaultZoomOptions: {
|
|
5
5
|
minStart: number;
|
|
6
6
|
maxEnd: number;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { NumberValue } from '@mui/x-charts-vendor/d3-scale';
|
|
2
|
-
import { ContinuousScaleName, DefaultedAxis } from "../../../../models/axis.js";
|
|
3
|
-
import { ProcessedSeries } from "../../corePlugins/useChartSeries/index.js";
|
|
4
|
-
import { TickParams } from "../../../../hooks/useTicks.js";
|
|
1
|
+
import { type NumberValue } from '@mui/x-charts-vendor/d3-scale';
|
|
2
|
+
import { type ContinuousScaleName, type DefaultedAxis } from "../../../../models/axis.js";
|
|
3
|
+
import { type ProcessedSeries } from "../../corePlugins/useChartSeries/index.js";
|
|
4
|
+
import { type TickParams } from "../../../../hooks/useTicks.js";
|
|
5
5
|
/**
|
|
6
6
|
* Calculates the initial domain and tick number for a given axis.
|
|
7
7
|
* The domain should still run through the zoom filterMode after this step.
|