@mui/x-charts 9.8.0 → 9.10.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.mts +1 -1
- package/BarChart/AnimatedBarElement.d.ts +1 -1
- package/BarChart/BarClipPath.d.mts +1 -1
- package/BarChart/BarClipPath.d.ts +1 -1
- package/BarChart/BarElement.d.mts +1 -1
- package/BarChart/BarElement.d.ts +1 -1
- package/BarChart/BarLabel/BarLabelItem.d.mts +1 -1
- package/BarChart/BarLabel/BarLabelItem.d.ts +1 -1
- package/BarChart/BarLabel/BarLabelPlot.d.mts +2 -1
- package/BarChart/BarLabel/BarLabelPlot.d.ts +2 -1
- package/BarChart/BatchBarPlot/BarGroup.d.mts +1 -1
- package/BarChart/BatchBarPlot/BarGroup.d.ts +1 -1
- package/BarChart/BatchBarPlot/BatchBarPlot.d.mts +2 -1
- package/BarChart/BatchBarPlot/BatchBarPlot.d.ts +2 -1
- package/BarChart/FocusedBar.d.mts +1 -1
- package/BarChart/FocusedBar.d.ts +1 -1
- package/BarChart/IndividualBarPlot.d.mts +2 -1
- package/BarChart/IndividualBarPlot.d.ts +2 -1
- package/BarChart/barClasses.d.mts +1 -1
- package/BarChart/barClasses.d.ts +1 -1
- package/BarChart/seriesConfig/bar/getSeriesWithDefaultValues.d.mts +10 -10
- package/BarChart/seriesConfig/bar/getSeriesWithDefaultValues.d.ts +10 -10
- package/BarChart/seriesConfig/bar/tooltipPosition.d.mts +2 -3
- package/BarChart/seriesConfig/bar/tooltipPosition.d.ts +2 -3
- package/BarChart/seriesConfig/bar/tooltipPosition.js +19 -15
- package/BarChart/seriesConfig/bar/tooltipPosition.mjs +18 -14
- package/BarChart/seriesConfig/index.js +2 -2
- package/BarChart/seriesConfig/index.mjs +2 -2
- package/BarChart/useBarPlotData.d.mts +5 -1
- package/BarChart/useBarPlotData.d.ts +5 -1
- package/BarChart/useBarPlotData.js +102 -25
- package/BarChart/useBarPlotData.mjs +102 -26
- package/CHANGELOG.md +230 -0
- package/ChartsAxis/ChartsAxis.d.mts +2 -1
- package/ChartsAxis/ChartsAxis.d.ts +2 -1
- package/ChartsAxisHighlight/ChartsAxisHighlight.d.mts +2 -1
- package/ChartsAxisHighlight/ChartsAxisHighlight.d.ts +2 -1
- package/ChartsAxisHighlight/ChartsXAxisHighlight.d.mts +2 -1
- package/ChartsAxisHighlight/ChartsXAxisHighlight.d.ts +2 -1
- package/ChartsAxisHighlight/ChartsXAxisHighlight.js +22 -5
- package/ChartsAxisHighlight/ChartsXAxisHighlight.mjs +23 -6
- package/ChartsAxisHighlight/ChartsYAxisHighlight.d.mts +2 -1
- package/ChartsAxisHighlight/ChartsYAxisHighlight.d.ts +2 -1
- package/ChartsAxisHighlight/ChartsYAxisHighlight.js +22 -5
- package/ChartsAxisHighlight/ChartsYAxisHighlight.mjs +23 -6
- package/ChartsAxisHighlight/getSampledBandHighlight.d.mts +27 -0
- package/ChartsAxisHighlight/getSampledBandHighlight.d.ts +27 -0
- package/ChartsAxisHighlight/getSampledBandHighlight.js +35 -0
- package/ChartsAxisHighlight/getSampledBandHighlight.mjs +29 -0
- package/ChartsAxisHighlightValue/ChartsAxisHighlightValue.d.mts +1 -1
- package/ChartsAxisHighlightValue/ChartsAxisHighlightValue.d.ts +1 -1
- package/ChartsAxisHighlightValue/ChartsAxisHighlightValueItem.d.mts +2 -1
- package/ChartsAxisHighlightValue/ChartsAxisHighlightValueItem.d.ts +2 -1
- package/ChartsAxisHighlightValue/chartsAxisHighlightValueClasses.d.mts +1 -1
- package/ChartsAxisHighlightValue/chartsAxisHighlightValueClasses.d.ts +1 -1
- package/ChartsBrushOverlay/ChartsBrushOverlay.d.mts +2 -1
- package/ChartsBrushOverlay/ChartsBrushOverlay.d.ts +2 -1
- package/ChartsClipPath/ChartsClipPath.d.mts +1 -1
- package/ChartsClipPath/ChartsClipPath.d.ts +1 -1
- package/ChartsDataProvider/ChartsDataProvider.d.mts +1 -1
- package/ChartsDataProvider/ChartsDataProvider.d.ts +1 -1
- package/ChartsDataProvider/useChartsDataProviderProps.d.mts +1 -1
- package/ChartsDataProvider/useChartsDataProviderProps.d.ts +1 -1
- package/ChartsGrid/ChartsGrid.d.mts +1 -1
- package/ChartsGrid/ChartsGrid.d.ts +1 -1
- package/ChartsGrid/ChartsHorizontalGrid.d.mts +2 -1
- package/ChartsGrid/ChartsHorizontalGrid.d.ts +2 -1
- package/ChartsGrid/ChartsVerticalGrid.d.mts +2 -1
- package/ChartsGrid/ChartsVerticalGrid.d.ts +2 -1
- package/ChartsLabel/labelGradientClasses.d.mts +1 -1
- package/ChartsLabel/labelGradientClasses.d.ts +1 -1
- package/ChartsLabel/labelMarkClasses.d.mts +1 -1
- package/ChartsLabel/labelMarkClasses.d.ts +1 -1
- package/ChartsLegend/chartsLegend.types.d.mts +2 -1
- package/ChartsLegend/chartsLegend.types.d.ts +2 -1
- package/ChartsLegend/chartsLegendClasses.d.mts +1 -1
- package/ChartsLegend/chartsLegendClasses.d.ts +1 -1
- package/ChartsLegend/continuousColorLegendClasses.d.mts +1 -1
- package/ChartsLegend/continuousColorLegendClasses.d.ts +1 -1
- package/ChartsLegend/piecewiseColorLegendClasses.d.mts +1 -1
- package/ChartsLegend/piecewiseColorLegendClasses.d.ts +1 -1
- package/ChartsLocalizationProvider/ChartsLocalizationProvider.d.mts +1 -1
- package/ChartsLocalizationProvider/ChartsLocalizationProvider.d.ts +1 -1
- package/ChartsOverlay/ChartsLoadingOverlay.d.mts +1 -1
- package/ChartsOverlay/ChartsLoadingOverlay.d.ts +1 -1
- package/ChartsOverlay/ChartsNoDataOverlay.d.mts +1 -1
- package/ChartsOverlay/ChartsNoDataOverlay.d.ts +1 -1
- package/ChartsOverlay/ChartsOverlay.d.mts +1 -1
- package/ChartsOverlay/ChartsOverlay.d.ts +1 -1
- package/ChartsRadialAxisHighlight/ChartsRadialAxisHighlight.d.mts +2 -1
- package/ChartsRadialAxisHighlight/ChartsRadialAxisHighlight.d.ts +2 -1
- package/ChartsRadialAxisHighlight/ChartsRadiusAxisHighlight.d.mts +2 -1
- package/ChartsRadialAxisHighlight/ChartsRadiusAxisHighlight.d.ts +2 -1
- package/ChartsRadialAxisHighlight/ChartsRotationAxisHighlight.d.mts +2 -1
- package/ChartsRadialAxisHighlight/ChartsRotationAxisHighlight.d.ts +2 -1
- package/ChartsRadialDataProvider/ChartsRadialDataProvider.d.mts +1 -1
- package/ChartsRadialDataProvider/ChartsRadialDataProvider.d.ts +1 -1
- package/ChartsRadialDataProvider/useChartsRadialDataProviderProps.d.mts +1 -1
- package/ChartsRadialDataProvider/useChartsRadialDataProviderProps.d.ts +1 -1
- package/ChartsRadialGrid/ChartsRadialGrid.d.mts +1 -1
- package/ChartsRadialGrid/ChartsRadialGrid.d.ts +1 -1
- package/ChartsRadialGrid/ChartsRadiusGrid.d.mts +2 -1
- package/ChartsRadialGrid/ChartsRadiusGrid.d.ts +2 -1
- package/ChartsRadialGrid/ChartsRotationGrid.d.mts +2 -1
- package/ChartsRadialGrid/ChartsRotationGrid.d.ts +2 -1
- package/ChartsRadiusAxis/ChartsRadiusAxis.d.mts +1 -1
- package/ChartsRadiusAxis/ChartsRadiusAxis.d.ts +1 -1
- package/ChartsRadiusAxis/chartsRadiusAxisClasses.d.mts +1 -1
- package/ChartsRadiusAxis/chartsRadiusAxisClasses.d.ts +1 -1
- package/ChartsRadiusAxis/createGetLabelTextAnchors.d.mts +6 -6
- package/ChartsRadiusAxis/createGetLabelTextAnchors.d.ts +6 -6
- package/ChartsReferenceLine/ChartsReferenceLine.d.mts +1 -1
- package/ChartsReferenceLine/ChartsReferenceLine.d.ts +1 -1
- package/ChartsReferenceLine/ChartsXReferenceLine.d.mts +2 -2
- package/ChartsReferenceLine/ChartsXReferenceLine.d.ts +2 -2
- package/ChartsReferenceLine/ChartsYReferenceLine.d.mts +2 -2
- package/ChartsReferenceLine/ChartsYReferenceLine.d.ts +2 -2
- package/ChartsRotationAxis/ChartsRotationAxis.d.mts +1 -1
- package/ChartsRotationAxis/ChartsRotationAxis.d.ts +1 -1
- package/ChartsRotationAxis/chartsRotationAxisClasses.d.mts +1 -1
- package/ChartsRotationAxis/chartsRotationAxisClasses.d.ts +1 -1
- package/ChartsText/ChartsText.d.mts +1 -1
- package/ChartsText/ChartsText.d.ts +1 -1
- package/ChartsTooltip/ChartTooltip.types.d.mts +2 -1
- package/ChartsTooltip/ChartTooltip.types.d.ts +2 -1
- package/ChartsTooltip/ChartsAxisTooltipContent.d.mts +1 -1
- package/ChartsTooltip/ChartsAxisTooltipContent.d.ts +1 -1
- package/ChartsTooltip/ChartsItemTooltipContent.d.mts +2 -1
- package/ChartsTooltip/ChartsItemTooltipContent.d.ts +2 -1
- package/ChartsTooltip/ChartsTooltip.d.mts +1 -1
- package/ChartsTooltip/ChartsTooltip.d.ts +1 -1
- package/ChartsTooltip/ChartsTooltipContainer.d.mts +5 -2
- package/ChartsTooltip/ChartsTooltipContainer.d.ts +5 -2
- package/ChartsTooltip/ChartsTooltipContainer.js +1 -5
- package/ChartsTooltip/ChartsTooltipContainer.mjs +2 -6
- package/ChartsTooltip/ChartsTooltipTable.d.mts +1 -1
- package/ChartsTooltip/ChartsTooltipTable.d.ts +1 -1
- package/ChartsTooltip/chartsTooltipClasses.d.mts +1 -1
- package/ChartsTooltip/chartsTooltipClasses.d.ts +1 -1
- package/ChartsTooltip/useItemTooltip.d.mts +1 -1
- package/ChartsTooltip/useItemTooltip.d.ts +1 -1
- package/ChartsXAxis/ChartsGroupedXAxisTicks.d.mts +2 -1
- package/ChartsXAxis/ChartsGroupedXAxisTicks.d.ts +2 -1
- package/ChartsXAxis/ChartsSingleXAxisTicks.d.mts +2 -1
- package/ChartsXAxis/ChartsSingleXAxisTicks.d.ts +2 -1
- package/ChartsXAxis/ChartsXAxis.d.mts +1 -1
- package/ChartsXAxis/ChartsXAxis.d.ts +1 -1
- package/ChartsXAxis/ChartsXAxisImpl.d.mts +2 -1
- package/ChartsXAxis/ChartsXAxisImpl.d.ts +2 -1
- package/ChartsXAxis/useAxisTicksProps.d.mts +2573 -2573
- package/ChartsXAxis/useAxisTicksProps.d.ts +2573 -2573
- package/ChartsXAxis/utilities.d.mts +1 -1
- package/ChartsXAxis/utilities.d.ts +1 -1
- package/ChartsYAxis/ChartsGroupedYAxisTicks.d.mts +2 -1
- package/ChartsYAxis/ChartsGroupedYAxisTicks.d.ts +2 -1
- package/ChartsYAxis/ChartsSingleYAxisTicks.d.mts +2 -1
- package/ChartsYAxis/ChartsSingleYAxisTicks.d.ts +2 -1
- package/ChartsYAxis/ChartsYAxis.d.mts +1 -1
- package/ChartsYAxis/ChartsYAxis.d.ts +1 -1
- package/ChartsYAxis/ChartsYAxisImpl.d.mts +2 -1
- package/ChartsYAxis/ChartsYAxisImpl.d.ts +2 -1
- package/ChartsYAxis/useAxisTicksProps.d.mts +2573 -2573
- package/ChartsYAxis/useAxisTicksProps.d.ts +2573 -2573
- package/ChartsYAxis/utilities.d.mts +1 -1
- package/ChartsYAxis/utilities.d.ts +1 -1
- package/Gauge/GaugeProvider.d.mts +1 -1
- package/Gauge/GaugeProvider.d.ts +1 -1
- package/Gauge/GaugeReferenceArc.d.mts +1 -1
- package/Gauge/GaugeReferenceArc.d.ts +1 -1
- package/Gauge/GaugeValueArc.d.mts +1 -1
- package/Gauge/GaugeValueArc.d.ts +1 -1
- package/Gauge/GaugeValueText.d.mts +1 -1
- package/Gauge/GaugeValueText.d.ts +1 -1
- package/LineChart/AnimatedArea.d.mts +1 -1
- package/LineChart/AnimatedArea.d.ts +1 -1
- package/LineChart/AppearingMask.d.mts +1 -1
- package/LineChart/AppearingMask.d.ts +1 -1
- package/LineChart/AreaElement.d.mts +1 -1
- package/LineChart/AreaElement.d.ts +1 -1
- package/LineChart/AreaPlot.d.mts +4 -4
- package/LineChart/AreaPlot.d.ts +4 -4
- package/LineChart/AreaPlot.js +4 -5
- package/LineChart/AreaPlot.mjs +4 -5
- package/LineChart/CircleMarkElement.d.mts +1 -1
- package/LineChart/CircleMarkElement.d.ts +1 -1
- package/LineChart/FocusedLineMark.d.mts +1 -1
- package/LineChart/FocusedLineMark.d.ts +1 -1
- package/LineChart/LineElement.d.mts +1 -1
- package/LineChart/LineElement.d.ts +1 -1
- package/LineChart/LineHighlightElement.d.mts +1 -1
- package/LineChart/LineHighlightElement.d.ts +1 -1
- package/LineChart/LineHighlightPlot.d.mts +1 -1
- package/LineChart/LineHighlightPlot.d.ts +1 -1
- package/LineChart/LinePlot.d.mts +4 -4
- package/LineChart/LinePlot.d.ts +4 -4
- package/LineChart/LinePlot.js +7 -7
- package/LineChart/LinePlot.mjs +7 -7
- package/LineChart/MarkElement.d.mts +1 -1
- package/LineChart/MarkElement.d.ts +1 -1
- package/LineChart/MarkPlot.d.mts +6 -5
- package/LineChart/MarkPlot.d.ts +6 -5
- package/LineChart/MarkPlot.js +1 -1
- package/LineChart/MarkPlot.mjs +1 -1
- package/LineChart/lineClasses.d.mts +1 -1
- package/LineChart/lineClasses.d.ts +1 -1
- package/LineChart/seriesConfig/index.js +2 -2
- package/LineChart/seriesConfig/index.mjs +2 -2
- package/LineChart/seriesConfig/tooltipPosition.d.mts +2 -3
- package/LineChart/seriesConfig/tooltipPosition.d.ts +2 -3
- package/LineChart/seriesConfig/tooltipPosition.js +14 -14
- package/LineChart/seriesConfig/tooltipPosition.mjs +13 -13
- package/LineChart/useLineItemClickHandler.d.mts +12 -0
- package/LineChart/useLineItemClickHandler.d.ts +12 -0
- package/LineChart/useLineItemClickHandler.js +54 -0
- package/LineChart/useLineItemClickHandler.mjs +48 -0
- package/LineChart/useLinePlotData.d.mts +13 -1
- package/LineChart/useLinePlotData.d.ts +13 -1
- package/LineChart/useLinePlotData.js +90 -33
- package/LineChart/useLinePlotData.mjs +92 -34
- package/PieChart/FocusedPieArc.d.mts +1 -1
- package/PieChart/FocusedPieArc.d.ts +1 -1
- package/PieChart/PieArcLabelPlot.d.mts +3 -2
- package/PieChart/PieArcLabelPlot.d.ts +3 -2
- package/PieChart/PieArcPlot.d.mts +3 -2
- package/PieChart/PieArcPlot.d.ts +3 -2
- package/PieChart/PiePlot.d.mts +1 -1
- package/PieChart/PiePlot.d.ts +1 -1
- package/PieChart/pieClasses.d.mts +1 -1
- package/PieChart/pieClasses.d.ts +1 -1
- package/PieChart/seriesConfig/index.js +2 -2
- package/PieChart/seriesConfig/index.mjs +2 -2
- package/PieChart/seriesConfig/tooltipPosition.d.mts +2 -3
- package/PieChart/seriesConfig/tooltipPosition.d.ts +2 -3
- package/PieChart/seriesConfig/tooltipPosition.js +7 -11
- package/PieChart/seriesConfig/tooltipPosition.mjs +6 -10
- package/RadarChart/FocusedRadarMark.d.mts +1 -1
- package/RadarChart/FocusedRadarMark.d.ts +1 -1
- package/RadarChart/RadarAxis/RadarAxis.d.mts +1 -1
- package/RadarChart/RadarAxis/RadarAxis.d.ts +1 -1
- package/RadarChart/RadarAxis/RadarAxis.utils.d.mts +5 -5
- package/RadarChart/RadarAxis/RadarAxis.utils.d.ts +5 -5
- package/RadarChart/RadarAxisHighlight/RadarAxisHighlight.d.mts +1 -1
- package/RadarChart/RadarAxisHighlight/RadarAxisHighlight.d.ts +1 -1
- package/RadarChart/RadarDataProvider/RadarDataProvider.d.mts +2 -1
- package/RadarChart/RadarDataProvider/RadarDataProvider.d.ts +2 -1
- package/RadarChart/RadarGrid/CircularRadarGrid.d.mts +2 -1
- package/RadarChart/RadarGrid/CircularRadarGrid.d.ts +2 -1
- package/RadarChart/RadarGrid/CircularRadarStripes.d.mts +2 -1
- package/RadarChart/RadarGrid/CircularRadarStripes.d.ts +2 -1
- package/RadarChart/RadarGrid/RadarGrid.d.mts +2 -1
- package/RadarChart/RadarGrid/RadarGrid.d.ts +2 -1
- package/RadarChart/RadarGrid/SharpRadarGrid.d.mts +2 -1
- package/RadarChart/RadarGrid/SharpRadarGrid.d.ts +2 -1
- package/RadarChart/RadarGrid/SharpRadarStripes.d.mts +2 -1
- package/RadarChart/RadarGrid/SharpRadarStripes.d.ts +2 -1
- package/RadarChart/RadarMetricLabels/RadarMetricLabels.d.mts +2 -1
- package/RadarChart/RadarMetricLabels/RadarMetricLabels.d.ts +2 -1
- package/RadarChart/RadarSeriesPlot/RadarSeriesArea.d.mts +2 -1
- package/RadarChart/RadarSeriesPlot/RadarSeriesArea.d.ts +2 -1
- package/RadarChart/RadarSeriesPlot/RadarSeriesMarks.d.mts +2 -1
- package/RadarChart/RadarSeriesPlot/RadarSeriesMarks.d.ts +2 -1
- package/RadarChart/RadarSeriesPlot/RadarSeriesPlot.d.mts +1 -1
- package/RadarChart/RadarSeriesPlot/RadarSeriesPlot.d.ts +1 -1
- package/RadarChart/RadarSeriesPlot/useInteractionAllItemProps.d.mts +1 -1
- package/RadarChart/RadarSeriesPlot/useInteractionAllItemProps.d.ts +1 -1
- package/RadarChart/RadarSeriesPlot/useRadarSeriesData.d.mts +12 -12
- package/RadarChart/RadarSeriesPlot/useRadarSeriesData.d.ts +12 -12
- package/RadarChart/radarClasses.d.mts +1 -1
- package/RadarChart/radarClasses.d.ts +1 -1
- package/RadarChart/seriesConfig/index.js +2 -2
- package/RadarChart/seriesConfig/index.mjs +2 -2
- package/RadarChart/seriesConfig/tooltipPosition.d.mts +2 -3
- package/RadarChart/seriesConfig/tooltipPosition.d.ts +2 -3
- package/RadarChart/seriesConfig/tooltipPosition.js +9 -16
- package/RadarChart/seriesConfig/tooltipPosition.mjs +8 -15
- package/RadarChart/useRadarChartProps.d.mts +1 -1
- package/RadarChart/useRadarChartProps.d.ts +1 -1
- package/ScatterChart/BatchScatter.d.mts +2 -1
- package/ScatterChart/BatchScatter.d.ts +2 -1
- package/ScatterChart/FocusedScatterMark.d.mts +1 -1
- package/ScatterChart/FocusedScatterMark.d.ts +1 -1
- package/ScatterChart/HighlightedScatterMark.d.mts +1 -1
- package/ScatterChart/HighlightedScatterMark.d.ts +1 -1
- package/ScatterChart/Scatter.d.mts +1 -1
- package/ScatterChart/Scatter.d.ts +1 -1
- package/ScatterChart/ScatterChart.d.mts +2 -1
- package/ScatterChart/ScatterChart.d.ts +2 -1
- package/ScatterChart/ScatterMarker.d.mts +1 -1
- package/ScatterChart/ScatterMarker.d.ts +1 -1
- package/ScatterChart/ScatterMarker.types.d.mts +2 -1
- package/ScatterChart/ScatterMarker.types.d.ts +2 -1
- package/ScatterChart/ScatterPlot.d.mts +1 -1
- package/ScatterChart/ScatterPlot.d.ts +1 -1
- package/ScatterChart/async/ScatterAsync.d.mts +2 -1
- package/ScatterChart/async/ScatterAsync.d.ts +2 -1
- package/ScatterChart/async/ScatterAsyncBatch.d.mts +1 -1
- package/ScatterChart/async/ScatterAsyncBatch.d.ts +1 -1
- package/ScatterChart/scatterClasses.d.mts +1 -1
- package/ScatterChart/scatterClasses.d.ts +1 -1
- package/ScatterChart/seriesConfig/index.js +2 -2
- package/ScatterChart/seriesConfig/index.mjs +2 -2
- package/ScatterChart/seriesConfig/tooltipPosition.d.mts +2 -3
- package/ScatterChart/seriesConfig/tooltipPosition.d.ts +2 -3
- package/ScatterChart/seriesConfig/tooltipPosition.js +13 -13
- package/ScatterChart/seriesConfig/tooltipPosition.mjs +12 -12
- package/ScatterChart/useScatterPlotData.d.mts +1 -1
- package/ScatterChart/useScatterPlotData.d.ts +1 -1
- package/SparkLineChart/SparkLineChart.d.mts +1 -1
- package/SparkLineChart/SparkLineChart.d.ts +1 -1
- package/Toolbar/Toolbar.types.d.mts +2 -1
- package/Toolbar/Toolbar.types.d.ts +2 -1
- package/context/ChartsProvider/ChartsProvider.d.mts +1 -1
- package/context/ChartsProvider/ChartsProvider.d.ts +1 -1
- package/context/ChartsSlotsContext.d.mts +1 -1
- package/context/ChartsSlotsContext.d.ts +1 -1
- package/index.js +1 -1
- package/index.mjs +1 -1
- package/internals/colorScale.d.mts +1 -1
- package/internals/colorScale.d.ts +1 -1
- package/internals/components/ChartsAccessibilityProxy/ChartsAccessibilityProxy.d.mts +2 -1
- package/internals/components/ChartsAccessibilityProxy/ChartsAccessibilityProxy.d.ts +2 -1
- package/internals/components/ChartsAxesGradients/ChartsAxesGradients.d.mts +2 -1
- package/internals/components/ChartsAxesGradients/ChartsAxesGradients.d.ts +2 -1
- package/internals/components/ChartsAxesGradients/ChartsContinuousGradient.d.mts +1 -1
- package/internals/components/ChartsAxesGradients/ChartsContinuousGradient.d.ts +1 -1
- package/internals/components/ChartsAxesGradients/ChartsContinuousGradientObjectBound.d.mts +1 -1
- package/internals/components/ChartsAxesGradients/ChartsContinuousGradientObjectBound.d.ts +1 -1
- package/internals/components/ChartsAxesGradients/ChartsPiecewiseGradient.d.mts +2 -1
- package/internals/components/ChartsAxesGradients/ChartsPiecewiseGradient.d.ts +2 -1
- package/internals/configInit.d.mts +1 -1
- package/internals/configInit.d.ts +1 -1
- package/internals/consumeSlots.d.mts +1 -1
- package/internals/consumeSlots.d.ts +1 -1
- package/internals/consumeThemeProps.d.mts +1 -1
- package/internals/consumeThemeProps.d.ts +1 -1
- package/internals/createCommonKeyboardFocusHandler.d.mts +1 -1
- package/internals/createCommonKeyboardFocusHandler.d.ts +1 -1
- package/internals/createGetBarDimensions.d.mts +14 -1
- package/internals/createGetBarDimensions.d.ts +14 -1
- package/internals/createGetBarDimensions.js +45 -0
- package/internals/createGetBarDimensions.mjs +45 -0
- package/internals/geometry.js +1 -1
- package/internals/geometry.mjs +1 -1
- package/internals/getGraphemeCount.d.mts +2 -2
- package/internals/getGraphemeCount.d.ts +2 -2
- package/internals/getGroupingConfig.d.mts +1 -1
- package/internals/getGroupingConfig.d.ts +1 -1
- package/internals/identifierCleaner.d.mts +1 -1
- package/internals/identifierCleaner.d.ts +1 -1
- package/internals/index.d.mts +1 -2
- package/internals/index.d.ts +1 -2
- package/internals/index.js +12 -8
- package/internals/index.mjs +1 -2
- package/internals/invertScale.d.mts +1 -1
- package/internals/invertScale.d.ts +1 -1
- package/internals/plugins/corePlugins/useChartSeries/processSeries.d.mts +1 -1
- package/internals/plugins/corePlugins/useChartSeries/processSeries.d.ts +1 -1
- package/internals/plugins/corePlugins/useChartSeries/useChartSeries.selectors.d.mts +4 -4
- package/internals/plugins/corePlugins/useChartSeries/useChartSeries.selectors.d.ts +4 -4
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/index.d.mts +1 -1
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/index.d.ts +1 -1
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/index.js +4 -4
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/index.mjs +1 -1
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/seriesConfig.types.d.mts +11 -6
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/seriesConfig.types.d.ts +11 -6
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/tooltipItemPositionSelector.types.d.mts +18 -0
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/tooltipItemPositionSelector.types.d.ts +18 -0
- package/internals/plugins/featurePlugins/useChartBrush/useChartBrush.selectors.d.mts +3 -3
- package/internals/plugins/featurePlugins/useChartBrush/useChartBrush.selectors.d.ts +3 -3
- package/internals/plugins/featurePlugins/useChartCartesianAxis/createZoomLookup.d.mts +1 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/createZoomLookup.d.ts +1 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/defaultizeZoom.d.mts +2 -2
- package/internals/plugins/featurePlugins/useChartCartesianAxis/defaultizeZoom.d.ts +2 -2
- package/internals/plugins/featurePlugins/useChartCartesianAxis/getAxisDomainLimit.d.mts +1 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/getAxisDomainLimit.d.ts +1 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/getAxisTriggerTooltip.d.mts +1 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/getAxisTriggerTooltip.d.ts +1 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/index.d.mts +2 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/index.d.ts +2 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/index.js +12 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/index.mjs +1 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/sampling.selectors.d.mts +26 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/sampling.selectors.d.ts +26 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/sampling.selectors.js +89 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/sampling.selectors.mjs +81 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/sampling.types.d.mts +93 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/sampling.types.d.ts +93 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxis.types.d.mts +5 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxis.types.d.ts +5 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.d.mts +70 -70
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.d.ts +70 -70
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianHighlight.selectors.d.mts +78 -78
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianHighlight.selectors.d.ts +78 -78
- package/internals/plugins/featurePlugins/useChartHighlight/useChartHighlight.selectors.d.mts +7 -7
- package/internals/plugins/featurePlugins/useChartHighlight/useChartHighlight.selectors.d.ts +7 -7
- package/internals/plugins/featurePlugins/useChartItemClick/useChartItemClick.d.mts +1 -1
- package/internals/plugins/featurePlugins/useChartItemClick/useChartItemClick.d.ts +1 -1
- package/internals/plugins/featurePlugins/useChartPolarAxis/getAxisExtremum.d.mts +1 -1
- package/internals/plugins/featurePlugins/useChartPolarAxis/getAxisExtremum.d.ts +1 -1
- package/internals/plugins/featurePlugins/useChartPolarAxis/getAxisTriggerTooltip.d.mts +1 -1
- package/internals/plugins/featurePlugins/useChartPolarAxis/getAxisTriggerTooltip.d.ts +1 -1
- package/internals/plugins/featurePlugins/useChartTooltip/useChartTooltip.selectors.d.mts +4 -9
- package/internals/plugins/featurePlugins/useChartTooltip/useChartTooltip.selectors.d.ts +4 -9
- package/internals/plugins/featurePlugins/useChartTooltip/useChartTooltip.selectors.js +2 -53
- package/internals/plugins/featurePlugins/useChartTooltip/useChartTooltip.selectors.mjs +2 -53
- package/internals/plugins/featurePlugins/useProgressiveRendering/useProgressiveRendering.selectors.d.mts +1 -1
- package/internals/plugins/featurePlugins/useProgressiveRendering/useProgressiveRendering.selectors.d.ts +1 -1
- package/internals/seriesSelectorOfType.d.mts +6 -6
- package/internals/seriesSelectorOfType.d.ts +6 -6
- package/internals/sizeScale.d.mts +1 -1
- package/internals/sizeScale.d.ts +1 -1
- package/internals/sliceUntil.d.mts +2 -2
- package/internals/sliceUntil.d.ts +2 -2
- package/models/axis.d.mts +5 -4
- package/models/axis.d.ts +5 -4
- package/models/seriesType/config.d.mts +8 -4
- package/models/seriesType/config.d.ts +8 -4
- package/models/seriesType/index.d.mts +1 -1
- package/models/seriesType/index.d.ts +1 -1
- package/models/seriesType/line.d.mts +14 -1
- package/models/seriesType/line.d.ts +14 -1
- package/package.json +4 -4
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/tooltipItemPositionGetter.types.d.mts +0 -45
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/tooltipItemPositionGetter.types.d.ts +0 -45
- package/internals/plugins/featurePlugins/useGeoProjection/useGeoProjection.selectors.d.mts +0 -48
- package/internals/plugins/featurePlugins/useGeoProjection/useGeoProjection.selectors.d.ts +0 -48
- package/internals/plugins/featurePlugins/useGeoProjection/useGeoProjection.selectors.js +0 -124
- package/internals/plugins/featurePlugins/useGeoProjection/useGeoProjection.selectors.mjs +0 -117
- package/internals/plugins/featurePlugins/useGeoProjection/useGeoProjection.types.d.mts +0 -73
- package/internals/plugins/featurePlugins/useGeoProjection/useGeoProjection.types.d.ts +0 -73
- /package/internals/plugins/corePlugins/useChartSeriesConfig/types/{tooltipItemPositionGetter.types.js → tooltipItemPositionSelector.types.js} +0 -0
- /package/internals/plugins/corePlugins/useChartSeriesConfig/types/{tooltipItemPositionGetter.types.mjs → tooltipItemPositionSelector.types.mjs} +0 -0
- /package/internals/plugins/featurePlugins/{useGeoProjection/useGeoProjection.types.js → useChartCartesianAxis/sampling.types.js} +0 -0
- /package/internals/plugins/featurePlugins/{useGeoProjection/useGeoProjection.types.mjs → useChartCartesianAxis/sampling.types.mjs} +0 -0
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
3
4
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
5
|
Object.defineProperty(exports, "__esModule", {
|
|
5
6
|
value: true
|
|
@@ -7,12 +8,17 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
8
|
exports.processBarDataForPlot = processBarDataForPlot;
|
|
8
9
|
exports.useBarPlotData = useBarPlotData;
|
|
9
10
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
11
|
+
var React = _interopRequireWildcard(require("react"));
|
|
10
12
|
var _getColor = _interopRequireDefault(require("./seriesConfig/bar/getColor"));
|
|
11
13
|
var _useAxis = require("../hooks/useAxis");
|
|
12
14
|
var _checkBarChartScaleErrors = require("./checkBarChartScaleErrors");
|
|
13
15
|
var _useBarSeries = require("../hooks/useBarSeries");
|
|
14
16
|
var _createGetBarDimensions = require("../internals/createGetBarDimensions");
|
|
15
17
|
var _useChartId = require("../hooks/useChartId");
|
|
18
|
+
var _useStore = require("../internals/store/useStore");
|
|
19
|
+
var _sampling = require("../internals/plugins/featurePlugins/useChartCartesianAxis/sampling.selectors");
|
|
20
|
+
var _useChartSeriesConfig = require("../internals/plugins/corePlugins/useChartSeriesConfig");
|
|
21
|
+
var _useChartCartesianAxisRendering = require("../internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors");
|
|
16
22
|
function useBarPlotData(drawingArea, xAxes, yAxes) {
|
|
17
23
|
const seriesData = (0, _useBarSeries.useBarSeriesContext)() ?? {
|
|
18
24
|
series: {},
|
|
@@ -22,9 +28,14 @@ function useBarPlotData(drawingArea, xAxes, yAxes) {
|
|
|
22
28
|
const defaultXAxisId = (0, _useAxis.useXAxes)().xAxisIds[0];
|
|
23
29
|
const defaultYAxisId = (0, _useAxis.useYAxes)().yAxisIds[0];
|
|
24
30
|
const chartId = (0, _useChartId.useChartId)();
|
|
25
|
-
|
|
31
|
+
const store = (0, _useStore.useStore)();
|
|
32
|
+
const samplingPyramids = store.use(_sampling.selectorChartSamplingPyramids);
|
|
33
|
+
const zoomMap = store.use(_useChartCartesianAxisRendering.selectorChartZoomMap);
|
|
34
|
+
const zoomOptions = store.use(_useChartCartesianAxisRendering.selectorChartZoomOptionsLookup);
|
|
35
|
+
const sampler = store.use(_useChartSeriesConfig.selectorChartSeriesConfig).bar?.sampler;
|
|
36
|
+
return React.useMemo(() => processBarDataForPlot(drawingArea, chartId, seriesData.stackingGroups, seriesData.series, xAxes, yAxes, defaultXAxisId, defaultYAxisId, samplingPyramids, zoomMap, sampler, zoomOptions), [drawingArea, chartId, seriesData.stackingGroups, seriesData.series, xAxes, yAxes, defaultXAxisId, defaultYAxisId, samplingPyramids, zoomMap, sampler, zoomOptions]);
|
|
26
37
|
}
|
|
27
|
-
function processBarDataForPlot(drawingArea, chartId, stackingGroups, series, xAxes, yAxes, defaultXAxisId, defaultYAxisId) {
|
|
38
|
+
function processBarDataForPlot(drawingArea, chartId, stackingGroups, series, xAxes, yAxes, defaultXAxisId, defaultYAxisId, samplingPyramids = {}, zoomMap, sampler, zoomOptions) {
|
|
28
39
|
const masks = {};
|
|
29
40
|
const data = stackingGroups.flatMap(({
|
|
30
41
|
ids: seriesIds
|
|
@@ -50,31 +61,13 @@ function processBarDataForPlot(drawingArea, chartId, stackingGroups, series, xAx
|
|
|
50
61
|
const xOrigin = Math.round(xScale(0) ?? 0);
|
|
51
62
|
const yOrigin = Math.round(yScale(0) ?? 0);
|
|
52
63
|
const colorGetter = (0, _getColor.default)(series[seriesId], xAxes[xAxisId], yAxes[yAxisId]);
|
|
64
|
+
const stackId = series[seriesId].stack;
|
|
53
65
|
const seriesDataPoints = [];
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
yAxisConfig,
|
|
58
|
-
series: series[seriesId],
|
|
59
|
-
numberOfGroups: stackingGroups.length
|
|
60
|
-
});
|
|
61
|
-
for (let dataIndex = 0; dataIndex < baseScaleConfig.data.length; dataIndex += 1) {
|
|
62
|
-
const barDimensions = getBarDimensions(dataIndex, groupIndex);
|
|
63
|
-
if (barDimensions == null) {
|
|
64
|
-
continue;
|
|
65
|
-
}
|
|
66
|
-
const stackId = series[seriesId].stack;
|
|
67
|
-
const result = (0, _extends2.default)({
|
|
68
|
-
seriesId,
|
|
69
|
-
dataIndex,
|
|
70
|
-
hidden: series[seriesId].hidden
|
|
71
|
-
}, barDimensions, {
|
|
72
|
-
color: colorGetter(dataIndex),
|
|
73
|
-
value: series[seriesId].data[dataIndex],
|
|
74
|
-
maskId: `${chartId}_${stackId || seriesId}_${groupIndex}_${dataIndex}`
|
|
75
|
-
});
|
|
66
|
+
|
|
67
|
+
// Culls off-screen bars then records the bar's border-radius side and mask contribution.
|
|
68
|
+
const registerResult = (result, dataIndex) => {
|
|
76
69
|
if (result.x > xMax || result.x + result.width < xMin || result.y > yMax || result.y + result.height < yMin) {
|
|
77
|
-
|
|
70
|
+
return;
|
|
78
71
|
}
|
|
79
72
|
const lastNegative = lastNegativePerIndex.get(dataIndex);
|
|
80
73
|
const lastPositive = lastPositivePerIndex.get(dataIndex);
|
|
@@ -115,6 +108,90 @@ function processBarDataForPlot(drawingArea, chartId, stackingGroups, series, xAx
|
|
|
115
108
|
mask.hasNegative = mask.hasNegative || (reverse ? value > 0 : value < 0);
|
|
116
109
|
mask.hasPositive = mask.hasPositive || (reverse ? value < 0 : value > 0);
|
|
117
110
|
seriesDataPoints.push(result);
|
|
111
|
+
};
|
|
112
|
+
const makeResult = (dataIndex, barDimensions) => (0, _extends2.default)({
|
|
113
|
+
seriesId,
|
|
114
|
+
dataIndex,
|
|
115
|
+
hidden: series[seriesId].hidden
|
|
116
|
+
}, barDimensions, {
|
|
117
|
+
color: colorGetter(dataIndex),
|
|
118
|
+
value: series[seriesId].data[dataIndex],
|
|
119
|
+
maskId: `${chartId}_${stackId || seriesId}_${groupIndex}_${dataIndex}`
|
|
120
|
+
});
|
|
121
|
+
const pyramid = samplingPyramids[seriesId];
|
|
122
|
+
const baseAxisId = verticalLayout ? xAxisId : yAxisId;
|
|
123
|
+
const zoom = zoomMap?.get(baseAxisId) ?? (pyramid ? (0, _sampling.getFullRangeZoom)(baseAxisId) : undefined);
|
|
124
|
+
const availableSize = verticalLayout ? drawingArea.width : drawingArea.height;
|
|
125
|
+
const minSpan = zoomOptions?.[baseAxisId]?.minSpan ?? 0;
|
|
126
|
+
// The sampler (pro) owns the level-of-detail math; community renders one merged rect per
|
|
127
|
+
// bucket, spanning its index range with the bucket's min-base/max-top envelope.
|
|
128
|
+
const sampledBuckets = pyramid && zoom && sampler?.sample ? sampler.sample({
|
|
129
|
+
built: pyramid,
|
|
130
|
+
zoom,
|
|
131
|
+
availableSize,
|
|
132
|
+
minSpan
|
|
133
|
+
}) : null;
|
|
134
|
+
if (sampledBuckets) {
|
|
135
|
+
const getBucketBarDimensions = (0, _createGetBarDimensions.createGetBucketBarDimensions)({
|
|
136
|
+
verticalLayout,
|
|
137
|
+
xAxisConfig,
|
|
138
|
+
yAxisConfig,
|
|
139
|
+
series: series[seriesId],
|
|
140
|
+
numberOfGroups: stackingGroups.length
|
|
141
|
+
});
|
|
142
|
+
const stacked = series[seriesId].visibleStackedData;
|
|
143
|
+
for (const {
|
|
144
|
+
startIndex,
|
|
145
|
+
endIndex,
|
|
146
|
+
indices
|
|
147
|
+
} of sampledBuckets) {
|
|
148
|
+
let low = Infinity;
|
|
149
|
+
let high = -Infinity;
|
|
150
|
+
for (let k = 0; k < indices.length; k += 1) {
|
|
151
|
+
const point = stacked[indices[k]];
|
|
152
|
+
// Both coords, so diverging/negative bars (`[0, -5]`, base > top) keep their full extent.
|
|
153
|
+
low = Math.min(low, point[0], point[1]);
|
|
154
|
+
high = Math.max(high, point[0], point[1]);
|
|
155
|
+
}
|
|
156
|
+
const dimensions = getBucketBarDimensions(startIndex, endIndex, low, high, groupIndex);
|
|
157
|
+
registerResult(makeResult(startIndex, dimensions), startIndex);
|
|
158
|
+
}
|
|
159
|
+
} else {
|
|
160
|
+
const getBarDimensions = (0, _createGetBarDimensions.createGetBarDimensions)({
|
|
161
|
+
verticalLayout,
|
|
162
|
+
xAxisConfig,
|
|
163
|
+
yAxisConfig,
|
|
164
|
+
series: series[seriesId],
|
|
165
|
+
numberOfGroups: stackingGroups.length
|
|
166
|
+
});
|
|
167
|
+
|
|
168
|
+
// Narrow to the visible index window so panning/zoom doesn't compute every off-screen bar.
|
|
169
|
+
// `firstIndex`/`lastIndex` bound the band axis range; the cull in `registerResult` stays
|
|
170
|
+
// exact. A 1-bucket margin covers grouped-bar offsets and partial edge bars.
|
|
171
|
+
const baseData = baseScaleConfig.data;
|
|
172
|
+
const dataLength = baseData.length;
|
|
173
|
+
let firstIndex = 0;
|
|
174
|
+
let lastIndex = dataLength - 1;
|
|
175
|
+
if (dataLength > 1) {
|
|
176
|
+
const baseScale = baseScaleConfig.scale;
|
|
177
|
+
const p0 = baseScale(baseData[0]);
|
|
178
|
+
const slope = baseScale(baseData[1]) - p0; // signed px per index (handles reversed axis)
|
|
179
|
+
if (slope !== 0) {
|
|
180
|
+
const winLo = verticalLayout ? xMin : yMin;
|
|
181
|
+
const winHi = verticalLayout ? xMax : yMax;
|
|
182
|
+
const ia = (winLo - p0) / slope;
|
|
183
|
+
const ib = (winHi - p0) / slope;
|
|
184
|
+
firstIndex = Math.max(0, Math.floor(Math.min(ia, ib)) - 1);
|
|
185
|
+
lastIndex = Math.min(dataLength - 1, Math.ceil(Math.max(ia, ib)) + 1);
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
for (let dataIndex = firstIndex; dataIndex <= lastIndex; dataIndex += 1) {
|
|
189
|
+
const barDimensions = getBarDimensions(dataIndex, groupIndex);
|
|
190
|
+
if (barDimensions == null) {
|
|
191
|
+
continue;
|
|
192
|
+
}
|
|
193
|
+
registerResult(makeResult(dataIndex, barDimensions), dataIndex);
|
|
194
|
+
}
|
|
118
195
|
}
|
|
119
196
|
return {
|
|
120
197
|
seriesId,
|
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
|
+
import * as React from 'react';
|
|
2
3
|
import getColor from "./seriesConfig/bar/getColor.mjs";
|
|
3
4
|
import { useXAxes, useYAxes } from "../hooks/useAxis.mjs";
|
|
4
5
|
import { checkBarChartScaleErrors } from "./checkBarChartScaleErrors.mjs";
|
|
5
6
|
import { useBarSeriesContext } from "../hooks/useBarSeries.mjs";
|
|
6
|
-
import { createGetBarDimensions } from "../internals/createGetBarDimensions.mjs";
|
|
7
|
+
import { createGetBarDimensions, createGetBucketBarDimensions } from "../internals/createGetBarDimensions.mjs";
|
|
7
8
|
import { useChartId } from "../hooks/useChartId.mjs";
|
|
9
|
+
import { useStore } from "../internals/store/useStore.mjs";
|
|
10
|
+
import { selectorChartSamplingPyramids, getFullRangeZoom } from "../internals/plugins/featurePlugins/useChartCartesianAxis/sampling.selectors.mjs";
|
|
11
|
+
import { selectorChartSeriesConfig } from "../internals/plugins/corePlugins/useChartSeriesConfig/index.mjs";
|
|
12
|
+
import { selectorChartZoomMap, selectorChartZoomOptionsLookup } from "../internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.mjs";
|
|
8
13
|
export function useBarPlotData(drawingArea, xAxes, yAxes) {
|
|
9
14
|
const seriesData = useBarSeriesContext() ?? {
|
|
10
15
|
series: {},
|
|
@@ -14,9 +19,14 @@ export function useBarPlotData(drawingArea, xAxes, yAxes) {
|
|
|
14
19
|
const defaultXAxisId = useXAxes().xAxisIds[0];
|
|
15
20
|
const defaultYAxisId = useYAxes().yAxisIds[0];
|
|
16
21
|
const chartId = useChartId();
|
|
17
|
-
|
|
22
|
+
const store = useStore();
|
|
23
|
+
const samplingPyramids = store.use(selectorChartSamplingPyramids);
|
|
24
|
+
const zoomMap = store.use(selectorChartZoomMap);
|
|
25
|
+
const zoomOptions = store.use(selectorChartZoomOptionsLookup);
|
|
26
|
+
const sampler = store.use(selectorChartSeriesConfig).bar?.sampler;
|
|
27
|
+
return React.useMemo(() => processBarDataForPlot(drawingArea, chartId, seriesData.stackingGroups, seriesData.series, xAxes, yAxes, defaultXAxisId, defaultYAxisId, samplingPyramids, zoomMap, sampler, zoomOptions), [drawingArea, chartId, seriesData.stackingGroups, seriesData.series, xAxes, yAxes, defaultXAxisId, defaultYAxisId, samplingPyramids, zoomMap, sampler, zoomOptions]);
|
|
18
28
|
}
|
|
19
|
-
export function processBarDataForPlot(drawingArea, chartId, stackingGroups, series, xAxes, yAxes, defaultXAxisId, defaultYAxisId) {
|
|
29
|
+
export function processBarDataForPlot(drawingArea, chartId, stackingGroups, series, xAxes, yAxes, defaultXAxisId, defaultYAxisId, samplingPyramids = {}, zoomMap, sampler, zoomOptions) {
|
|
20
30
|
const masks = {};
|
|
21
31
|
const data = stackingGroups.flatMap(({
|
|
22
32
|
ids: seriesIds
|
|
@@ -42,31 +52,13 @@ export function processBarDataForPlot(drawingArea, chartId, stackingGroups, seri
|
|
|
42
52
|
const xOrigin = Math.round(xScale(0) ?? 0);
|
|
43
53
|
const yOrigin = Math.round(yScale(0) ?? 0);
|
|
44
54
|
const colorGetter = getColor(series[seriesId], xAxes[xAxisId], yAxes[yAxisId]);
|
|
55
|
+
const stackId = series[seriesId].stack;
|
|
45
56
|
const seriesDataPoints = [];
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
yAxisConfig,
|
|
50
|
-
series: series[seriesId],
|
|
51
|
-
numberOfGroups: stackingGroups.length
|
|
52
|
-
});
|
|
53
|
-
for (let dataIndex = 0; dataIndex < baseScaleConfig.data.length; dataIndex += 1) {
|
|
54
|
-
const barDimensions = getBarDimensions(dataIndex, groupIndex);
|
|
55
|
-
if (barDimensions == null) {
|
|
56
|
-
continue;
|
|
57
|
-
}
|
|
58
|
-
const stackId = series[seriesId].stack;
|
|
59
|
-
const result = _extends({
|
|
60
|
-
seriesId,
|
|
61
|
-
dataIndex,
|
|
62
|
-
hidden: series[seriesId].hidden
|
|
63
|
-
}, barDimensions, {
|
|
64
|
-
color: colorGetter(dataIndex),
|
|
65
|
-
value: series[seriesId].data[dataIndex],
|
|
66
|
-
maskId: `${chartId}_${stackId || seriesId}_${groupIndex}_${dataIndex}`
|
|
67
|
-
});
|
|
57
|
+
|
|
58
|
+
// Culls off-screen bars then records the bar's border-radius side and mask contribution.
|
|
59
|
+
const registerResult = (result, dataIndex) => {
|
|
68
60
|
if (result.x > xMax || result.x + result.width < xMin || result.y > yMax || result.y + result.height < yMin) {
|
|
69
|
-
|
|
61
|
+
return;
|
|
70
62
|
}
|
|
71
63
|
const lastNegative = lastNegativePerIndex.get(dataIndex);
|
|
72
64
|
const lastPositive = lastPositivePerIndex.get(dataIndex);
|
|
@@ -107,6 +99,90 @@ export function processBarDataForPlot(drawingArea, chartId, stackingGroups, seri
|
|
|
107
99
|
mask.hasNegative = mask.hasNegative || (reverse ? value > 0 : value < 0);
|
|
108
100
|
mask.hasPositive = mask.hasPositive || (reverse ? value < 0 : value > 0);
|
|
109
101
|
seriesDataPoints.push(result);
|
|
102
|
+
};
|
|
103
|
+
const makeResult = (dataIndex, barDimensions) => _extends({
|
|
104
|
+
seriesId,
|
|
105
|
+
dataIndex,
|
|
106
|
+
hidden: series[seriesId].hidden
|
|
107
|
+
}, barDimensions, {
|
|
108
|
+
color: colorGetter(dataIndex),
|
|
109
|
+
value: series[seriesId].data[dataIndex],
|
|
110
|
+
maskId: `${chartId}_${stackId || seriesId}_${groupIndex}_${dataIndex}`
|
|
111
|
+
});
|
|
112
|
+
const pyramid = samplingPyramids[seriesId];
|
|
113
|
+
const baseAxisId = verticalLayout ? xAxisId : yAxisId;
|
|
114
|
+
const zoom = zoomMap?.get(baseAxisId) ?? (pyramid ? getFullRangeZoom(baseAxisId) : undefined);
|
|
115
|
+
const availableSize = verticalLayout ? drawingArea.width : drawingArea.height;
|
|
116
|
+
const minSpan = zoomOptions?.[baseAxisId]?.minSpan ?? 0;
|
|
117
|
+
// The sampler (pro) owns the level-of-detail math; community renders one merged rect per
|
|
118
|
+
// bucket, spanning its index range with the bucket's min-base/max-top envelope.
|
|
119
|
+
const sampledBuckets = pyramid && zoom && sampler?.sample ? sampler.sample({
|
|
120
|
+
built: pyramid,
|
|
121
|
+
zoom,
|
|
122
|
+
availableSize,
|
|
123
|
+
minSpan
|
|
124
|
+
}) : null;
|
|
125
|
+
if (sampledBuckets) {
|
|
126
|
+
const getBucketBarDimensions = createGetBucketBarDimensions({
|
|
127
|
+
verticalLayout,
|
|
128
|
+
xAxisConfig,
|
|
129
|
+
yAxisConfig,
|
|
130
|
+
series: series[seriesId],
|
|
131
|
+
numberOfGroups: stackingGroups.length
|
|
132
|
+
});
|
|
133
|
+
const stacked = series[seriesId].visibleStackedData;
|
|
134
|
+
for (const {
|
|
135
|
+
startIndex,
|
|
136
|
+
endIndex,
|
|
137
|
+
indices
|
|
138
|
+
} of sampledBuckets) {
|
|
139
|
+
let low = Infinity;
|
|
140
|
+
let high = -Infinity;
|
|
141
|
+
for (let k = 0; k < indices.length; k += 1) {
|
|
142
|
+
const point = stacked[indices[k]];
|
|
143
|
+
// Both coords, so diverging/negative bars (`[0, -5]`, base > top) keep their full extent.
|
|
144
|
+
low = Math.min(low, point[0], point[1]);
|
|
145
|
+
high = Math.max(high, point[0], point[1]);
|
|
146
|
+
}
|
|
147
|
+
const dimensions = getBucketBarDimensions(startIndex, endIndex, low, high, groupIndex);
|
|
148
|
+
registerResult(makeResult(startIndex, dimensions), startIndex);
|
|
149
|
+
}
|
|
150
|
+
} else {
|
|
151
|
+
const getBarDimensions = createGetBarDimensions({
|
|
152
|
+
verticalLayout,
|
|
153
|
+
xAxisConfig,
|
|
154
|
+
yAxisConfig,
|
|
155
|
+
series: series[seriesId],
|
|
156
|
+
numberOfGroups: stackingGroups.length
|
|
157
|
+
});
|
|
158
|
+
|
|
159
|
+
// Narrow to the visible index window so panning/zoom doesn't compute every off-screen bar.
|
|
160
|
+
// `firstIndex`/`lastIndex` bound the band axis range; the cull in `registerResult` stays
|
|
161
|
+
// exact. A 1-bucket margin covers grouped-bar offsets and partial edge bars.
|
|
162
|
+
const baseData = baseScaleConfig.data;
|
|
163
|
+
const dataLength = baseData.length;
|
|
164
|
+
let firstIndex = 0;
|
|
165
|
+
let lastIndex = dataLength - 1;
|
|
166
|
+
if (dataLength > 1) {
|
|
167
|
+
const baseScale = baseScaleConfig.scale;
|
|
168
|
+
const p0 = baseScale(baseData[0]);
|
|
169
|
+
const slope = baseScale(baseData[1]) - p0; // signed px per index (handles reversed axis)
|
|
170
|
+
if (slope !== 0) {
|
|
171
|
+
const winLo = verticalLayout ? xMin : yMin;
|
|
172
|
+
const winHi = verticalLayout ? xMax : yMax;
|
|
173
|
+
const ia = (winLo - p0) / slope;
|
|
174
|
+
const ib = (winHi - p0) / slope;
|
|
175
|
+
firstIndex = Math.max(0, Math.floor(Math.min(ia, ib)) - 1);
|
|
176
|
+
lastIndex = Math.min(dataLength - 1, Math.ceil(Math.max(ia, ib)) + 1);
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
for (let dataIndex = firstIndex; dataIndex <= lastIndex; dataIndex += 1) {
|
|
180
|
+
const barDimensions = getBarDimensions(dataIndex, groupIndex);
|
|
181
|
+
if (barDimensions == null) {
|
|
182
|
+
continue;
|
|
183
|
+
}
|
|
184
|
+
registerResult(makeResult(dataIndex, barDimensions), dataIndex);
|
|
185
|
+
}
|
|
110
186
|
}
|
|
111
187
|
return {
|
|
112
188
|
seriesId,
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,235 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 9.10.0
|
|
4
|
+
|
|
5
|
+
_Jul 17, 2026_
|
|
6
|
+
|
|
7
|
+
We'd like to extend a big thank you to the 7 contributors who made this release possible. Here are some highlights ✨:
|
|
8
|
+
|
|
9
|
+
- 📊 Provide `dataIndex` in `LinePlot` and `AreaPlot` `onItemClick` for Charts
|
|
10
|
+
- ⚙️ Allow opt-in `data-*` attributes on `slotProps`. [Read more](https://mui.com/x/common-concepts/custom-components/#passing-data-attributes-to-slots)
|
|
11
|
+
- 🐞 Bugfixes
|
|
12
|
+
- 📚 Documentation improvements
|
|
13
|
+
|
|
14
|
+
Special thanks go out to these community members for their valuable contributions:
|
|
15
|
+
@Anexus5919, @mustafajw07
|
|
16
|
+
|
|
17
|
+
The following team members contributed to this release:
|
|
18
|
+
@brijeshb42, @Janpot, @JCQuintas, @LukasTy, @noraleonte
|
|
19
|
+
|
|
20
|
+
### Data Grid
|
|
21
|
+
|
|
22
|
+
#### `@mui/x-data-grid@9.10.0`
|
|
23
|
+
|
|
24
|
+
Internal changes.
|
|
25
|
+
|
|
26
|
+
#### `@mui/x-data-grid-pro@9.10.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
27
|
+
|
|
28
|
+
Same changes as in `@mui/x-data-grid@9.10.0`.
|
|
29
|
+
|
|
30
|
+
#### `@mui/x-data-grid-premium@9.10.0` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
31
|
+
|
|
32
|
+
Same changes as in `@mui/x-data-grid-pro@9.10.0`.
|
|
33
|
+
|
|
34
|
+
### Date and Time Pickers
|
|
35
|
+
|
|
36
|
+
#### `@mui/x-date-pickers@9.10.0`
|
|
37
|
+
|
|
38
|
+
Internal changes.
|
|
39
|
+
|
|
40
|
+
#### `@mui/x-date-pickers-pro@9.10.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
41
|
+
|
|
42
|
+
Same changes as in `@mui/x-date-pickers@9.10.0`.
|
|
43
|
+
|
|
44
|
+
### Charts
|
|
45
|
+
|
|
46
|
+
#### `@mui/x-charts@9.10.0`
|
|
47
|
+
|
|
48
|
+
- [charts] Provide `dataIndex` in `LinePlot` and `AreaPlot` `onItemClick` (#23144) @JCQuintas
|
|
49
|
+
|
|
50
|
+
#### `@mui/x-charts-pro@9.10.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
51
|
+
|
|
52
|
+
Same changes as in `@mui/x-charts@9.10.0`.
|
|
53
|
+
|
|
54
|
+
#### `@mui/x-charts-premium@9.10.0` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
55
|
+
|
|
56
|
+
Same changes as in `@mui/x-charts-pro@9.10.0`.
|
|
57
|
+
|
|
58
|
+
### Tree View
|
|
59
|
+
|
|
60
|
+
#### `@mui/x-tree-view@9.10.0`
|
|
61
|
+
|
|
62
|
+
Internal changes.
|
|
63
|
+
|
|
64
|
+
#### `@mui/x-tree-view-pro@9.10.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
65
|
+
|
|
66
|
+
Same changes as in `@mui/x-tree-view@9.10.0`, plus:
|
|
67
|
+
|
|
68
|
+
- [tree-view] Fix pre-loaded items not caching (#23155) @noraleonte
|
|
69
|
+
|
|
70
|
+
### Scheduler
|
|
71
|
+
|
|
72
|
+
#### `@mui/x-scheduler@9.0.0-beta.6`
|
|
73
|
+
|
|
74
|
+
- [scheduler] Carry custom event data through the edit dialog submit (#22874) @Anexus5919
|
|
75
|
+
- [scheduler] Support array values for `CalendarEvent.resource` (#23109) @mustafajw07
|
|
76
|
+
|
|
77
|
+
#### `@mui/x-scheduler-premium@9.0.0-beta.6` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
78
|
+
|
|
79
|
+
Same changes as in `@mui/x-scheduler@9.0.0-beta.6`.
|
|
80
|
+
|
|
81
|
+
### Chat
|
|
82
|
+
|
|
83
|
+
#### `@mui/x-chat@9.0.0-alpha.14`
|
|
84
|
+
|
|
85
|
+
- [chat] Reuse `resolveComponentProps` from `@mui/utils` (#23095) @LukasTy
|
|
86
|
+
|
|
87
|
+
#### `@mui/x-chat-headless@9.0.0-alpha.14`
|
|
88
|
+
|
|
89
|
+
Internal changes.
|
|
90
|
+
|
|
91
|
+
### Codemod
|
|
92
|
+
|
|
93
|
+
#### `@mui/x-codemod@9.10.0`
|
|
94
|
+
|
|
95
|
+
Internal changes.
|
|
96
|
+
|
|
97
|
+
### Docs
|
|
98
|
+
|
|
99
|
+
- [docs] Fix bugs on Scheduler overview page (#23147) @noraleonte
|
|
100
|
+
|
|
101
|
+
### Core
|
|
102
|
+
|
|
103
|
+
- [code-infra] Fix changelog dependency exclusion and l10n routing (#23112) @LukasTy
|
|
104
|
+
- [code-infra] Port codebase to use `tsgo` (#22826) @brijeshb42
|
|
105
|
+
- [code-infra] Reduce `release:build` concurrency to mitigate `tsgo` OOM kills (#23139) @LukasTy
|
|
106
|
+
- [core] Allow opt-in `data-*` attributes on `slotProps` (#22128) @LukasTy
|
|
107
|
+
|
|
108
|
+
### Miscellaneous
|
|
109
|
+
|
|
110
|
+
- [core] Ignore `code-infra-renovate[bot]` commits in changelog (#23153) @Janpot
|
|
111
|
+
- [website] Fix broken `ChatBox` API link (#23149) @brijeshb42
|
|
112
|
+
- [test] Fix WebGL benchmark timeout on CI (#23142) @JCQuintas
|
|
113
|
+
|
|
114
|
+
## 9.9.0
|
|
115
|
+
|
|
116
|
+
_Jul 9, 2026_
|
|
117
|
+
|
|
118
|
+
We'd like to extend a big thank you to the 11 contributors who made this release possible. Here are some highlights ✨:
|
|
119
|
+
|
|
120
|
+
- 📊 [Data sampling](https://mui.com/x/react-charts/performance/#sampling) for better performance with large bar and line charts
|
|
121
|
+
- 🗺️ [Maps zoom support](https://mui.com/x/react-charts/map/#zoom)
|
|
122
|
+
- ☑️ Support [applying filters on demand](https://mui.com/x/react-data-grid/filtering/customization/#apply-filters-on-demand) in the Data Grid
|
|
123
|
+
- 🐞 Bugfixes
|
|
124
|
+
- 📚 Documentation improvements
|
|
125
|
+
|
|
126
|
+
Special thanks go out to these community members for their valuable contributions:
|
|
127
|
+
@mustafajw07, @sebastianfrey
|
|
128
|
+
|
|
129
|
+
The following team members contributed to this release:
|
|
130
|
+
@aemartos, @alexfauquette, @brijeshb42, @hasdfa, @Janpot, @JCQuintas, @LukasTy, @rita-codes, @sai6855
|
|
131
|
+
|
|
132
|
+
### Data Grid
|
|
133
|
+
|
|
134
|
+
#### `@mui/x-data-grid@9.9.0`
|
|
135
|
+
|
|
136
|
+
- [DataGrid] Add `dataSourceKeepPreviousData` prop (#22554) @LukasTy
|
|
137
|
+
- [DataGrid] Add controlled filter panel for applying filters on demand (#23023) @sebastianfrey
|
|
138
|
+
|
|
139
|
+
#### `@mui/x-data-grid-pro@9.9.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
140
|
+
|
|
141
|
+
Same changes as in `@mui/x-data-grid@9.9.0`.
|
|
142
|
+
|
|
143
|
+
#### `@mui/x-data-grid-premium@9.9.0` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
144
|
+
|
|
145
|
+
Same changes as in `@mui/x-data-grid-pro@9.9.0`.
|
|
146
|
+
|
|
147
|
+
### Date and Time Pickers
|
|
148
|
+
|
|
149
|
+
#### `@mui/x-date-pickers@9.9.0`
|
|
150
|
+
|
|
151
|
+
Internal changes.
|
|
152
|
+
|
|
153
|
+
#### `@mui/x-date-pickers-pro@9.9.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
154
|
+
|
|
155
|
+
Same changes as in `@mui/x-date-pickers@9.9.0`, plus:
|
|
156
|
+
|
|
157
|
+
- [DateRangeCalendar] Avoid unnecessary month switch when the value is already visible (#22996) @LukasTy
|
|
158
|
+
|
|
159
|
+
### Charts
|
|
160
|
+
|
|
161
|
+
#### `@mui/x-charts@9.9.0`
|
|
162
|
+
|
|
163
|
+
- [charts] Optimize and de-duplicate sampled axis-highlight band lookup (#23052) @JCQuintas
|
|
164
|
+
- [charts] Unify tooltip item position getter and selector into a single selector API (#23041) @alexfauquette
|
|
165
|
+
- [charts] Fix impossible condition in axis text angle warning (#23102) @sai6855
|
|
166
|
+
|
|
167
|
+
#### `@mui/x-charts-pro@9.9.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
168
|
+
|
|
169
|
+
Same changes as in `@mui/x-charts@9.9.0`, plus:
|
|
170
|
+
|
|
171
|
+
- [charts-pro] Add data sampling for large bar and line charts (#22830) @JCQuintas
|
|
172
|
+
- [charts-pro] Allow sampling on non-zoomable charts (#23051) @JCQuintas
|
|
173
|
+
|
|
174
|
+
#### `@mui/x-charts-premium@9.9.0` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
175
|
+
|
|
176
|
+
#### Breaking changes
|
|
177
|
+
|
|
178
|
+
The API of the `Unstable_ChartsGeoDataProviderPremium` got modified.
|
|
179
|
+
Props `scale`, `rotation`, and `translation` are replaced by props `view` and `initialView`.
|
|
180
|
+
Same behavior can be obtained with `view.zoomLevel`, `view.center`, and `view.translation`.
|
|
181
|
+
See the [zoom view section](https://mui.com/x/react-charts/map/#control) for detailed information
|
|
182
|
+
|
|
183
|
+
Same changes as in `@mui/x-charts-pro@9.9.0`, plus:
|
|
184
|
+
|
|
185
|
+
- [charts-premium] Maps zoom support (#22709) @alexfauquette
|
|
186
|
+
|
|
187
|
+
### Tree View
|
|
188
|
+
|
|
189
|
+
#### `@mui/x-tree-view@9.9.0`
|
|
190
|
+
|
|
191
|
+
Internal changes.
|
|
192
|
+
|
|
193
|
+
#### `@mui/x-tree-view-pro@9.9.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
194
|
+
|
|
195
|
+
Same changes as in `@mui/x-tree-view@9.9.0`.
|
|
196
|
+
|
|
197
|
+
### Scheduler
|
|
198
|
+
|
|
199
|
+
#### `@mui/x-scheduler@9.0.0-beta.5`
|
|
200
|
+
|
|
201
|
+
- [scheduler] Introduce event resource helper utilities (#23022) @mustafajw07
|
|
202
|
+
- [scheduler] Preserve multi-day event continuity across overflow (#22797) @mustafajw07
|
|
203
|
+
|
|
204
|
+
#### `@mui/x-scheduler-premium@9.0.0-beta.5` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
205
|
+
|
|
206
|
+
Same changes as in `@mui/x-scheduler@9.0.0-beta.5`.
|
|
207
|
+
|
|
208
|
+
### Codemod
|
|
209
|
+
|
|
210
|
+
#### `@mui/x-codemod@9.9.0`
|
|
211
|
+
|
|
212
|
+
Internal changes.
|
|
213
|
+
|
|
214
|
+
### Docs
|
|
215
|
+
|
|
216
|
+
- [docs] Fix broken social preview image on shared docs links (#23055) @sai6855
|
|
217
|
+
- [docs] Review and clean up react-chat docs demos & gallery; fix actions-bar layout (#22993) @hasdfa
|
|
218
|
+
- [docs] Update the Pickers recommended date library bundle sizes (#23087) @LukasTy
|
|
219
|
+
|
|
220
|
+
### Core
|
|
221
|
+
|
|
222
|
+
- [mcp] Add `@mui/mcp` server and `@mui/x-agent-tools`. See the [README](https://github.com/mui/mui-x/blob/master/packages/mcp/README.md) for setup (#22947) @aemartos
|
|
223
|
+
- [code-infra] Avoid OOM in the Netlify docs build and CircleCI lint step (#23086) @LukasTy
|
|
224
|
+
- [code-infra] Group `@atlaskit/pragmatic-drag-and-drop` renovate updates (#23105) @LukasTy
|
|
225
|
+
- [code-infra] Validate npm publishing through dry run (#23038) @brijeshb42
|
|
226
|
+
- [docs-infra] Enable `webpackBuildWorker` to bound docs build memory (#23100) @Janpot
|
|
227
|
+
|
|
228
|
+
### Miscellaneous
|
|
229
|
+
|
|
230
|
+
- [test] Fix flaky "should render only the pageSize" Data Grid virtualization test (#23090) @LukasTy
|
|
231
|
+
- [test] Track `@mui/x-chat` bundle size via native expand (#23049) @Janpot
|
|
232
|
+
|
|
3
233
|
## 9.8.0
|
|
4
234
|
|
|
5
235
|
_Jul 2, 2026_
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
1
2
|
import type { ChartsAxisSlotProps, ChartsAxisSlots } from "../models/axis.mjs";
|
|
2
3
|
export type { ChartsAxisSlots, ChartsAxisSlotProps };
|
|
3
4
|
export interface ChartsAxisProps {
|
|
@@ -21,7 +22,7 @@ export interface ChartsAxisProps {
|
|
|
21
22
|
*
|
|
22
23
|
* - [ChartsAxis API](https://mui.com/x/api/charts/charts-axis/)
|
|
23
24
|
*/
|
|
24
|
-
declare function ChartsAxis(props: ChartsAxisProps):
|
|
25
|
+
declare function ChartsAxis(props: ChartsAxisProps): React.JSX.Element;
|
|
25
26
|
declare namespace ChartsAxis {
|
|
26
27
|
var propTypes: any;
|
|
27
28
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
1
2
|
import type { ChartsAxisSlotProps, ChartsAxisSlots } from "../models/axis.js";
|
|
2
3
|
export type { ChartsAxisSlots, ChartsAxisSlotProps };
|
|
3
4
|
export interface ChartsAxisProps {
|
|
@@ -21,7 +22,7 @@ export interface ChartsAxisProps {
|
|
|
21
22
|
*
|
|
22
23
|
* - [ChartsAxis API](https://mui.com/x/api/charts/charts-axis/)
|
|
23
24
|
*/
|
|
24
|
-
declare function ChartsAxis(props: ChartsAxisProps):
|
|
25
|
+
declare function ChartsAxis(props: ChartsAxisProps): React.JSX.Element;
|
|
25
26
|
declare namespace ChartsAxis {
|
|
26
27
|
var propTypes: any;
|
|
27
28
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
1
2
|
import type { ChartsAxisHighlightProps } from "./ChartsAxisHighlight.types.mjs";
|
|
2
3
|
/**
|
|
3
4
|
* Demos:
|
|
@@ -8,7 +9,7 @@ import type { ChartsAxisHighlightProps } from "./ChartsAxisHighlight.types.mjs";
|
|
|
8
9
|
*
|
|
9
10
|
* - [ChartsAxisHighlight API](https://mui.com/x/api/charts/charts-axis-highlight/)
|
|
10
11
|
*/
|
|
11
|
-
declare function ChartsAxisHighlight(props: ChartsAxisHighlightProps):
|
|
12
|
+
declare function ChartsAxisHighlight(props: ChartsAxisHighlightProps): React.JSX.Element;
|
|
12
13
|
declare namespace ChartsAxisHighlight {
|
|
13
14
|
var propTypes: any;
|
|
14
15
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
1
2
|
import type { ChartsAxisHighlightProps } from "./ChartsAxisHighlight.types.js";
|
|
2
3
|
/**
|
|
3
4
|
* Demos:
|
|
@@ -8,7 +9,7 @@ import type { ChartsAxisHighlightProps } from "./ChartsAxisHighlight.types.js";
|
|
|
8
9
|
*
|
|
9
10
|
* - [ChartsAxisHighlight API](https://mui.com/x/api/charts/charts-axis-highlight/)
|
|
10
11
|
*/
|
|
11
|
-
declare function ChartsAxisHighlight(props: ChartsAxisHighlightProps):
|
|
12
|
+
declare function ChartsAxisHighlight(props: ChartsAxisHighlightProps): React.JSX.Element;
|
|
12
13
|
declare namespace ChartsAxisHighlight {
|
|
13
14
|
var propTypes: any;
|
|
14
15
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
1
2
|
import type { ChartsAxisHighlightType } from "./ChartsAxisHighlight.types.mjs";
|
|
2
3
|
import type { ChartsAxisHighlightClasses } from "./chartsAxisHighlightClasses.mjs";
|
|
3
4
|
/**
|
|
@@ -6,4 +7,4 @@ import type { ChartsAxisHighlightClasses } from "./chartsAxisHighlightClasses.mj
|
|
|
6
7
|
export default function ChartsXHighlight(props: {
|
|
7
8
|
type: ChartsAxisHighlightType;
|
|
8
9
|
classes: ChartsAxisHighlightClasses;
|
|
9
|
-
}):
|
|
10
|
+
}): React.JSX.Element[] | null;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
1
2
|
import type { ChartsAxisHighlightType } from "./ChartsAxisHighlight.types.js";
|
|
2
3
|
import type { ChartsAxisHighlightClasses } from "./chartsAxisHighlightClasses.js";
|
|
3
4
|
/**
|
|
@@ -6,4 +7,4 @@ import type { ChartsAxisHighlightClasses } from "./chartsAxisHighlightClasses.js
|
|
|
6
7
|
export default function ChartsXHighlight(props: {
|
|
7
8
|
type: ChartsAxisHighlightType;
|
|
8
9
|
classes: ChartsAxisHighlightClasses;
|
|
9
|
-
}):
|
|
10
|
+
}): React.JSX.Element[] | null;
|