@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/BarChart/BarChart.js
CHANGED
|
@@ -17,6 +17,7 @@ import { ChartDataProvider } from "../ChartDataProvider/index.js";
|
|
|
17
17
|
import { ChartsSurface } from "../ChartsSurface/index.js";
|
|
18
18
|
import { useChartContainerProps } from "../ChartContainer/useChartContainerProps.js";
|
|
19
19
|
import { ChartsWrapper } from "../ChartsWrapper/index.js";
|
|
20
|
+
import { FocusedBar } from "./FocusedBar.js";
|
|
20
21
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
21
22
|
/**
|
|
22
23
|
* Demos:
|
|
@@ -57,7 +58,7 @@ const BarChart = /*#__PURE__*/React.forwardRef(function BarChart(inProps, ref) {
|
|
|
57
58
|
children: /*#__PURE__*/_jsxs(ChartsWrapper, _extends({}, chartsWrapperProps, {
|
|
58
59
|
children: [props.showToolbar && Toolbar ? /*#__PURE__*/_jsx(Toolbar, _extends({}, props.slotProps?.toolbar)) : null, !props.hideLegend && /*#__PURE__*/_jsx(ChartsLegend, _extends({}, legendProps)), /*#__PURE__*/_jsxs(ChartsSurface, _extends({}, chartsSurfaceProps, {
|
|
59
60
|
children: [/*#__PURE__*/_jsx(ChartsGrid, _extends({}, gridProps)), /*#__PURE__*/_jsxs("g", _extends({}, clipPathGroupProps, {
|
|
60
|
-
children: [/*#__PURE__*/_jsx(BarPlot, _extends({}, barPlotProps)), /*#__PURE__*/_jsx(ChartsOverlay, _extends({}, overlayProps)), /*#__PURE__*/_jsx(ChartsAxisHighlight, _extends({}, axisHighlightProps))]
|
|
61
|
+
children: [/*#__PURE__*/_jsx(BarPlot, _extends({}, barPlotProps)), /*#__PURE__*/_jsx(ChartsOverlay, _extends({}, overlayProps)), /*#__PURE__*/_jsx(ChartsAxisHighlight, _extends({}, axisHighlightProps)), /*#__PURE__*/_jsx(FocusedBar, {})]
|
|
61
62
|
})), /*#__PURE__*/_jsx(ChartsAxis, _extends({}, chartsAxisProps)), /*#__PURE__*/_jsx(ChartsClipPath, _extends({}, clipPathProps)), children]
|
|
62
63
|
})), !props.loading && /*#__PURE__*/_jsx(Tooltip, _extends({}, props.slotProps?.tooltip))]
|
|
63
64
|
}))
|
|
@@ -285,6 +286,11 @@ process.env.NODE_ENV !== "production" ? BarChart.propTypes = {
|
|
|
285
286
|
label: PropTypes.string,
|
|
286
287
|
labelStyle: PropTypes.object,
|
|
287
288
|
offset: PropTypes.number,
|
|
289
|
+
ordinalTimeTicks: PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf(['biweekly', 'days', 'hours', 'months', 'quarterly', 'weeks', 'years']), PropTypes.shape({
|
|
290
|
+
format: PropTypes.func.isRequired,
|
|
291
|
+
getTickNumber: PropTypes.func.isRequired,
|
|
292
|
+
isTick: PropTypes.func.isRequired
|
|
293
|
+
})]).isRequired),
|
|
288
294
|
position: PropTypes.oneOf(['bottom', 'none', 'top']),
|
|
289
295
|
reverse: PropTypes.bool,
|
|
290
296
|
scaleType: PropTypes.oneOf(['band']),
|
|
@@ -301,6 +307,7 @@ process.env.NODE_ENV !== "production" ? BarChart.propTypes = {
|
|
|
301
307
|
tickNumber: PropTypes.number,
|
|
302
308
|
tickPlacement: PropTypes.oneOf(['end', 'extremities', 'middle', 'start']),
|
|
303
309
|
tickSize: PropTypes.number,
|
|
310
|
+
tickSpacing: PropTypes.number,
|
|
304
311
|
valueFormatter: PropTypes.func
|
|
305
312
|
}), PropTypes.shape({
|
|
306
313
|
axis: PropTypes.oneOf(['x']),
|
|
@@ -337,6 +344,11 @@ process.env.NODE_ENV !== "production" ? BarChart.propTypes = {
|
|
|
337
344
|
label: PropTypes.string,
|
|
338
345
|
labelStyle: PropTypes.object,
|
|
339
346
|
offset: PropTypes.number,
|
|
347
|
+
ordinalTimeTicks: PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf(['biweekly', 'days', 'hours', 'months', 'quarterly', 'weeks', 'years']), PropTypes.shape({
|
|
348
|
+
format: PropTypes.func.isRequired,
|
|
349
|
+
getTickNumber: PropTypes.func.isRequired,
|
|
350
|
+
isTick: PropTypes.func.isRequired
|
|
351
|
+
})]).isRequired),
|
|
340
352
|
position: PropTypes.oneOf(['bottom', 'none', 'top']),
|
|
341
353
|
reverse: PropTypes.bool,
|
|
342
354
|
scaleType: PropTypes.oneOf(['point']),
|
|
@@ -353,6 +365,7 @@ process.env.NODE_ENV !== "production" ? BarChart.propTypes = {
|
|
|
353
365
|
tickNumber: PropTypes.number,
|
|
354
366
|
tickPlacement: PropTypes.oneOf(['end', 'extremities', 'middle', 'start']),
|
|
355
367
|
tickSize: PropTypes.number,
|
|
368
|
+
tickSpacing: PropTypes.number,
|
|
356
369
|
valueFormatter: PropTypes.func
|
|
357
370
|
}), PropTypes.shape({
|
|
358
371
|
axis: PropTypes.oneOf(['x']),
|
|
@@ -397,6 +410,7 @@ process.env.NODE_ENV !== "production" ? BarChart.propTypes = {
|
|
|
397
410
|
tickNumber: PropTypes.number,
|
|
398
411
|
tickPlacement: PropTypes.oneOf(['end', 'extremities', 'middle', 'start']),
|
|
399
412
|
tickSize: PropTypes.number,
|
|
413
|
+
tickSpacing: PropTypes.number,
|
|
400
414
|
valueFormatter: PropTypes.func
|
|
401
415
|
}), PropTypes.shape({
|
|
402
416
|
axis: PropTypes.oneOf(['x']),
|
|
@@ -442,6 +456,7 @@ process.env.NODE_ENV !== "production" ? BarChart.propTypes = {
|
|
|
442
456
|
tickNumber: PropTypes.number,
|
|
443
457
|
tickPlacement: PropTypes.oneOf(['end', 'extremities', 'middle', 'start']),
|
|
444
458
|
tickSize: PropTypes.number,
|
|
459
|
+
tickSpacing: PropTypes.number,
|
|
445
460
|
valueFormatter: PropTypes.func
|
|
446
461
|
}), PropTypes.shape({
|
|
447
462
|
axis: PropTypes.oneOf(['x']),
|
|
@@ -486,6 +501,7 @@ process.env.NODE_ENV !== "production" ? BarChart.propTypes = {
|
|
|
486
501
|
tickNumber: PropTypes.number,
|
|
487
502
|
tickPlacement: PropTypes.oneOf(['end', 'extremities', 'middle', 'start']),
|
|
488
503
|
tickSize: PropTypes.number,
|
|
504
|
+
tickSpacing: PropTypes.number,
|
|
489
505
|
valueFormatter: PropTypes.func
|
|
490
506
|
}), PropTypes.shape({
|
|
491
507
|
axis: PropTypes.oneOf(['x']),
|
|
@@ -530,6 +546,7 @@ process.env.NODE_ENV !== "production" ? BarChart.propTypes = {
|
|
|
530
546
|
tickNumber: PropTypes.number,
|
|
531
547
|
tickPlacement: PropTypes.oneOf(['end', 'extremities', 'middle', 'start']),
|
|
532
548
|
tickSize: PropTypes.number,
|
|
549
|
+
tickSpacing: PropTypes.number,
|
|
533
550
|
valueFormatter: PropTypes.func
|
|
534
551
|
}), PropTypes.shape({
|
|
535
552
|
axis: PropTypes.oneOf(['x']),
|
|
@@ -578,6 +595,7 @@ process.env.NODE_ENV !== "production" ? BarChart.propTypes = {
|
|
|
578
595
|
tickNumber: PropTypes.number,
|
|
579
596
|
tickPlacement: PropTypes.oneOf(['end', 'extremities', 'middle', 'start']),
|
|
580
597
|
tickSize: PropTypes.number,
|
|
598
|
+
tickSpacing: PropTypes.number,
|
|
581
599
|
valueFormatter: PropTypes.func
|
|
582
600
|
}), PropTypes.shape({
|
|
583
601
|
axis: PropTypes.oneOf(['x']),
|
|
@@ -626,6 +644,7 @@ process.env.NODE_ENV !== "production" ? BarChart.propTypes = {
|
|
|
626
644
|
tickNumber: PropTypes.number,
|
|
627
645
|
tickPlacement: PropTypes.oneOf(['end', 'extremities', 'middle', 'start']),
|
|
628
646
|
tickSize: PropTypes.number,
|
|
647
|
+
tickSpacing: PropTypes.number,
|
|
629
648
|
valueFormatter: PropTypes.func
|
|
630
649
|
}), PropTypes.shape({
|
|
631
650
|
axis: PropTypes.oneOf(['x']),
|
|
@@ -670,6 +689,7 @@ process.env.NODE_ENV !== "production" ? BarChart.propTypes = {
|
|
|
670
689
|
tickNumber: PropTypes.number,
|
|
671
690
|
tickPlacement: PropTypes.oneOf(['end', 'extremities', 'middle', 'start']),
|
|
672
691
|
tickSize: PropTypes.number,
|
|
692
|
+
tickSpacing: PropTypes.number,
|
|
673
693
|
valueFormatter: PropTypes.func
|
|
674
694
|
})]).isRequired),
|
|
675
695
|
/**
|
|
@@ -713,6 +733,11 @@ process.env.NODE_ENV !== "production" ? BarChart.propTypes = {
|
|
|
713
733
|
label: PropTypes.string,
|
|
714
734
|
labelStyle: PropTypes.object,
|
|
715
735
|
offset: PropTypes.number,
|
|
736
|
+
ordinalTimeTicks: PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf(['biweekly', 'days', 'hours', 'months', 'quarterly', 'weeks', 'years']), PropTypes.shape({
|
|
737
|
+
format: PropTypes.func.isRequired,
|
|
738
|
+
getTickNumber: PropTypes.func.isRequired,
|
|
739
|
+
isTick: PropTypes.func.isRequired
|
|
740
|
+
})]).isRequired),
|
|
716
741
|
position: PropTypes.oneOf(['left', 'none', 'right']),
|
|
717
742
|
reverse: PropTypes.bool,
|
|
718
743
|
scaleType: PropTypes.oneOf(['band']),
|
|
@@ -728,6 +753,7 @@ process.env.NODE_ENV !== "production" ? BarChart.propTypes = {
|
|
|
728
753
|
tickNumber: PropTypes.number,
|
|
729
754
|
tickPlacement: PropTypes.oneOf(['end', 'extremities', 'middle', 'start']),
|
|
730
755
|
tickSize: PropTypes.number,
|
|
756
|
+
tickSpacing: PropTypes.number,
|
|
731
757
|
valueFormatter: PropTypes.func,
|
|
732
758
|
width: PropTypes.number
|
|
733
759
|
}), PropTypes.shape({
|
|
@@ -764,6 +790,11 @@ process.env.NODE_ENV !== "production" ? BarChart.propTypes = {
|
|
|
764
790
|
label: PropTypes.string,
|
|
765
791
|
labelStyle: PropTypes.object,
|
|
766
792
|
offset: PropTypes.number,
|
|
793
|
+
ordinalTimeTicks: PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.oneOf(['biweekly', 'days', 'hours', 'months', 'quarterly', 'weeks', 'years']), PropTypes.shape({
|
|
794
|
+
format: PropTypes.func.isRequired,
|
|
795
|
+
getTickNumber: PropTypes.func.isRequired,
|
|
796
|
+
isTick: PropTypes.func.isRequired
|
|
797
|
+
})]).isRequired),
|
|
767
798
|
position: PropTypes.oneOf(['left', 'none', 'right']),
|
|
768
799
|
reverse: PropTypes.bool,
|
|
769
800
|
scaleType: PropTypes.oneOf(['point']),
|
|
@@ -779,6 +810,7 @@ process.env.NODE_ENV !== "production" ? BarChart.propTypes = {
|
|
|
779
810
|
tickNumber: PropTypes.number,
|
|
780
811
|
tickPlacement: PropTypes.oneOf(['end', 'extremities', 'middle', 'start']),
|
|
781
812
|
tickSize: PropTypes.number,
|
|
813
|
+
tickSpacing: PropTypes.number,
|
|
782
814
|
valueFormatter: PropTypes.func,
|
|
783
815
|
width: PropTypes.number
|
|
784
816
|
}), PropTypes.shape({
|
|
@@ -822,6 +854,7 @@ process.env.NODE_ENV !== "production" ? BarChart.propTypes = {
|
|
|
822
854
|
tickNumber: PropTypes.number,
|
|
823
855
|
tickPlacement: PropTypes.oneOf(['end', 'extremities', 'middle', 'start']),
|
|
824
856
|
tickSize: PropTypes.number,
|
|
857
|
+
tickSpacing: PropTypes.number,
|
|
825
858
|
valueFormatter: PropTypes.func,
|
|
826
859
|
width: PropTypes.number
|
|
827
860
|
}), PropTypes.shape({
|
|
@@ -866,6 +899,7 @@ process.env.NODE_ENV !== "production" ? BarChart.propTypes = {
|
|
|
866
899
|
tickNumber: PropTypes.number,
|
|
867
900
|
tickPlacement: PropTypes.oneOf(['end', 'extremities', 'middle', 'start']),
|
|
868
901
|
tickSize: PropTypes.number,
|
|
902
|
+
tickSpacing: PropTypes.number,
|
|
869
903
|
valueFormatter: PropTypes.func,
|
|
870
904
|
width: PropTypes.number
|
|
871
905
|
}), PropTypes.shape({
|
|
@@ -909,6 +943,7 @@ process.env.NODE_ENV !== "production" ? BarChart.propTypes = {
|
|
|
909
943
|
tickNumber: PropTypes.number,
|
|
910
944
|
tickPlacement: PropTypes.oneOf(['end', 'extremities', 'middle', 'start']),
|
|
911
945
|
tickSize: PropTypes.number,
|
|
946
|
+
tickSpacing: PropTypes.number,
|
|
912
947
|
valueFormatter: PropTypes.func,
|
|
913
948
|
width: PropTypes.number
|
|
914
949
|
}), PropTypes.shape({
|
|
@@ -952,6 +987,7 @@ process.env.NODE_ENV !== "production" ? BarChart.propTypes = {
|
|
|
952
987
|
tickNumber: PropTypes.number,
|
|
953
988
|
tickPlacement: PropTypes.oneOf(['end', 'extremities', 'middle', 'start']),
|
|
954
989
|
tickSize: PropTypes.number,
|
|
990
|
+
tickSpacing: PropTypes.number,
|
|
955
991
|
valueFormatter: PropTypes.func,
|
|
956
992
|
width: PropTypes.number
|
|
957
993
|
}), PropTypes.shape({
|
|
@@ -999,6 +1035,7 @@ process.env.NODE_ENV !== "production" ? BarChart.propTypes = {
|
|
|
999
1035
|
tickNumber: PropTypes.number,
|
|
1000
1036
|
tickPlacement: PropTypes.oneOf(['end', 'extremities', 'middle', 'start']),
|
|
1001
1037
|
tickSize: PropTypes.number,
|
|
1038
|
+
tickSpacing: PropTypes.number,
|
|
1002
1039
|
valueFormatter: PropTypes.func,
|
|
1003
1040
|
width: PropTypes.number
|
|
1004
1041
|
}), PropTypes.shape({
|
|
@@ -1046,6 +1083,7 @@ process.env.NODE_ENV !== "production" ? BarChart.propTypes = {
|
|
|
1046
1083
|
tickNumber: PropTypes.number,
|
|
1047
1084
|
tickPlacement: PropTypes.oneOf(['end', 'extremities', 'middle', 'start']),
|
|
1048
1085
|
tickSize: PropTypes.number,
|
|
1086
|
+
tickSpacing: PropTypes.number,
|
|
1049
1087
|
valueFormatter: PropTypes.func,
|
|
1050
1088
|
width: PropTypes.number
|
|
1051
1089
|
}), PropTypes.shape({
|
|
@@ -1089,6 +1127,7 @@ process.env.NODE_ENV !== "production" ? BarChart.propTypes = {
|
|
|
1089
1127
|
tickNumber: PropTypes.number,
|
|
1090
1128
|
tickPlacement: PropTypes.oneOf(['end', 'extremities', 'middle', 'start']),
|
|
1091
1129
|
tickSize: PropTypes.number,
|
|
1130
|
+
tickSpacing: PropTypes.number,
|
|
1092
1131
|
valueFormatter: PropTypes.func,
|
|
1093
1132
|
width: PropTypes.number
|
|
1094
1133
|
})]).isRequired)
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { UseChartZAxisSignature } from "../internals/plugins/featurePlugins/useChartZAxis/index.js";
|
|
2
|
-
import { UseChartCartesianAxisSignature } from "../internals/plugins/featurePlugins/useChartCartesianAxis/index.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
|
|
1
|
+
import { type UseChartZAxisSignature } from "../internals/plugins/featurePlugins/useChartZAxis/index.js";
|
|
2
|
+
import { type UseChartCartesianAxisSignature } from "../internals/plugins/featurePlugins/useChartCartesianAxis/index.js";
|
|
3
|
+
import { type UseChartTooltipSignature } from "../internals/plugins/featurePlugins/useChartTooltip/index.js";
|
|
4
|
+
import { type UseChartInteractionSignature } from "../internals/plugins/featurePlugins/useChartInteraction/index.js";
|
|
5
|
+
import { type UseChartHighlightSignature } from "../internals/plugins/featurePlugins/useChartHighlight/index.js";
|
|
6
|
+
import { type UseChartKeyboardNavigationSignature } from "../internals/plugins/featurePlugins/useChartKeyboardNavigation/index.js";
|
|
7
|
+
import { type ConvertSignaturesIntoPlugins } from "../internals/plugins/models/helpers.js";
|
|
8
|
+
import { type UseChartBrushSignature } from "../internals/plugins/featurePlugins/useChartBrush/index.js";
|
|
9
|
+
export type BarChartPluginSignatures = [UseChartZAxisSignature, UseChartBrushSignature, UseChartTooltipSignature, UseChartInteractionSignature, UseChartCartesianAxisSignature<'bar'>, UseChartHighlightSignature, UseChartKeyboardNavigationSignature];
|
|
9
10
|
export declare const BAR_CHART_PLUGINS: ConvertSignaturesIntoPlugins<BarChartPluginSignatures>;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { useChartZAxis } from "../internals/plugins/featurePlugins/useChartZAxis/index.js";
|
|
2
2
|
import { useChartCartesianAxis } from "../internals/plugins/featurePlugins/useChartCartesianAxis/index.js";
|
|
3
|
+
import { useChartTooltip } from "../internals/plugins/featurePlugins/useChartTooltip/index.js";
|
|
3
4
|
import { useChartInteraction } from "../internals/plugins/featurePlugins/useChartInteraction/index.js";
|
|
4
5
|
import { useChartHighlight } from "../internals/plugins/featurePlugins/useChartHighlight/index.js";
|
|
5
6
|
import { useChartKeyboardNavigation } from "../internals/plugins/featurePlugins/useChartKeyboardNavigation/index.js";
|
|
6
7
|
import { useChartBrush } from "../internals/plugins/featurePlugins/useChartBrush/index.js";
|
|
7
|
-
export const BAR_CHART_PLUGINS = [useChartZAxis, useChartBrush, useChartInteraction, useChartCartesianAxis, useChartHighlight, useChartKeyboardNavigation];
|
|
8
|
+
export const BAR_CHART_PLUGINS = [useChartZAxis, useChartBrush, useChartTooltip, useChartInteraction, useChartCartesianAxis, useChartHighlight, useChartKeyboardNavigation];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { SlotComponentPropsFromProps } from '@mui/x-internals/types';
|
|
3
|
-
import { BarElementOwnerState } from "./barElementClasses.js";
|
|
4
|
-
import { BarProps } from "./AnimatedBarElement.js";
|
|
2
|
+
import { type SlotComponentPropsFromProps } from '@mui/x-internals/types';
|
|
3
|
+
import { type BarElementOwnerState } from "./barElementClasses.js";
|
|
4
|
+
import { type BarProps } from "./AnimatedBarElement.js";
|
|
5
5
|
export interface BarElementSlots {
|
|
6
6
|
/**
|
|
7
7
|
* The component that renders the bar.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { BarLabelOwnerState } from "./BarLabel.types.js";
|
|
2
|
+
import { type BarLabelOwnerState } from "./BarLabel.types.js";
|
|
3
3
|
export declare const BarLabelComponent: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, Pick<React.SVGTextElementAttributes<SVGTextElement>, keyof React.SVGTextElementAttributes<SVGTextElement>>, {}>;
|
|
4
4
|
export type BarLabelProps = Omit<React.SVGProps<SVGTextElement>, 'ref' | 'id' | 'x' | 'y' | 'width' | 'height'> & BarLabelOwnerState & {
|
|
5
5
|
/**
|
|
@@ -8,6 +8,7 @@ import { styled, useThemeProps } from '@mui/material/styles';
|
|
|
8
8
|
import PropTypes from 'prop-types';
|
|
9
9
|
import { useAnimateBarLabel } from "../../hooks/animation/useAnimateBarLabel.js";
|
|
10
10
|
import { barLabelClasses } from "./barLabelClasses.js";
|
|
11
|
+
import { ANIMATION_DURATION_MS, ANIMATION_TIMING_FUNCTION } from "../../internals/animation/animation.js";
|
|
11
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
12
13
|
export const BarLabelComponent = styled('text', {
|
|
13
14
|
name: 'MuiBarLabel',
|
|
@@ -22,25 +23,28 @@ export const BarLabelComponent = styled('text', {
|
|
|
22
23
|
}) => _extends({}, theme?.typography?.body2, {
|
|
23
24
|
stroke: 'none',
|
|
24
25
|
fill: (theme.vars || theme)?.palette?.text?.primary,
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
opacity: 0.3
|
|
30
|
-
}
|
|
26
|
+
transitionProperty: 'opacity, fill',
|
|
27
|
+
transitionDuration: `${ANIMATION_DURATION_MS}ms`,
|
|
28
|
+
transitionTimingFunction: ANIMATION_TIMING_FUNCTION,
|
|
29
|
+
pointerEvents: 'none'
|
|
31
30
|
}));
|
|
32
31
|
function BarLabel(inProps) {
|
|
33
32
|
const props = useThemeProps({
|
|
34
33
|
props: inProps,
|
|
35
34
|
name: 'MuiBarLabel'
|
|
36
35
|
});
|
|
37
|
-
const
|
|
36
|
+
const {
|
|
37
|
+
isFaded
|
|
38
|
+
} = props,
|
|
39
|
+
otherProps = _objectWithoutPropertiesLoose(props, _excluded);
|
|
38
40
|
const animatedProps = useAnimateBarLabel(props);
|
|
39
41
|
const textAnchor = getTextAnchor(props);
|
|
40
42
|
const dominantBaseline = getDominantBaseline(props);
|
|
43
|
+
const fadedOpacity = isFaded ? 0.3 : 1;
|
|
41
44
|
return /*#__PURE__*/_jsx(BarLabelComponent, _extends({
|
|
42
45
|
textAnchor: textAnchor,
|
|
43
|
-
dominantBaseline: dominantBaseline
|
|
46
|
+
dominantBaseline: dominantBaseline,
|
|
47
|
+
opacity: fadedOpacity
|
|
44
48
|
}, otherProps, animatedProps));
|
|
45
49
|
}
|
|
46
50
|
function getTextAnchor({
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { SeriesId } from "../../models/seriesType/common.js";
|
|
1
|
+
import { type SeriesId } from "../../models/seriesType/common.js";
|
|
2
2
|
import type { BarLabelClasses } from "./barLabelClasses.js";
|
|
3
|
+
import { type BarValueType } from "../../models/index.js";
|
|
3
4
|
export interface BarLabelOwnerState {
|
|
4
5
|
seriesId: SeriesId;
|
|
5
6
|
dataIndex: number;
|
|
@@ -10,7 +11,7 @@ export interface BarLabelOwnerState {
|
|
|
10
11
|
layout: 'vertical' | 'horizontal';
|
|
11
12
|
classes?: Partial<BarLabelClasses>;
|
|
12
13
|
}
|
|
13
|
-
export type BarItem = {
|
|
14
|
+
export type BarItem<V extends BarValueType | null = BarValueType | null> = {
|
|
14
15
|
/**
|
|
15
16
|
* The series id of the bar.
|
|
16
17
|
*/
|
|
@@ -22,7 +23,7 @@ export type BarItem = {
|
|
|
22
23
|
/**
|
|
23
24
|
* The value of the data point.
|
|
24
25
|
*/
|
|
25
|
-
value:
|
|
26
|
+
value: V;
|
|
26
27
|
};
|
|
27
28
|
export type BarLabelContext = {
|
|
28
29
|
bar: {
|
|
@@ -38,4 +39,4 @@ export type BarLabelContext = {
|
|
|
38
39
|
width: number;
|
|
39
40
|
};
|
|
40
41
|
};
|
|
41
|
-
export type BarLabelFunction = (item: BarItem
|
|
42
|
+
export type BarLabelFunction<V extends BarValueType | null = BarValueType | null> = (item: BarItem<V>, context: BarLabelContext) => string | null | undefined;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { SlotComponentPropsFromProps } from '@mui/x-internals/types';
|
|
3
|
-
import { BarLabelOwnerState, BarItem, BarLabelContext } from "./BarLabel.types.js";
|
|
4
|
-
import { BarLabelProps } from "./BarLabel.js";
|
|
2
|
+
import { type SlotComponentPropsFromProps } from '@mui/x-internals/types';
|
|
3
|
+
import { type BarLabelOwnerState, type BarItem, type BarLabelContext } from "./BarLabel.types.js";
|
|
4
|
+
import { type BarLabelProps } from "./BarLabel.js";
|
|
5
|
+
import { type BarValueType } from "../../models/index.js";
|
|
5
6
|
export interface BarLabelSlots {
|
|
6
7
|
/**
|
|
7
8
|
* The component that renders the bar label.
|
|
@@ -12,7 +13,7 @@ export interface BarLabelSlots {
|
|
|
12
13
|
export interface BarLabelSlotProps {
|
|
13
14
|
barLabel?: SlotComponentPropsFromProps<BarLabelProps, {}, BarLabelOwnerState>;
|
|
14
15
|
}
|
|
15
|
-
export type BarLabelItemProps = Omit<BarLabelOwnerState, 'isFaded' | 'isHighlighted'> & Pick<BarLabelProps, 'style'> & {
|
|
16
|
+
export type BarLabelItemProps<V extends BarValueType | null> = Omit<BarLabelOwnerState, 'isFaded' | 'isHighlighted'> & Pick<BarLabelProps, 'style'> & {
|
|
16
17
|
/**
|
|
17
18
|
* The props used for each component slot.
|
|
18
19
|
* @default {}
|
|
@@ -54,7 +55,7 @@ export type BarLabelItemProps = Omit<BarLabelOwnerState, 'isFaded' | 'isHighligh
|
|
|
54
55
|
/**
|
|
55
56
|
* The value of the data point.
|
|
56
57
|
*/
|
|
57
|
-
value:
|
|
58
|
+
value: V;
|
|
58
59
|
/**
|
|
59
60
|
* If true, no animations should be applied.
|
|
60
61
|
*/
|
|
@@ -66,7 +67,7 @@ export type BarLabelItemProps = Omit<BarLabelOwnerState, 'isFaded' | 'isHighligh
|
|
|
66
67
|
* @param {BarLabelContext} context data about the bar.
|
|
67
68
|
* @returns {string} The formatted label.
|
|
68
69
|
*/
|
|
69
|
-
barLabel?: 'value' | ((item: BarItem
|
|
70
|
+
barLabel?: 'value' | ((item: BarItem<V>, context: BarLabelContext) => string | null | undefined);
|
|
70
71
|
/**
|
|
71
72
|
* The placement of the bar label.
|
|
72
73
|
* It controls whether the label is rendered in the center or outside the bar.
|
|
@@ -77,7 +78,7 @@ export type BarLabelItemProps = Omit<BarLabelOwnerState, 'isFaded' | 'isHighligh
|
|
|
77
78
|
/**
|
|
78
79
|
* @ignore - internal component.
|
|
79
80
|
*/
|
|
80
|
-
declare function BarLabelItem(props: BarLabelItemProps): import("react/jsx-runtime").JSX.Element | null;
|
|
81
|
+
declare function BarLabelItem<V extends BarValueType | null = BarValueType | null>(props: BarLabelItemProps<V>): import("react/jsx-runtime").JSX.Element | null;
|
|
81
82
|
declare namespace BarLabelItem {
|
|
82
83
|
var propTypes: any;
|
|
83
84
|
}
|
|
@@ -1,12 +1,31 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import { BarLabelItemProps } from "./BarLabelItem.js";
|
|
3
|
-
type
|
|
4
|
-
|
|
1
|
+
import { type AnimationData } from "../types.js";
|
|
2
|
+
import { type BarLabelItemProps } from "./BarLabelItem.js";
|
|
3
|
+
import type { SeriesId } from "../../models/seriesType/common.js";
|
|
4
|
+
import { type BarSeriesType, type BarValueType } from "../../models/seriesType/bar.js";
|
|
5
|
+
import { type BarLabelFunction } from "./BarLabel.types.js";
|
|
6
|
+
interface BarLabelPlotProps<V extends BarValueType | null = BarValueType | null> {
|
|
7
|
+
processedSeries: ProcessedBarLabelSeriesData<V>;
|
|
8
|
+
className: string;
|
|
5
9
|
skipAnimation?: boolean;
|
|
6
|
-
barLabel?: BarLabelItemProps['barLabel'];
|
|
7
|
-
}
|
|
10
|
+
barLabel?: BarLabelItemProps<V | null>['barLabel'];
|
|
11
|
+
}
|
|
12
|
+
export interface ProcessedBarLabelSeriesData<V extends BarValueType | null> {
|
|
13
|
+
seriesId: SeriesId;
|
|
14
|
+
data: ProcessedBarLabelData<V>[];
|
|
15
|
+
barLabel?: 'value' | BarLabelFunction<V>;
|
|
16
|
+
barLabelPlacement?: BarSeriesType['barLabelPlacement'];
|
|
17
|
+
layout?: 'vertical' | 'horizontal';
|
|
18
|
+
xOrigin: number;
|
|
19
|
+
yOrigin: number;
|
|
20
|
+
}
|
|
21
|
+
export interface ProcessedBarLabelData<V extends BarValueType | null> extends AnimationData {
|
|
22
|
+
seriesId: SeriesId;
|
|
23
|
+
dataIndex: number;
|
|
24
|
+
color: string;
|
|
25
|
+
value: V;
|
|
26
|
+
}
|
|
8
27
|
/**
|
|
9
28
|
* @ignore - internal component.
|
|
10
29
|
*/
|
|
11
|
-
declare function BarLabelPlot(props: BarLabelPlotProps): import("react/jsx-runtime").JSX.Element | null;
|
|
30
|
+
declare function BarLabelPlot<V extends BarValueType | null = BarValueType | null>(props: BarLabelPlotProps<V>): import("react/jsx-runtime").JSX.Element | null;
|
|
12
31
|
export { BarLabelPlot };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
2
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
3
|
-
const _excluded = ["processedSeries", "skipAnimation"];
|
|
3
|
+
const _excluded = ["processedSeries", "className", "skipAnimation"];
|
|
4
|
+
import * as React from 'react';
|
|
4
5
|
import { BarLabelItem } from "./BarLabelItem.js";
|
|
5
|
-
import { useUtilityClasses } from "../barClasses.js";
|
|
6
6
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
7
|
/**
|
|
8
8
|
* @ignore - internal component.
|
|
@@ -10,32 +10,32 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
10
10
|
function BarLabelPlot(props) {
|
|
11
11
|
const {
|
|
12
12
|
processedSeries,
|
|
13
|
+
className,
|
|
13
14
|
skipAnimation
|
|
14
15
|
} = props,
|
|
15
16
|
other = _objectWithoutPropertiesLoose(props, _excluded);
|
|
16
17
|
const {
|
|
17
18
|
seriesId,
|
|
18
|
-
data
|
|
19
|
+
data,
|
|
20
|
+
layout,
|
|
21
|
+
xOrigin,
|
|
22
|
+
yOrigin
|
|
19
23
|
} = processedSeries;
|
|
20
|
-
const classes = useUtilityClasses();
|
|
21
24
|
const barLabel = processedSeries.barLabel ?? props.barLabel;
|
|
22
25
|
if (!barLabel) {
|
|
23
26
|
return null;
|
|
24
27
|
}
|
|
25
28
|
return /*#__PURE__*/_jsx("g", {
|
|
26
|
-
className:
|
|
29
|
+
className: className,
|
|
27
30
|
"data-series": seriesId,
|
|
28
31
|
children: data.map(({
|
|
29
|
-
xOrigin,
|
|
30
|
-
yOrigin,
|
|
31
32
|
x,
|
|
32
33
|
y,
|
|
33
34
|
dataIndex,
|
|
34
35
|
color,
|
|
35
36
|
value,
|
|
36
37
|
width,
|
|
37
|
-
height
|
|
38
|
-
layout
|
|
38
|
+
height
|
|
39
39
|
}) => /*#__PURE__*/_jsx(BarLabelItem, _extends({
|
|
40
40
|
seriesId: seriesId,
|
|
41
41
|
dataIndex: dataIndex,
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { SeriesId } from "../../models/seriesType/common.js";
|
|
2
|
-
import { BarLabelFunction } from "./BarLabel.types.js";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { type SeriesId } from "../../models/seriesType/common.js";
|
|
2
|
+
import { type BarLabelFunction } from "./BarLabel.types.js";
|
|
3
|
+
import { type BarValueType } from "../../models/seriesType/bar.js";
|
|
4
|
+
export declare function getBarLabel<V extends BarValueType | null = BarValueType | null>(options: {
|
|
5
|
+
barLabel: 'value' | BarLabelFunction<V>;
|
|
6
|
+
value: V;
|
|
6
7
|
dataIndex: number;
|
|
7
8
|
seriesId: SeriesId;
|
|
8
9
|
height: number;
|
|
9
10
|
width: number;
|
|
10
|
-
})
|
|
11
|
+
}): string | null | undefined;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { BarElementSlotProps, BarElementSlots } from "./BarElement.js";
|
|
3
|
-
import { BarItemIdentifier } from "../models/index.js";
|
|
4
|
-
import { BarLabelSlotProps, BarLabelSlots } from "./BarLabel/BarLabelItem.js";
|
|
5
|
-
import { BarItem, BarLabelContext } from "./BarLabel/index.js";
|
|
2
|
+
import { type BarElementSlotProps, type BarElementSlots } from "./BarElement.js";
|
|
3
|
+
import { type BarItemIdentifier } from "../models/index.js";
|
|
4
|
+
import { type BarLabelSlotProps, type BarLabelSlots } from "./BarLabel/BarLabelItem.js";
|
|
5
|
+
import type { BarItem, BarLabelContext } from "./BarLabel/index.js";
|
|
6
6
|
export interface BarPlotSlots extends BarElementSlots, BarLabelSlots {}
|
|
7
7
|
export interface BarPlotSlotProps extends BarElementSlotProps, BarLabelSlotProps {}
|
|
8
8
|
export interface BarPlotProps {
|
package/esm/BarChart/BarPlot.js
CHANGED
|
@@ -15,13 +15,16 @@ import { useSkipAnimation } from "../hooks/useSkipAnimation.js";
|
|
|
15
15
|
import { useInternalIsZoomInteracting } from "../internals/plugins/featurePlugins/useChartCartesianAxis/useInternalIsZoomInteracting.js";
|
|
16
16
|
import { useBarPlotData } from "./useBarPlotData.js";
|
|
17
17
|
import { useUtilityClasses } from "./barClasses.js";
|
|
18
|
+
import { ANIMATION_DURATION_MS, ANIMATION_TIMING_FUNCTION } from "../internals/animation/animation.js";
|
|
18
19
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
19
20
|
const BarPlotRoot = styled('g', {
|
|
20
21
|
name: 'MuiBarPlot',
|
|
21
22
|
slot: 'Root'
|
|
22
23
|
})({
|
|
23
24
|
[`& .${barElementClasses.root}`]: {
|
|
24
|
-
|
|
25
|
+
transitionProperty: 'opacity, fill',
|
|
26
|
+
transitionDuration: `${ANIMATION_DURATION_MS}ms`,
|
|
27
|
+
transitionTimingFunction: ANIMATION_TIMING_FUNCTION
|
|
25
28
|
}
|
|
26
29
|
});
|
|
27
30
|
|
|
@@ -88,6 +91,9 @@ function BarPlot(props) {
|
|
|
88
91
|
}, id);
|
|
89
92
|
}), completedData.map(({
|
|
90
93
|
seriesId,
|
|
94
|
+
layout,
|
|
95
|
+
xOrigin,
|
|
96
|
+
yOrigin,
|
|
91
97
|
data
|
|
92
98
|
}) => {
|
|
93
99
|
return /*#__PURE__*/_jsx("g", {
|
|
@@ -97,11 +103,8 @@ function BarPlot(props) {
|
|
|
97
103
|
dataIndex,
|
|
98
104
|
color,
|
|
99
105
|
maskId,
|
|
100
|
-
layout,
|
|
101
106
|
x,
|
|
102
|
-
xOrigin,
|
|
103
107
|
y,
|
|
104
|
-
yOrigin,
|
|
105
108
|
width,
|
|
106
109
|
height
|
|
107
110
|
}) => {
|
|
@@ -136,6 +139,7 @@ function BarPlot(props) {
|
|
|
136
139
|
})
|
|
137
140
|
}, seriesId);
|
|
138
141
|
}), completedData.map(processedSeries => /*#__PURE__*/_jsx(BarLabelPlot, _extends({
|
|
142
|
+
className: classes.seriesLabels,
|
|
139
143
|
processedSeries: processedSeries,
|
|
140
144
|
skipAnimation: skipAnimation,
|
|
141
145
|
barLabel: barLabel
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
4
|
+
import * as React from 'react';
|
|
5
|
+
import { useTheme } from '@mui/material/styles';
|
|
6
|
+
import { useFocusedItem } from "../hooks/useFocusedItem.js";
|
|
7
|
+
import { useBarSeriesContext, useXAxes, useYAxes } from "../hooks/index.js";
|
|
8
|
+
import { getBarDimensions } from "../internals/getBarDimensions.js";
|
|
9
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
|
+
export function FocusedBar(props) {
|
|
11
|
+
const theme = useTheme();
|
|
12
|
+
const focusedItem = useFocusedItem();
|
|
13
|
+
const barSeries = useBarSeriesContext();
|
|
14
|
+
const {
|
|
15
|
+
xAxis,
|
|
16
|
+
xAxisIds
|
|
17
|
+
} = useXAxes();
|
|
18
|
+
const {
|
|
19
|
+
yAxis,
|
|
20
|
+
yAxisIds
|
|
21
|
+
} = useYAxes();
|
|
22
|
+
if (focusedItem === null || focusedItem.seriesType !== 'bar' || !barSeries) {
|
|
23
|
+
return null;
|
|
24
|
+
}
|
|
25
|
+
const series = barSeries?.series[focusedItem.seriesId];
|
|
26
|
+
const xAxisId = series.xAxisId ?? xAxisIds[0];
|
|
27
|
+
const yAxisId = series.yAxisId ?? yAxisIds[0];
|
|
28
|
+
const xAxisConfig = xAxis[xAxisId];
|
|
29
|
+
const yAxisConfig = yAxis[yAxisId];
|
|
30
|
+
const verticalLayout = barSeries.series[focusedItem.seriesId].layout === 'vertical';
|
|
31
|
+
const groupIndex = barSeries.stackingGroups.findIndex(group => group.ids.includes(focusedItem.seriesId));
|
|
32
|
+
const barDimensions = getBarDimensions({
|
|
33
|
+
verticalLayout,
|
|
34
|
+
xAxisConfig,
|
|
35
|
+
yAxisConfig,
|
|
36
|
+
series,
|
|
37
|
+
dataIndex: focusedItem.dataIndex,
|
|
38
|
+
numberOfGroups: barSeries.stackingGroups.length,
|
|
39
|
+
groupIndex
|
|
40
|
+
});
|
|
41
|
+
if (barDimensions === null) {
|
|
42
|
+
return null;
|
|
43
|
+
}
|
|
44
|
+
const {
|
|
45
|
+
x,
|
|
46
|
+
y,
|
|
47
|
+
height,
|
|
48
|
+
width
|
|
49
|
+
} = barDimensions;
|
|
50
|
+
return /*#__PURE__*/_jsx("rect", _extends({
|
|
51
|
+
fill: "none",
|
|
52
|
+
stroke: (theme.vars ?? theme).palette.text.primary,
|
|
53
|
+
strokeWidth: 2,
|
|
54
|
+
x: x - 3,
|
|
55
|
+
y: y - 3,
|
|
56
|
+
width: width + 6,
|
|
57
|
+
height: height + 6,
|
|
58
|
+
rx: 3,
|
|
59
|
+
ry: 3
|
|
60
|
+
}, props));
|
|
61
|
+
}
|