@mui/x-charts 9.0.0-alpha.2 → 9.0.0-alpha.4
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/BarChart.d.mts +2 -2
- package/BarChart/BarChart.d.ts +2 -2
- package/BarChart/BarChart.js +41 -8
- package/BarChart/BarChart.mjs +41 -8
- package/BarChart/BarElement.d.mts +1 -1
- package/BarChart/BarElement.d.ts +1 -1
- package/BarChart/BarElement.js +7 -8
- package/BarChart/BarElement.mjs +6 -7
- package/BarChart/BarLabel/BarLabel.js +1 -7
- package/BarChart/BarLabel/BarLabel.mjs +1 -7
- package/BarChart/BarLabel/BarLabel.types.d.mts +2 -2
- package/BarChart/BarLabel/BarLabel.types.d.ts +2 -2
- package/BarChart/BarLabel/BarLabelItem.js +7 -8
- package/BarChart/BarLabel/BarLabelItem.mjs +6 -7
- package/BarChart/BarLabel/index.d.mts +1 -3
- package/BarChart/BarLabel/index.d.ts +1 -3
- package/BarChart/BarLabel/index.js +1 -14
- package/BarChart/BarLabel/index.mjs +1 -2
- package/BarChart/BarPlot.d.mts +4 -0
- package/BarChart/BarPlot.d.ts +4 -0
- package/BarChart/BarPlot.js +9 -4
- package/BarChart/BarPlot.mjs +10 -5
- package/BarChart/BatchBarPlot/BatchBarPlot.js +3 -3
- package/BarChart/BatchBarPlot/BatchBarPlot.mjs +3 -3
- package/BarChart/barClasses.d.mts +21 -1
- package/BarChart/barClasses.d.ts +21 -1
- package/BarChart/barClasses.js +9 -3
- package/BarChart/barClasses.mjs +9 -3
- package/BarChart/index.d.mts +1 -2
- package/BarChart/index.d.ts +1 -2
- package/BarChart/index.js +1 -20
- package/BarChart/index.mjs +1 -2
- package/BarChart/seriesConfig/bar/legend.js +2 -21
- package/BarChart/seriesConfig/bar/legend.mjs +2 -21
- package/BarChart/useBarChartProps.d.mts +2 -2
- package/BarChart/useBarChartProps.d.ts +2 -2
- package/BarChart/useBarChartProps.js +2 -2
- package/BarChart/useBarChartProps.mjs +2 -2
- package/BarChart/useRegisterItemClickHandlers.js +2 -2
- package/BarChart/useRegisterItemClickHandlers.mjs +2 -2
- package/CHANGELOG.md +246 -1
- package/ChartsAxis/index.d.mts +2 -1
- package/ChartsAxis/index.d.ts +2 -1
- package/ChartsAxis/index.js +11 -11
- package/ChartsAxis/index.mjs +1 -1
- package/ChartsAxisHighlight/index.d.mts +2 -1
- package/ChartsAxisHighlight/index.d.ts +2 -1
- package/ChartsAxisHighlight/index.js +12 -10
- package/ChartsAxisHighlight/index.mjs +1 -1
- package/ChartsBrushOverlay/ChartsBrushOverlay.d.mts +6 -1
- package/ChartsBrushOverlay/ChartsBrushOverlay.d.ts +6 -1
- package/ChartsBrushOverlay/ChartsBrushOverlay.js +12 -9
- package/ChartsBrushOverlay/ChartsBrushOverlay.mjs +12 -9
- package/ChartsContainer/ChartsContainer.d.mts +1 -1
- package/ChartsContainer/ChartsContainer.d.ts +1 -1
- package/ChartsContainer/ChartsContainer.js +52 -15
- package/ChartsContainer/ChartsContainer.mjs +52 -15
- package/ChartsContainer/useChartsContainerProps.d.mts +4 -4
- package/ChartsContainer/useChartsContainerProps.d.ts +4 -4
- package/ChartsContainer/useChartsContainerProps.js +10 -10
- package/ChartsContainer/useChartsContainerProps.mjs +10 -10
- package/ChartsDataProvider/ChartsDataProvider.d.mts +2 -2
- package/ChartsDataProvider/ChartsDataProvider.d.ts +2 -2
- package/ChartsDataProvider/ChartsDataProvider.js +0 -6
- package/ChartsDataProvider/ChartsDataProvider.mjs +0 -6
- package/ChartsDataProvider/useChartsDataProviderProps.d.mts +2 -2
- package/ChartsDataProvider/useChartsDataProviderProps.d.ts +2 -2
- package/ChartsDataProvider/useChartsDataProviderProps.js +1 -1
- package/ChartsDataProvider/useChartsDataProviderProps.mjs +1 -1
- package/ChartsGrid/ChartsGrid.d.mts +4 -0
- package/ChartsGrid/ChartsGrid.d.ts +4 -0
- package/ChartsGrid/ChartsGrid.js +4 -2
- package/ChartsGrid/ChartsGrid.mjs +4 -2
- package/ChartsGrid/ChartsHorizontalGrid.js +2 -2
- package/ChartsGrid/ChartsHorizontalGrid.mjs +2 -2
- package/ChartsGrid/ChartsVerticalGrid.js +2 -2
- package/ChartsGrid/ChartsVerticalGrid.mjs +2 -2
- package/ChartsGrid/index.d.mts +2 -1
- package/ChartsGrid/index.d.ts +2 -1
- package/ChartsGrid/index.js +11 -11
- package/ChartsGrid/index.mjs +1 -1
- package/ChartsLabel/ChartsLabelMark.d.mts +8 -1
- package/ChartsLabel/ChartsLabelMark.d.ts +8 -1
- package/ChartsLabel/ChartsLabelMark.js +29 -3
- package/ChartsLabel/ChartsLabelMark.mjs +29 -3
- package/ChartsLabel/labelMarkClasses.d.mts +2 -0
- package/ChartsLabel/labelMarkClasses.d.ts +2 -0
- package/ChartsLabel/labelMarkClasses.js +1 -1
- package/ChartsLabel/labelMarkClasses.mjs +1 -1
- package/ChartsLayerContainer/ChartsLayerContainer.d.mts +10 -0
- package/ChartsLayerContainer/ChartsLayerContainer.d.ts +10 -0
- package/ChartsLayerContainer/ChartsLayerContainer.js +49 -9
- package/ChartsLayerContainer/ChartsLayerContainer.mjs +50 -10
- package/ChartsLayerContainer/chartsLayerContainerClasses.d.mts +6 -0
- package/ChartsLayerContainer/chartsLayerContainerClasses.d.ts +6 -0
- package/ChartsLayerContainer/chartsLayerContainerClasses.js +21 -0
- package/ChartsLayerContainer/chartsLayerContainerClasses.mjs +13 -0
- package/ChartsLegend/ChartsLegend.js +6 -4
- package/ChartsLegend/ChartsLegend.mjs +6 -4
- package/ChartsLegend/legendContext.types.d.mts +1 -6
- package/ChartsLegend/legendContext.types.d.ts +1 -6
- package/ChartsLegend/onClickContextBuilder.js +0 -1
- package/ChartsLegend/onClickContextBuilder.mjs +0 -1
- package/ChartsOverlay/ChartsLoadingOverlay.js +2 -8
- package/ChartsOverlay/ChartsLoadingOverlay.mjs +2 -8
- package/ChartsOverlay/ChartsNoDataOverlay.js +2 -8
- package/ChartsOverlay/ChartsNoDataOverlay.mjs +2 -8
- package/ChartsOverlay/ChartsOverlay.d.mts +0 -6
- package/ChartsOverlay/ChartsOverlay.d.ts +0 -6
- package/ChartsReferenceLine/index.d.mts +2 -1
- package/ChartsReferenceLine/index.d.ts +2 -1
- package/ChartsReferenceLine/index.js +11 -11
- package/ChartsReferenceLine/index.mjs +1 -2
- package/ChartsSurface/ChartsSurface.d.mts +2 -3
- package/ChartsSurface/ChartsSurface.d.ts +2 -3
- package/ChartsSurface/ChartsSurface.js +14 -2
- package/ChartsSurface/ChartsSurface.mjs +14 -2
- package/ChartsSvgLayer/ChartsSvgLayer.d.mts +0 -4
- package/ChartsSvgLayer/ChartsSvgLayer.d.ts +0 -4
- package/ChartsSvgLayer/ChartsSvgLayer.js +9 -31
- package/ChartsSvgLayer/ChartsSvgLayer.mjs +9 -31
- package/ChartsTooltip/ChartsAxisTooltipContent.js +45 -29
- package/ChartsTooltip/ChartsAxisTooltipContent.mjs +45 -29
- package/ChartsTooltip/ChartsItemTooltipContent.js +80 -40
- package/ChartsTooltip/ChartsItemTooltipContent.mjs +79 -40
- package/ChartsTooltip/ChartsTooltipContainer.js +10 -4
- package/ChartsTooltip/ChartsTooltipContainer.mjs +9 -3
- package/ChartsTooltip/ChartsTooltipTable.d.mts +1 -1
- package/ChartsTooltip/ChartsTooltipTable.d.ts +1 -1
- package/ChartsTooltip/index.d.mts +1 -2
- package/ChartsTooltip/index.d.ts +1 -2
- package/ChartsTooltip/index.js +1 -16
- package/ChartsTooltip/index.mjs +1 -2
- package/ChartsTooltip/useAxesTooltip.d.mts +3 -3
- package/ChartsTooltip/useAxesTooltip.d.ts +3 -3
- package/ChartsTooltip/useAxesTooltip.js +6 -4
- package/ChartsTooltip/useAxesTooltip.mjs +6 -4
- package/ChartsTooltip/useItemTooltip.d.mts +3 -3
- package/ChartsTooltip/useItemTooltip.d.ts +3 -3
- package/ChartsTooltip/utils.d.mts +0 -4
- package/ChartsTooltip/utils.d.ts +0 -4
- package/ChartsTooltip/utils.js +0 -39
- package/ChartsTooltip/utils.mjs +0 -38
- package/ChartsXAxis/ChartsGroupedXAxisTicks.js +2 -2
- package/ChartsXAxis/ChartsGroupedXAxisTicks.mjs +2 -2
- package/ChartsXAxis/ChartsSingleXAxisTicks.js +2 -2
- package/ChartsXAxis/ChartsSingleXAxisTicks.mjs +2 -2
- package/ChartsXAxis/ChartsXAxisImpl.js +3 -1
- package/ChartsXAxis/ChartsXAxisImpl.mjs +3 -1
- package/ChartsXAxis/useAxisTicksProps.d.mts +367 -286
- package/ChartsXAxis/useAxisTicksProps.d.ts +367 -286
- package/ChartsYAxis/ChartsGroupedYAxisTicks.js +2 -2
- package/ChartsYAxis/ChartsGroupedYAxisTicks.mjs +2 -2
- package/ChartsYAxis/ChartsSingleYAxisTicks.js +2 -2
- package/ChartsYAxis/ChartsSingleYAxisTicks.mjs +2 -2
- package/ChartsYAxis/ChartsYAxisImpl.js +3 -1
- package/ChartsYAxis/ChartsYAxisImpl.mjs +3 -1
- package/ChartsYAxis/useAxisTicksProps.d.mts +367 -286
- package/ChartsYAxis/useAxisTicksProps.d.ts +367 -286
- package/Gauge/Gauge.js +12 -0
- package/Gauge/Gauge.mjs +12 -0
- package/Gauge/GaugeContainer.d.mts +1 -1
- package/Gauge/GaugeContainer.d.ts +1 -1
- package/Gauge/GaugeContainer.js +14 -2
- package/Gauge/GaugeContainer.mjs +14 -2
- package/Gauge/index.d.mts +2 -1
- package/Gauge/index.d.ts +2 -1
- package/Gauge/index.js +7 -11
- package/Gauge/index.mjs +1 -1
- package/LineChart/AreaElement.d.mts +2 -23
- package/LineChart/AreaElement.d.ts +2 -23
- package/LineChart/AreaElement.js +10 -29
- package/LineChart/AreaElement.mjs +10 -27
- package/LineChart/AreaPlot.js +10 -4
- package/LineChart/AreaPlot.mjs +11 -5
- package/LineChart/CircleMarkElement.d.mts +1 -1
- package/LineChart/CircleMarkElement.d.ts +1 -1
- package/LineChart/CircleMarkElement.js +10 -11
- package/LineChart/CircleMarkElement.mjs +10 -11
- package/LineChart/LineChart.d.mts +2 -2
- package/LineChart/LineChart.d.ts +2 -2
- package/LineChart/LineChart.js +38 -11
- package/LineChart/LineChart.mjs +38 -11
- package/LineChart/LineElement.d.mts +2 -23
- package/LineChart/LineElement.d.ts +2 -23
- package/LineChart/LineElement.js +10 -29
- package/LineChart/LineElement.mjs +10 -27
- package/LineChart/LineHighlightElement.d.mts +0 -8
- package/LineChart/LineHighlightElement.d.ts +0 -8
- package/LineChart/LineHighlightElement.js +4 -22
- package/LineChart/LineHighlightElement.mjs +4 -20
- package/LineChart/LineHighlightPlot.js +2 -2
- package/LineChart/LineHighlightPlot.mjs +2 -2
- package/LineChart/LinePlot.js +11 -5
- package/LineChart/LinePlot.mjs +12 -6
- package/LineChart/MarkElement.d.mts +1 -1
- package/LineChart/MarkElement.d.ts +1 -1
- package/LineChart/MarkElement.js +10 -4
- package/LineChart/MarkElement.mjs +10 -4
- package/LineChart/MarkPlot.js +21 -11
- package/LineChart/MarkPlot.mjs +22 -12
- package/LineChart/index.d.mts +2 -2
- package/LineChart/index.d.ts +2 -2
- package/LineChart/index.js +4 -11
- package/LineChart/index.mjs +1 -1
- package/LineChart/lineClasses.d.mts +34 -0
- package/LineChart/lineClasses.d.ts +34 -0
- package/LineChart/lineClasses.js +32 -0
- package/LineChart/lineClasses.mjs +23 -0
- package/LineChart/seriesConfig/legend.js +1 -0
- package/LineChart/seriesConfig/legend.mjs +1 -0
- package/LineChart/seriesConfig/seriesProcessor.js +9 -6
- package/LineChart/seriesConfig/seriesProcessor.mjs +9 -6
- package/LineChart/seriesConfig/tooltip.js +2 -1
- package/LineChart/seriesConfig/tooltip.mjs +2 -1
- package/LineChart/useLineChartProps.d.mts +2 -2
- package/LineChart/useLineChartProps.d.ts +2 -2
- package/LineChart/useLineChartProps.js +2 -2
- package/LineChart/useLineChartProps.mjs +2 -2
- package/LineChart/useMarkPlotData.js +2 -2
- package/LineChart/useMarkPlotData.mjs +2 -2
- package/PieChart/FocusedPieArc.js +7 -8
- package/PieChart/FocusedPieArc.mjs +8 -8
- package/PieChart/PieArc.d.mts +1 -35
- package/PieChart/PieArc.d.ts +1 -35
- package/PieChart/PieArc.js +6 -27
- package/PieChart/PieArc.mjs +6 -25
- package/PieChart/PieArcLabel.d.mts +3 -30
- package/PieChart/PieArcLabel.d.ts +3 -30
- package/PieChart/PieArcLabel.js +9 -31
- package/PieChart/PieArcLabel.mjs +8 -28
- package/PieChart/PieArcLabelPlot.js +6 -3
- package/PieChart/PieArcLabelPlot.mjs +6 -3
- package/PieChart/PieArcPlot.js +6 -1
- package/PieChart/PieArcPlot.mjs +6 -1
- package/PieChart/PieChart.d.mts +2 -2
- package/PieChart/PieChart.d.ts +2 -2
- package/PieChart/PieChart.js +22 -7
- package/PieChart/PieChart.mjs +22 -7
- package/PieChart/PiePlot.d.mts +1 -0
- package/PieChart/PiePlot.d.ts +1 -0
- package/PieChart/PiePlot.js +4 -1
- package/PieChart/PiePlot.mjs +4 -1
- package/PieChart/dataTransform/useTransformData.js +6 -8
- package/PieChart/dataTransform/useTransformData.mjs +6 -8
- package/PieChart/index.d.mts +1 -1
- package/PieChart/index.d.ts +1 -1
- package/PieChart/pieClasses.d.mts +22 -1
- package/PieChart/pieClasses.d.ts +22 -1
- package/PieChart/pieClasses.js +10 -3
- package/PieChart/pieClasses.mjs +10 -3
- package/PieChart/seriesConfig/legend.js +0 -2
- package/PieChart/seriesConfig/legend.mjs +0 -2
- package/RadarChart/RadarAxis/RadarAxis.d.mts +6 -2
- package/RadarChart/RadarAxis/RadarAxis.d.ts +6 -2
- package/RadarChart/RadarAxis/RadarAxis.js +7 -5
- package/RadarChart/RadarAxis/RadarAxis.mjs +6 -4
- package/RadarChart/RadarAxis/index.d.mts +1 -2
- package/RadarChart/RadarAxis/index.d.ts +1 -2
- package/RadarChart/RadarAxis/index.js +1 -13
- package/RadarChart/RadarAxis/index.mjs +1 -2
- package/RadarChart/RadarAxis/useRadarAxis.js +2 -2
- package/RadarChart/RadarAxis/useRadarAxis.mjs +2 -2
- package/RadarChart/RadarAxisHighlight/RadarAxisHighlight.d.mts +6 -2
- package/RadarChart/RadarAxisHighlight/RadarAxisHighlight.d.ts +6 -2
- package/RadarChart/RadarAxisHighlight/RadarAxisHighlight.js +9 -14
- package/RadarChart/RadarAxisHighlight/RadarAxisHighlight.mjs +8 -13
- package/RadarChart/RadarAxisHighlight/index.d.mts +1 -2
- package/RadarChart/RadarAxisHighlight/index.d.ts +1 -2
- package/RadarChart/RadarAxisHighlight/index.mjs +1 -2
- package/RadarChart/RadarAxisHighlight/useRadarAxisHighlight.js +2 -2
- package/RadarChart/RadarAxisHighlight/useRadarAxisHighlight.mjs +2 -2
- package/RadarChart/RadarChart.js +20 -2
- package/RadarChart/RadarChart.mjs +20 -2
- package/RadarChart/RadarDataProvider/RadarDataProvider.d.mts +2 -2
- package/RadarChart/RadarDataProvider/RadarDataProvider.d.ts +2 -2
- package/RadarChart/RadarDataProvider/RadarDataProvider.js +2 -2
- package/RadarChart/RadarDataProvider/RadarDataProvider.mjs +2 -2
- package/RadarChart/RadarGrid/CircularRadarGrid.js +2 -2
- package/RadarChart/RadarGrid/CircularRadarGrid.mjs +2 -2
- package/RadarChart/RadarGrid/CircularRadarStripes.js +1 -1
- package/RadarChart/RadarGrid/CircularRadarStripes.mjs +1 -1
- package/RadarChart/RadarGrid/RadarGrid.js +2 -2
- package/RadarChart/RadarGrid/RadarGrid.mjs +2 -2
- package/RadarChart/RadarGrid/RadarGrid.types.d.mts +6 -7
- package/RadarChart/RadarGrid/RadarGrid.types.d.ts +6 -7
- package/RadarChart/RadarGrid/SharpRadarGrid.js +2 -2
- package/RadarChart/RadarGrid/SharpRadarGrid.mjs +2 -2
- package/RadarChart/RadarGrid/SharpRadarStripes.js +1 -1
- package/RadarChart/RadarGrid/SharpRadarStripes.mjs +1 -1
- package/RadarChart/RadarGrid/index.d.mts +1 -2
- package/RadarChart/RadarGrid/index.d.ts +1 -2
- package/RadarChart/RadarGrid/useRadarGridData.js +2 -2
- package/RadarChart/RadarGrid/useRadarGridData.mjs +2 -2
- package/RadarChart/RadarSeriesPlot/RadarSeriesArea.d.mts +5 -5
- package/RadarChart/RadarSeriesPlot/RadarSeriesArea.d.ts +5 -5
- package/RadarChart/RadarSeriesPlot/RadarSeriesArea.js +13 -20
- package/RadarChart/RadarSeriesPlot/RadarSeriesArea.mjs +13 -20
- package/RadarChart/RadarSeriesPlot/RadarSeriesMarks.d.mts +15 -6
- package/RadarChart/RadarSeriesPlot/RadarSeriesMarks.d.ts +15 -6
- package/RadarChart/RadarSeriesPlot/RadarSeriesMarks.js +15 -20
- package/RadarChart/RadarSeriesPlot/RadarSeriesMarks.mjs +15 -20
- package/RadarChart/RadarSeriesPlot/RadarSeriesPlot.js +9 -12
- package/RadarChart/RadarSeriesPlot/RadarSeriesPlot.mjs +8 -11
- package/RadarChart/RadarSeriesPlot/RadarSeriesPlot.types.d.mts +6 -4
- package/RadarChart/RadarSeriesPlot/RadarSeriesPlot.types.d.ts +6 -4
- package/RadarChart/RadarSeriesPlot/index.d.mts +1 -3
- package/RadarChart/RadarSeriesPlot/index.d.ts +1 -3
- package/RadarChart/RadarSeriesPlot/index.js +2 -10
- package/RadarChart/RadarSeriesPlot/index.mjs +1 -2
- package/RadarChart/RadarSeriesPlot/useInteractionAllItemProps.js +2 -2
- package/RadarChart/RadarSeriesPlot/useInteractionAllItemProps.mjs +2 -2
- package/RadarChart/RadarSeriesPlot/useRadarSeriesData.d.mts +1 -1
- package/RadarChart/RadarSeriesPlot/useRadarSeriesData.d.ts +1 -1
- package/RadarChart/RadarSeriesPlot/useRadarSeriesData.js +10 -18
- package/RadarChart/RadarSeriesPlot/useRadarSeriesData.mjs +10 -18
- package/RadarChart/index.d.mts +3 -1
- package/RadarChart/index.d.ts +3 -1
- package/RadarChart/index.js +9 -1
- package/RadarChart/index.mjs +2 -1
- package/RadarChart/radarClasses.d.mts +30 -0
- package/RadarChart/radarClasses.d.ts +30 -0
- package/RadarChart/radarClasses.js +33 -0
- package/RadarChart/radarClasses.mjs +24 -0
- package/RadarChart/seriesConfig/legend.js +2 -21
- package/RadarChart/seriesConfig/legend.mjs +2 -21
- package/RadarChart/seriesConfig/tooltip.js +13 -8
- package/RadarChart/seriesConfig/tooltip.mjs +13 -8
- package/RadarChart/useRadarChartProps.js +3 -3
- package/RadarChart/useRadarChartProps.mjs +3 -3
- package/ScatterChart/BatchScatter.d.mts +2 -1
- package/ScatterChart/BatchScatter.d.ts +2 -1
- package/ScatterChart/BatchScatter.js +8 -6
- package/ScatterChart/BatchScatter.mjs +7 -6
- package/ScatterChart/FocusedScatterMark.d.mts +4 -1
- package/ScatterChart/FocusedScatterMark.d.ts +4 -1
- package/ScatterChart/FocusedScatterMark.js +12 -2
- package/ScatterChart/FocusedScatterMark.mjs +11 -1
- package/ScatterChart/Scatter.d.mts +1 -1
- package/ScatterChart/Scatter.d.ts +1 -1
- package/ScatterChart/Scatter.js +14 -12
- package/ScatterChart/Scatter.mjs +14 -12
- package/ScatterChart/ScatterChart.d.mts +15 -3
- package/ScatterChart/ScatterChart.d.ts +15 -3
- package/ScatterChart/ScatterChart.js +60 -15
- package/ScatterChart/ScatterChart.mjs +60 -15
- package/ScatterChart/ScatterPlot.d.mts +2 -1
- package/ScatterChart/ScatterPlot.d.ts +2 -1
- package/ScatterChart/ScatterPlot.js +16 -2
- package/ScatterChart/ScatterPlot.mjs +16 -2
- package/ScatterChart/index.d.mts +2 -2
- package/ScatterChart/index.d.ts +2 -2
- package/ScatterChart/scatterClasses.d.mts +14 -2
- package/ScatterChart/scatterClasses.d.ts +14 -2
- package/ScatterChart/scatterClasses.js +9 -3
- package/ScatterChart/scatterClasses.mjs +9 -3
- package/ScatterChart/seriesConfig/legend.js +2 -21
- package/ScatterChart/seriesConfig/legend.mjs +2 -21
- package/ScatterChart/useScatterChartProps.d.mts +2 -2
- package/ScatterChart/useScatterChartProps.d.ts +2 -2
- package/ScatterChart/useScatterChartProps.js +9 -8
- package/ScatterChart/useScatterChartProps.mjs +9 -8
- package/SparkLineChart/SparkLineChart.d.mts +2 -2
- package/SparkLineChart/SparkLineChart.d.ts +2 -2
- package/SparkLineChart/SparkLineChart.js +45 -12
- package/SparkLineChart/SparkLineChart.mjs +45 -12
- package/context/ChartApi.d.mts +1 -1
- package/context/ChartApi.d.ts +1 -1
- package/context/ChartsProvider/ChartsProvider.d.mts +1 -1
- package/context/ChartsProvider/ChartsProvider.d.ts +1 -1
- package/context/ChartsProvider/ChartsProvider.types.d.mts +3 -3
- package/context/ChartsProvider/ChartsProvider.types.d.ts +3 -3
- package/context/useChartApiContext.d.mts +1 -1
- package/context/useChartApiContext.d.ts +1 -1
- package/context/useChartApiContext.js +3 -3
- package/context/useChartApiContext.mjs +3 -3
- package/hooks/animation/useAnimatePieArcLabel.d.mts +1 -10
- package/hooks/animation/useAnimatePieArcLabel.d.ts +1 -10
- package/hooks/animation/useAnimatePieArcLabel.js +6 -10
- package/hooks/animation/useAnimatePieArcLabel.mjs +6 -10
- package/hooks/index.d.mts +2 -2
- package/hooks/index.d.ts +2 -2
- package/hooks/index.js +8 -8
- package/hooks/index.mjs +2 -2
- package/hooks/useChartRootRef.js +2 -2
- package/hooks/useChartRootRef.mjs +2 -2
- package/hooks/useChartsLayerContainerRef.js +2 -2
- package/hooks/useChartsLayerContainerRef.mjs +2 -2
- package/hooks/useDataset.js +1 -1
- package/hooks/useDataset.mjs +2 -2
- package/hooks/useInteractionItemProps.d.mts +1 -2
- package/hooks/useInteractionItemProps.d.ts +1 -2
- package/hooks/useInteractionItemProps.js +2 -2
- package/hooks/useInteractionItemProps.mjs +2 -2
- package/hooks/{useItemHighlighted.d.mts → useItemHighlightState.d.mts} +5 -13
- package/hooks/{useItemHighlighted.d.ts → useItemHighlightState.d.ts} +5 -13
- package/hooks/{useItemHighlighted.js → useItemHighlightState.js} +5 -10
- package/hooks/useItemHighlightState.mjs +17 -0
- package/hooks/useItemHighlightStateGetter.d.mts +9 -0
- package/hooks/useItemHighlightStateGetter.d.ts +9 -0
- package/hooks/useItemHighlightStateGetter.js +21 -0
- package/hooks/useItemHighlightStateGetter.mjs +16 -0
- package/hooks/useTicks.js +2 -2
- package/hooks/useTicks.mjs +2 -2
- package/index.d.mts +0 -3
- package/index.d.ts +0 -3
- package/index.js +2 -22
- package/index.mjs +1 -3
- package/internals/commonNextFocusItem.d.mts +5 -5
- package/internals/commonNextFocusItem.d.ts +5 -5
- package/internals/consumeSlots.d.mts +1 -1
- package/internals/consumeSlots.d.ts +1 -1
- package/internals/createCommonKeyboardFocusHandler.d.mts +2 -2
- package/internals/createCommonKeyboardFocusHandler.d.ts +2 -2
- package/internals/identifierCleaner.d.mts +8 -4
- package/internals/identifierCleaner.d.ts +8 -4
- package/internals/identifierCleaner.js +4 -1
- package/internals/identifierCleaner.mjs +4 -1
- package/internals/identifierSerializer.d.mts +10 -2
- package/internals/identifierSerializer.d.ts +10 -2
- package/internals/identifierSerializer.js +8 -0
- package/internals/identifierSerializer.mjs +8 -0
- package/internals/index.d.mts +2 -3
- package/internals/index.d.ts +2 -3
- package/internals/index.js +27 -36
- package/internals/index.mjs +2 -3
- package/internals/legendUtils.d.mts +11 -0
- package/internals/legendUtils.d.ts +11 -0
- package/internals/legendUtils.js +28 -0
- package/internals/legendUtils.mjs +22 -0
- package/internals/plugins/allPlugins.d.mts +2 -2
- package/internals/plugins/allPlugins.d.ts +2 -2
- package/internals/plugins/corePlugins/corePlugins.d.mts +1 -1
- package/internals/plugins/corePlugins/corePlugins.d.ts +1 -1
- package/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.js +2 -2
- package/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.mjs +2 -2
- package/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.selectors.d.mts +1 -4
- package/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.selectors.d.ts +1 -4
- package/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.selectors.js +2 -4
- package/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.selectors.mjs +1 -3
- package/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.d.mts +1 -6
- package/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.d.ts +1 -6
- package/internals/plugins/corePlugins/useChartSeries/processSeries.d.mts +6 -6
- package/internals/plugins/corePlugins/useChartSeries/processSeries.d.ts +6 -6
- package/internals/plugins/corePlugins/useChartSeries/useChartSeries.selectors.d.mts +24 -2
- package/internals/plugins/corePlugins/useChartSeries/useChartSeries.selectors.d.ts +24 -2
- package/internals/plugins/corePlugins/useChartSeries/useChartSeries.selectors.js +24 -3
- package/internals/plugins/corePlugins/useChartSeries/useChartSeries.selectors.mjs +23 -2
- package/internals/plugins/corePlugins/useChartSeries/useChartSeries.types.d.mts +9 -9
- package/internals/plugins/corePlugins/useChartSeries/useChartSeries.types.d.ts +9 -9
- package/internals/plugins/corePlugins/useChartSeries/useColorProcessor.d.mts +2 -2
- package/internals/plugins/corePlugins/useChartSeries/useColorProcessor.d.ts +2 -2
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/TooltipContent.types.d.mts +18 -0
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/TooltipContent.types.d.ts +18 -0
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/cartesianExtremumGetter.types.d.mts +3 -3
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/cartesianExtremumGetter.types.d.ts +3 -3
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/colorProcessor.types.d.mts +4 -4
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/colorProcessor.types.d.ts +4 -4
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/getItemAtPosition.types.d.mts +2 -2
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/getItemAtPosition.types.d.ts +2 -2
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/getSeriesWithDefaultValues.types.d.mts +1 -1
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/getSeriesWithDefaultValues.types.d.ts +1 -1
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/identifierCleaner.types.d.mts +1 -1
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/identifierCleaner.types.d.ts +1 -1
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/identifierSerializer.types.d.mts +1 -1
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/identifierSerializer.types.d.ts +1 -1
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/index.d.mts +2 -1
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/index.d.ts +2 -1
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/index.js +11 -0
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/index.mjs +2 -1
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/legendGetter.types.d.mts +1 -1
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/legendGetter.types.d.ts +1 -1
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/polarExtremumGetter.types.d.mts +3 -3
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/polarExtremumGetter.types.d.ts +3 -3
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/seriesConfig.types.d.mts +33 -28
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/seriesConfig.types.d.ts +33 -28
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/seriesLayout.types.d.mts +2 -2
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/seriesLayout.types.d.ts +2 -2
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/seriesProcessor.types.d.mts +6 -6
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/seriesProcessor.types.d.ts +6 -6
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/tooltipGetter.types.d.mts +27 -38
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/tooltipGetter.types.d.ts +27 -38
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/tooltipItemPositionGetter.types.d.mts +4 -4
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/tooltipItemPositionGetter.types.d.ts +4 -4
- package/internals/plugins/corePlugins/useChartSeriesConfig/useChartSeriesConfig.types.d.mts +10 -10
- package/internals/plugins/corePlugins/useChartSeriesConfig/useChartSeriesConfig.types.d.ts +10 -10
- package/internals/plugins/corePlugins/useChartSeriesConfig/utils/cleanIdentifier.d.mts +3 -3
- package/internals/plugins/corePlugins/useChartSeriesConfig/utils/cleanIdentifier.d.ts +3 -3
- package/internals/plugins/corePlugins/useChartSeriesConfig/utils/serializeIdentifier.d.mts +3 -3
- package/internals/plugins/corePlugins/useChartSeriesConfig/utils/serializeIdentifier.d.ts +3 -3
- package/internals/plugins/featurePlugins/shared/useRegisterPointerInteractions.js +2 -2
- package/internals/plugins/featurePlugins/shared/useRegisterPointerInteractions.mjs +2 -2
- package/internals/plugins/featurePlugins/useChartCartesianAxis/computeAxisValue.d.mts +5 -5
- package/internals/plugins/featurePlugins/useChartCartesianAxis/computeAxisValue.d.ts +5 -5
- package/internals/plugins/featurePlugins/useChartCartesianAxis/domain.d.mts +2 -2
- package/internals/plugins/featurePlugins/useChartCartesianAxis/domain.d.ts +2 -2
- package/internals/plugins/featurePlugins/useChartCartesianAxis/domain.js +4 -7
- package/internals/plugins/featurePlugins/useChartCartesianAxis/domain.mjs +4 -7
- 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/useChartCartesianAxisRendering.selectors.d.mts +5 -5
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.d.ts +5 -5
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.js +8 -9
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.mjs +8 -9
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianInteraction.selectors.d.mts +5 -5
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianInteraction.selectors.d.ts +5 -5
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianTooltip.selectors.d.mts +1 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianTooltip.selectors.d.ts +1 -1
- package/internals/plugins/featurePlugins/useChartClosestPoint/useChartClosestPoint.js +13 -11
- package/internals/plugins/featurePlugins/useChartClosestPoint/useChartClosestPoint.mjs +13 -11
- package/internals/plugins/featurePlugins/useChartClosestPoint/useChartClosestPoint.types.d.mts +4 -9
- package/internals/plugins/featurePlugins/useChartClosestPoint/useChartClosestPoint.types.d.ts +4 -9
- package/internals/plugins/featurePlugins/useChartHighlight/highlightStates.d.mts +1 -2
- package/internals/plugins/featurePlugins/useChartHighlight/highlightStates.d.ts +1 -2
- package/internals/plugins/featurePlugins/useChartHighlight/highlightStates.js +0 -5
- package/internals/plugins/featurePlugins/useChartHighlight/highlightStates.mjs +0 -4
- package/internals/plugins/featurePlugins/useChartHighlight/useChartHighlight.selectors.d.mts +10 -29
- package/internals/plugins/featurePlugins/useChartHighlight/useChartHighlight.selectors.d.ts +10 -29
- package/internals/plugins/featurePlugins/useChartHighlight/useChartHighlight.selectors.js +27 -64
- package/internals/plugins/featurePlugins/useChartHighlight/useChartHighlight.selectors.mjs +24 -60
- package/internals/plugins/featurePlugins/useChartItemClick/useChartItemClick.types.d.mts +3 -3
- package/internals/plugins/featurePlugins/useChartItemClick/useChartItemClick.types.d.ts +3 -3
- package/internals/plugins/featurePlugins/useChartKeyboardNavigation/keyboardFocusHandler.types.d.mts +3 -3
- package/internals/plugins/featurePlugins/useChartKeyboardNavigation/keyboardFocusHandler.types.d.ts +3 -3
- package/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.js +8 -10
- package/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.mjs +8 -10
- package/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.selectors.js +1 -1
- package/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.selectors.mjs +1 -1
- package/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.types.d.mts +8 -2
- package/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.types.d.ts +8 -2
- package/internals/plugins/featurePlugins/useChartPolarAxis/computeAxisValue.d.mts +5 -5
- package/internals/plugins/featurePlugins/useChartPolarAxis/computeAxisValue.d.ts +5 -5
- 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/useChartPolarAxis/useChartPolarInteraction.selectors.js +6 -4
- package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarInteraction.selectors.mjs +6 -4
- package/internals/plugins/featurePlugins/useChartTooltip/useChartTooltip.types.d.mts +10 -10
- package/internals/plugins/featurePlugins/useChartTooltip/useChartTooltip.types.d.ts +10 -10
- package/internals/plugins/featurePlugins/useChartVisibilityManager/useChartVisibilityManager.types.d.mts +16 -16
- package/internals/plugins/featurePlugins/useChartVisibilityManager/useChartVisibilityManager.types.d.ts +16 -16
- package/internals/plugins/models/chart.d.mts +1 -1
- package/internals/plugins/models/chart.d.ts +1 -1
- package/internals/seriesSelectorOfType.d.mts +3 -3
- package/internals/seriesSelectorOfType.d.ts +3 -3
- package/internals/store/useStore.js +2 -2
- package/internals/store/useStore.mjs +2 -2
- package/locales/elGR.d.mts +4 -0
- package/locales/elGR.d.ts +4 -0
- package/locales/elGR.js +6 -0
- package/locales/elGR.mjs +6 -0
- package/locales/enUS.d.mts +4 -0
- package/locales/enUS.d.ts +4 -0
- package/locales/enUS.js +6 -1
- package/locales/enUS.mjs +6 -1
- package/locales/frFR.d.mts +4 -0
- package/locales/frFR.d.ts +4 -0
- package/locales/frFR.js +6 -1
- package/locales/frFR.mjs +6 -1
- package/locales/nbNO.d.mts +4 -0
- package/locales/nbNO.d.ts +4 -0
- package/locales/nbNO.js +6 -0
- package/locales/nbNO.mjs +6 -0
- package/locales/ptBR.d.mts +4 -0
- package/locales/ptBR.d.ts +4 -0
- package/locales/ptBR.js +6 -0
- package/locales/ptBR.mjs +6 -0
- package/locales/ptPT.d.mts +4 -0
- package/locales/ptPT.d.ts +4 -0
- package/locales/ptPT.js +102 -99
- package/locales/ptPT.mjs +102 -99
- package/locales/svSE.d.mts +4 -0
- package/locales/svSE.d.ts +4 -0
- package/locales/svSE.js +6 -0
- package/locales/svSE.mjs +6 -0
- package/locales/utils/chartsLocaleTextApi.d.mts +16 -0
- package/locales/utils/chartsLocaleTextApi.d.ts +16 -0
- package/locales/utils/getChartsLocalization.d.mts +4 -0
- package/locales/utils/getChartsLocalization.d.ts +4 -0
- package/models/axis.d.mts +4 -0
- package/models/axis.d.ts +4 -0
- package/models/seriesType/composition.d.mts +1 -1
- package/models/seriesType/composition.d.ts +1 -1
- package/models/seriesType/composition.js +1 -1
- package/models/seriesType/composition.mjs +1 -1
- package/models/seriesType/config.d.mts +18 -6
- package/models/seriesType/config.d.ts +18 -6
- package/models/seriesType/index.d.mts +8 -8
- package/models/seriesType/index.d.ts +8 -8
- package/models/seriesType/line.d.mts +4 -2
- package/models/seriesType/line.d.ts +4 -2
- package/models/seriesType/radar.d.mts +1 -1
- package/models/seriesType/radar.d.ts +1 -1
- package/models/seriesType/scatter.d.mts +0 -7
- package/models/seriesType/scatter.d.ts +0 -7
- package/package.json +86 -114
- package/themeAugmentation/components.d.mts +22 -17
- package/themeAugmentation/components.d.ts +22 -17
- package/themeAugmentation/overrides.d.mts +10 -8
- package/themeAugmentation/overrides.d.ts +10 -8
- package/themeAugmentation/props.d.mts +0 -2
- package/themeAugmentation/props.d.ts +0 -2
- package/BarChart/BarLabel/barLabelClasses.d.mts +0 -26
- package/BarChart/BarLabel/barLabelClasses.d.ts +0 -26
- package/BarChart/BarLabel/barLabelClasses.js +0 -30
- package/BarChart/BarLabel/barLabelClasses.mjs +0 -20
- package/BarChart/barElementClasses.d.mts +0 -33
- package/BarChart/barElementClasses.d.ts +0 -33
- package/BarChart/barElementClasses.js +0 -29
- package/BarChart/barElementClasses.mjs +0 -19
- package/ChartContainer/ChartContainer.d.mts +0 -22
- package/ChartContainer/ChartContainer.d.ts +0 -22
- package/ChartContainer/ChartContainer.js +0 -24
- package/ChartContainer/ChartContainer.mjs +0 -20
- package/ChartContainer/index.d.mts +0 -1
- package/ChartContainer/index.d.ts +0 -1
- package/ChartContainer/index.js +0 -16
- package/ChartContainer/index.mjs +0 -1
- package/ChartContainer/useChartContainerProps.d.mts +0 -13
- package/ChartContainer/useChartContainerProps.d.ts +0 -13
- package/ChartContainer/useChartContainerProps.js +0 -19
- package/ChartContainer/useChartContainerProps.mjs +0 -14
- package/ChartDataProvider/ChartDataProvider.d.mts +0 -20
- package/ChartDataProvider/ChartDataProvider.d.ts +0 -20
- package/ChartDataProvider/ChartDataProvider.js +0 -24
- package/ChartDataProvider/ChartDataProvider.mjs +0 -20
- package/ChartDataProvider/index.d.mts +0 -1
- package/ChartDataProvider/index.d.ts +0 -1
- package/ChartDataProvider/index.js +0 -16
- package/ChartDataProvider/index.mjs +0 -1
- package/ChartDataProvider/useChartDataProviderProps.d.mts +0 -10
- package/ChartDataProvider/useChartDataProviderProps.d.ts +0 -10
- package/ChartDataProvider/useChartDataProviderProps.js +0 -12
- package/ChartDataProvider/useChartDataProviderProps.mjs +0 -8
- package/LineChart/markElementClasses.d.mts +0 -33
- package/LineChart/markElementClasses.d.ts +0 -33
- package/LineChart/markElementClasses.js +0 -29
- package/LineChart/markElementClasses.mjs +0 -20
- package/RadarChart/RadarAxis/radarAxisClasses.d.mts +0 -12
- package/RadarChart/RadarAxis/radarAxisClasses.d.ts +0 -12
- package/RadarChart/RadarAxis/radarAxisClasses.js +0 -25
- package/RadarChart/RadarAxis/radarAxisClasses.mjs +0 -15
- package/RadarChart/RadarAxisHighlight/radarAxisHighlightClasses.d.mts +0 -11
- package/RadarChart/RadarAxisHighlight/radarAxisHighlightClasses.d.ts +0 -11
- package/RadarChart/RadarAxisHighlight/radarAxisHighlightClasses.js +0 -14
- package/RadarChart/RadarAxisHighlight/radarAxisHighlightClasses.mjs +0 -6
- package/RadarChart/RadarGrid/radarGridClasses.d.mts +0 -12
- package/RadarChart/RadarGrid/radarGridClasses.d.ts +0 -12
- package/RadarChart/RadarGrid/radarGridClasses.js +0 -25
- package/RadarChart/RadarGrid/radarGridClasses.mjs +0 -15
- package/RadarChart/RadarSeriesPlot/radarSeriesPlotClasses.d.mts +0 -22
- package/RadarChart/RadarSeriesPlot/radarSeriesPlotClasses.d.ts +0 -22
- package/RadarChart/RadarSeriesPlot/radarSeriesPlotClasses.js +0 -26
- package/RadarChart/RadarSeriesPlot/radarSeriesPlotClasses.mjs +0 -17
- package/context/ChartProvider/ChartContext.d.mts +0 -5
- package/context/ChartProvider/ChartContext.d.ts +0 -5
- package/context/ChartProvider/ChartContext.js +0 -13
- package/context/ChartProvider/ChartContext.mjs +0 -9
- package/context/ChartProvider/ChartProvider.d.mts +0 -5
- package/context/ChartProvider/ChartProvider.d.ts +0 -5
- package/context/ChartProvider/ChartProvider.js +0 -12
- package/context/ChartProvider/ChartProvider.mjs +0 -8
- package/context/ChartProvider/ChartProvider.types.d.mts +0 -15
- package/context/ChartProvider/ChartProvider.types.d.ts +0 -15
- package/context/ChartProvider/index.d.mts +0 -3
- package/context/ChartProvider/index.d.ts +0 -3
- package/context/ChartProvider/index.js +0 -38
- package/context/ChartProvider/index.mjs +0 -3
- package/context/ChartProvider/useChartContext.d.mts +0 -4
- package/context/ChartProvider/useChartContext.d.ts +0 -4
- package/context/ChartProvider/useChartContext.js +0 -12
- package/context/ChartProvider/useChartContext.mjs +0 -8
- package/hooks/useItemHighlighted.mjs +0 -22
- package/hooks/useItemHighlightedGetter.d.mts +0 -53
- package/hooks/useItemHighlightedGetter.d.ts +0 -53
- package/hooks/useItemHighlightedGetter.js +0 -26
- package/hooks/useItemHighlightedGetter.mjs +0 -21
- package/tests/constants.js +0 -7
- package/tests/constants.mjs +0 -1
- /package/{context/ChartProvider/ChartProvider.types.js → internals/plugins/corePlugins/useChartSeriesConfig/types/TooltipContent.types.js} +0 -0
- /package/{context/ChartProvider/ChartProvider.types.mjs → internals/plugins/corePlugins/useChartSeriesConfig/types/TooltipContent.types.mjs} +0 -0
package/LineChart/MarkPlot.mjs
CHANGED
|
@@ -2,18 +2,26 @@
|
|
|
2
2
|
|
|
3
3
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
4
4
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
5
|
-
const _excluded = ["slots", "slotProps", "skipAnimation", "onItemClick"];
|
|
5
|
+
const _excluded = ["slots", "slotProps", "skipAnimation", "onItemClick", "className"];
|
|
6
6
|
import PropTypes from 'prop-types';
|
|
7
7
|
import * as React from 'react';
|
|
8
|
+
import { styled } from '@mui/material/styles';
|
|
9
|
+
import clsx from 'clsx';
|
|
8
10
|
import { useSkipAnimation } from "../hooks/useSkipAnimation.mjs";
|
|
9
11
|
import { CircleMarkElement } from "./CircleMarkElement.mjs";
|
|
10
12
|
import { MarkElement } from "./MarkElement.mjs";
|
|
11
|
-
import {
|
|
13
|
+
import { useItemHighlightStateGetter, useXAxes, useYAxes } from "../hooks/index.mjs";
|
|
12
14
|
import { useInternalIsZoomInteracting } from "../internals/plugins/featurePlugins/useChartCartesianAxis/useInternalIsZoomInteracting.mjs";
|
|
13
15
|
import { selectorChartsHighlightXAxisIndex } from "../internals/plugins/featurePlugins/useChartCartesianAxis/index.mjs";
|
|
14
|
-
import {
|
|
16
|
+
import { useChartsContext } from "../context/ChartsProvider/index.mjs";
|
|
15
17
|
import { useMarkPlotData } from "./useMarkPlotData.mjs";
|
|
18
|
+
import { useUtilityClasses } from "./lineClasses.mjs";
|
|
16
19
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
20
|
+
const MarkPlotRoot = styled('g', {
|
|
21
|
+
name: 'MuiMarkPlot',
|
|
22
|
+
slot: 'Root'
|
|
23
|
+
})({});
|
|
24
|
+
|
|
17
25
|
/**
|
|
18
26
|
* Demos:
|
|
19
27
|
*
|
|
@@ -29,7 +37,8 @@ function MarkPlot(props) {
|
|
|
29
37
|
slots,
|
|
30
38
|
slotProps,
|
|
31
39
|
skipAnimation: inSkipAnimation,
|
|
32
|
-
onItemClick
|
|
40
|
+
onItemClick,
|
|
41
|
+
className
|
|
33
42
|
} = props,
|
|
34
43
|
other = _objectWithoutPropertiesLoose(props, _excluded);
|
|
35
44
|
const isZoomInteracting = useInternalIsZoomInteracting();
|
|
@@ -42,11 +51,8 @@ function MarkPlot(props) {
|
|
|
42
51
|
} = useYAxes();
|
|
43
52
|
const {
|
|
44
53
|
store
|
|
45
|
-
} =
|
|
46
|
-
const
|
|
47
|
-
isFaded,
|
|
48
|
-
isHighlighted
|
|
49
|
-
} = useItemHighlightedGetter();
|
|
54
|
+
} = useChartsContext();
|
|
55
|
+
const getHighlightState = useItemHighlightStateGetter();
|
|
50
56
|
const xAxisHighlightIndexes = store.use(selectorChartsHighlightXAxisIndex);
|
|
51
57
|
const highlightedItems = React.useMemo(() => {
|
|
52
58
|
const rep = {};
|
|
@@ -63,7 +69,10 @@ function MarkPlot(props) {
|
|
|
63
69
|
return rep;
|
|
64
70
|
}, [xAxisHighlightIndexes]);
|
|
65
71
|
const completedData = useMarkPlotData(xAxis, yAxis);
|
|
66
|
-
|
|
72
|
+
const classes = useUtilityClasses();
|
|
73
|
+
return /*#__PURE__*/_jsx(MarkPlotRoot, _extends({
|
|
74
|
+
className: clsx(classes.markPlot, className)
|
|
75
|
+
}, other, {
|
|
67
76
|
children: completedData.map(({
|
|
68
77
|
seriesId,
|
|
69
78
|
clipId,
|
|
@@ -77,8 +86,9 @@ function MarkPlot(props) {
|
|
|
77
86
|
type: 'line',
|
|
78
87
|
seriesId
|
|
79
88
|
};
|
|
80
|
-
const
|
|
81
|
-
const
|
|
89
|
+
const seriesHighlightState = getHighlightState(identifier);
|
|
90
|
+
const isSeriesHighlighted = seriesHighlightState === 'highlighted';
|
|
91
|
+
const isSeriesFaded = seriesHighlightState === 'faded';
|
|
82
92
|
return /*#__PURE__*/_jsx("g", {
|
|
83
93
|
clipPath: `url(#${clipId})`,
|
|
84
94
|
"data-series": seriesId,
|
package/LineChart/index.d.mts
CHANGED
|
@@ -11,5 +11,5 @@ export * from "./MarkElement.mjs";
|
|
|
11
11
|
export * from "./FocusedLineMark.mjs";
|
|
12
12
|
export * from "./LineHighlightElement.mjs";
|
|
13
13
|
export * from "./LineChart.plugins.mjs";
|
|
14
|
-
export
|
|
15
|
-
export {
|
|
14
|
+
export { lineClasses } from "./lineClasses.mjs";
|
|
15
|
+
export type { LineClassKey, LineClasses } from "./lineClasses.mjs";
|
package/LineChart/index.d.ts
CHANGED
|
@@ -11,5 +11,5 @@ export * from "./MarkElement.js";
|
|
|
11
11
|
export * from "./FocusedLineMark.js";
|
|
12
12
|
export * from "./LineHighlightElement.js";
|
|
13
13
|
export * from "./LineChart.plugins.js";
|
|
14
|
-
export
|
|
15
|
-
export {
|
|
14
|
+
export { lineClasses } from "./lineClasses.js";
|
|
15
|
+
export type { LineClassKey, LineClasses } from "./lineClasses.js";
|
package/LineChart/index.js
CHANGED
|
@@ -4,19 +4,12 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
var _exportNames = {
|
|
7
|
-
|
|
8
|
-
markElementClasses: true
|
|
7
|
+
lineClasses: true
|
|
9
8
|
};
|
|
10
|
-
Object.defineProperty(exports, "
|
|
9
|
+
Object.defineProperty(exports, "lineClasses", {
|
|
11
10
|
enumerable: true,
|
|
12
11
|
get: function () {
|
|
13
|
-
return
|
|
14
|
-
}
|
|
15
|
-
});
|
|
16
|
-
Object.defineProperty(exports, "markElementClasses", {
|
|
17
|
-
enumerable: true,
|
|
18
|
-
get: function () {
|
|
19
|
-
return _markElementClasses.markElementClasses;
|
|
12
|
+
return _lineClasses.lineClasses;
|
|
20
13
|
}
|
|
21
14
|
});
|
|
22
15
|
var _LineChart = require("./LineChart");
|
|
@@ -175,4 +168,4 @@ Object.keys(_LineChart2).forEach(function (key) {
|
|
|
175
168
|
}
|
|
176
169
|
});
|
|
177
170
|
});
|
|
178
|
-
var
|
|
171
|
+
var _lineClasses = require("./lineClasses");
|
package/LineChart/index.mjs
CHANGED
|
@@ -11,4 +11,4 @@ export * from "./MarkElement.mjs";
|
|
|
11
11
|
export * from "./FocusedLineMark.mjs";
|
|
12
12
|
export * from "./LineHighlightElement.mjs";
|
|
13
13
|
export * from "./LineChart.plugins.mjs";
|
|
14
|
-
export {
|
|
14
|
+
export { lineClasses } from "./lineClasses.mjs";
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { type SeriesId } from "../models/seriesType/common.mjs";
|
|
2
|
+
export interface LineClasses {
|
|
3
|
+
/** Styles applied to the area element. */
|
|
4
|
+
area: string;
|
|
5
|
+
/** Styles applied to the line element. */
|
|
6
|
+
line: string;
|
|
7
|
+
/** Styles applied to the mark element. */
|
|
8
|
+
mark: string;
|
|
9
|
+
/** Styles applied to a mark element when it is animated. */
|
|
10
|
+
markAnimate: string;
|
|
11
|
+
/** Styles applied to the highlight element. */
|
|
12
|
+
highlight: string;
|
|
13
|
+
/** Styles applied to the AreaPlot root element. */
|
|
14
|
+
areaPlot: string;
|
|
15
|
+
/** Styles applied to the LinePlot root element. */
|
|
16
|
+
linePlot: string;
|
|
17
|
+
/** Styles applied to the MarkPlot root element. */
|
|
18
|
+
markPlot: string;
|
|
19
|
+
}
|
|
20
|
+
export type LineClassKey = keyof LineClasses;
|
|
21
|
+
export interface MarkElementOwnerState {
|
|
22
|
+
seriesId: SeriesId;
|
|
23
|
+
isFaded: boolean;
|
|
24
|
+
isHighlighted: boolean;
|
|
25
|
+
classes?: Partial<LineClasses>;
|
|
26
|
+
skipAnimation?: boolean;
|
|
27
|
+
}
|
|
28
|
+
export declare function getLineUtilityClass(slot: string): string;
|
|
29
|
+
export declare const lineClasses: LineClasses;
|
|
30
|
+
export interface UseUtilityClassesOptions {
|
|
31
|
+
skipAnimation?: boolean;
|
|
32
|
+
classes?: Partial<LineClasses>;
|
|
33
|
+
}
|
|
34
|
+
export declare const useUtilityClasses: (options?: UseUtilityClassesOptions) => Record<"line" | "area" | "mark" | "highlight" | "areaPlot" | "linePlot" | "markPlot", string>;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { type SeriesId } from "../models/seriesType/common.js";
|
|
2
|
+
export interface LineClasses {
|
|
3
|
+
/** Styles applied to the area element. */
|
|
4
|
+
area: string;
|
|
5
|
+
/** Styles applied to the line element. */
|
|
6
|
+
line: string;
|
|
7
|
+
/** Styles applied to the mark element. */
|
|
8
|
+
mark: string;
|
|
9
|
+
/** Styles applied to a mark element when it is animated. */
|
|
10
|
+
markAnimate: string;
|
|
11
|
+
/** Styles applied to the highlight element. */
|
|
12
|
+
highlight: string;
|
|
13
|
+
/** Styles applied to the AreaPlot root element. */
|
|
14
|
+
areaPlot: string;
|
|
15
|
+
/** Styles applied to the LinePlot root element. */
|
|
16
|
+
linePlot: string;
|
|
17
|
+
/** Styles applied to the MarkPlot root element. */
|
|
18
|
+
markPlot: string;
|
|
19
|
+
}
|
|
20
|
+
export type LineClassKey = keyof LineClasses;
|
|
21
|
+
export interface MarkElementOwnerState {
|
|
22
|
+
seriesId: SeriesId;
|
|
23
|
+
isFaded: boolean;
|
|
24
|
+
isHighlighted: boolean;
|
|
25
|
+
classes?: Partial<LineClasses>;
|
|
26
|
+
skipAnimation?: boolean;
|
|
27
|
+
}
|
|
28
|
+
export declare function getLineUtilityClass(slot: string): string;
|
|
29
|
+
export declare const lineClasses: LineClasses;
|
|
30
|
+
export interface UseUtilityClassesOptions {
|
|
31
|
+
skipAnimation?: boolean;
|
|
32
|
+
classes?: Partial<LineClasses>;
|
|
33
|
+
}
|
|
34
|
+
export declare const useUtilityClasses: (options?: UseUtilityClassesOptions) => Record<"line" | "area" | "mark" | "highlight" | "areaPlot" | "linePlot" | "markPlot", string>;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.getLineUtilityClass = getLineUtilityClass;
|
|
8
|
+
exports.useUtilityClasses = exports.lineClasses = void 0;
|
|
9
|
+
var _generateUtilityClass = _interopRequireDefault(require("@mui/utils/generateUtilityClass"));
|
|
10
|
+
var _composeClasses = _interopRequireDefault(require("@mui/utils/composeClasses"));
|
|
11
|
+
var _generateUtilityClasses = _interopRequireDefault(require("@mui/utils/generateUtilityClasses"));
|
|
12
|
+
function getLineUtilityClass(slot) {
|
|
13
|
+
return (0, _generateUtilityClass.default)('MuiLineChart', slot);
|
|
14
|
+
}
|
|
15
|
+
const lineClasses = exports.lineClasses = (0, _generateUtilityClasses.default)('MuiLineChart', ['area', 'line', 'mark', 'markAnimate', 'highlight', 'areaPlot', 'linePlot', 'markPlot']);
|
|
16
|
+
const useUtilityClasses = options => {
|
|
17
|
+
const {
|
|
18
|
+
skipAnimation,
|
|
19
|
+
classes
|
|
20
|
+
} = options ?? {};
|
|
21
|
+
const slots = {
|
|
22
|
+
area: ['area'],
|
|
23
|
+
line: ['line'],
|
|
24
|
+
mark: ['mark', !skipAnimation && 'markAnimate'],
|
|
25
|
+
highlight: ['highlight'],
|
|
26
|
+
areaPlot: ['areaPlot'],
|
|
27
|
+
linePlot: ['linePlot'],
|
|
28
|
+
markPlot: ['markPlot']
|
|
29
|
+
};
|
|
30
|
+
return (0, _composeClasses.default)(slots, getLineUtilityClass, classes);
|
|
31
|
+
};
|
|
32
|
+
exports.useUtilityClasses = useUtilityClasses;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import generateUtilityClass from '@mui/utils/generateUtilityClass';
|
|
2
|
+
import composeClasses from '@mui/utils/composeClasses';
|
|
3
|
+
import generateUtilityClasses from '@mui/utils/generateUtilityClasses';
|
|
4
|
+
export function getLineUtilityClass(slot) {
|
|
5
|
+
return generateUtilityClass('MuiLineChart', slot);
|
|
6
|
+
}
|
|
7
|
+
export const lineClasses = generateUtilityClasses('MuiLineChart', ['area', 'line', 'mark', 'markAnimate', 'highlight', 'areaPlot', 'linePlot', 'markPlot']);
|
|
8
|
+
export const useUtilityClasses = options => {
|
|
9
|
+
const {
|
|
10
|
+
skipAnimation,
|
|
11
|
+
classes
|
|
12
|
+
} = options ?? {};
|
|
13
|
+
const slots = {
|
|
14
|
+
area: ['area'],
|
|
15
|
+
line: ['line'],
|
|
16
|
+
mark: ['mark', !skipAnimation && 'markAnimate'],
|
|
17
|
+
highlight: ['highlight'],
|
|
18
|
+
areaPlot: ['areaPlot'],
|
|
19
|
+
linePlot: ['linePlot'],
|
|
20
|
+
markPlot: ['markPlot']
|
|
21
|
+
};
|
|
22
|
+
return composeClasses(slots, getLineUtilityClass, classes);
|
|
23
|
+
};
|
|
@@ -18,6 +18,7 @@ const legendGetter = params => {
|
|
|
18
18
|
acc.push({
|
|
19
19
|
type: 'line',
|
|
20
20
|
markType: series[seriesId].labelMarkType,
|
|
21
|
+
markShape: series[seriesId].showMark ? series[seriesId].shape ?? 'circle' : undefined,
|
|
21
22
|
seriesId,
|
|
22
23
|
color: series[seriesId].color,
|
|
23
24
|
label: formattedLabel
|
|
@@ -12,6 +12,7 @@ const legendGetter = params => {
|
|
|
12
12
|
acc.push({
|
|
13
13
|
type: 'line',
|
|
14
14
|
markType: series[seriesId].labelMarkType,
|
|
15
|
+
markShape: series[seriesId].showMark ? series[seriesId].shape ?? 'circle' : undefined,
|
|
15
16
|
seriesId,
|
|
16
17
|
color: series[seriesId].color,
|
|
17
18
|
label: formattedLabel
|
|
@@ -10,6 +10,7 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
|
|
|
10
10
|
var _d3Shape = require("@mui/x-charts-vendor/d3-shape");
|
|
11
11
|
var _warning = require("@mui/x-internals/warning");
|
|
12
12
|
var _stacking = require("../../internals/stacking");
|
|
13
|
+
const defaultShapes = ['circle', 'square', 'diamond', 'cross', 'star', 'triangle', 'wye'];
|
|
13
14
|
const lineValueFormatter = v => v == null ? '' : v.toLocaleString();
|
|
14
15
|
const seriesProcessor = (params, dataset, isItemVisible) => {
|
|
15
16
|
const {
|
|
@@ -21,19 +22,20 @@ const seriesProcessor = (params, dataset, isItemVisible) => {
|
|
|
21
22
|
stackOffset: 'none'
|
|
22
23
|
}
|
|
23
24
|
}));
|
|
24
|
-
|
|
25
|
+
const idToIndex = new Map();
|
|
25
26
|
// Create a data set with format adapted to d3
|
|
26
27
|
const d3Dataset = dataset ?? [];
|
|
27
|
-
seriesOrder.forEach(id => {
|
|
28
|
+
seriesOrder.forEach((id, seriesIndex) => {
|
|
29
|
+
idToIndex.set(id, seriesIndex);
|
|
28
30
|
const data = series[id].data;
|
|
29
31
|
if (data !== undefined) {
|
|
30
|
-
data.forEach((value,
|
|
31
|
-
if (d3Dataset.length <=
|
|
32
|
+
data.forEach((value, dataIndex) => {
|
|
33
|
+
if (d3Dataset.length <= dataIndex) {
|
|
32
34
|
d3Dataset.push({
|
|
33
35
|
[id]: value
|
|
34
36
|
});
|
|
35
37
|
} else {
|
|
36
|
-
d3Dataset[
|
|
38
|
+
d3Dataset[dataIndex][id] = value;
|
|
37
39
|
}
|
|
38
40
|
});
|
|
39
41
|
} else if (dataset === undefined && process.env.NODE_ENV !== 'production') {
|
|
@@ -96,8 +98,9 @@ Line plots only support numeric and null values.`);
|
|
|
96
98
|
seriesId: id
|
|
97
99
|
});
|
|
98
100
|
completedSeries[id] = (0, _extends2.default)({
|
|
99
|
-
labelMarkType: 'line'
|
|
101
|
+
labelMarkType: 'line+mark'
|
|
100
102
|
}, series[id], {
|
|
103
|
+
shape: series[id].shape ?? defaultShapes[(idToIndex.get(id) ?? 0) % defaultShapes.length],
|
|
101
104
|
data,
|
|
102
105
|
valueFormatter: series[id].valueFormatter ?? lineValueFormatter,
|
|
103
106
|
hidden,
|
|
@@ -3,6 +3,7 @@ import _extends from "@babel/runtime/helpers/esm/extends";
|
|
|
3
3
|
import { stack as d3Stack } from '@mui/x-charts-vendor/d3-shape';
|
|
4
4
|
import { warnOnce } from '@mui/x-internals/warning';
|
|
5
5
|
import { getStackingGroups } from "../../internals/stacking/index.mjs";
|
|
6
|
+
const defaultShapes = ['circle', 'square', 'diamond', 'cross', 'star', 'triangle', 'wye'];
|
|
6
7
|
const lineValueFormatter = v => v == null ? '' : v.toLocaleString();
|
|
7
8
|
const seriesProcessor = (params, dataset, isItemVisible) => {
|
|
8
9
|
const {
|
|
@@ -14,19 +15,20 @@ const seriesProcessor = (params, dataset, isItemVisible) => {
|
|
|
14
15
|
stackOffset: 'none'
|
|
15
16
|
}
|
|
16
17
|
}));
|
|
17
|
-
|
|
18
|
+
const idToIndex = new Map();
|
|
18
19
|
// Create a data set with format adapted to d3
|
|
19
20
|
const d3Dataset = dataset ?? [];
|
|
20
|
-
seriesOrder.forEach(id => {
|
|
21
|
+
seriesOrder.forEach((id, seriesIndex) => {
|
|
22
|
+
idToIndex.set(id, seriesIndex);
|
|
21
23
|
const data = series[id].data;
|
|
22
24
|
if (data !== undefined) {
|
|
23
|
-
data.forEach((value,
|
|
24
|
-
if (d3Dataset.length <=
|
|
25
|
+
data.forEach((value, dataIndex) => {
|
|
26
|
+
if (d3Dataset.length <= dataIndex) {
|
|
25
27
|
d3Dataset.push({
|
|
26
28
|
[id]: value
|
|
27
29
|
});
|
|
28
30
|
} else {
|
|
29
|
-
d3Dataset[
|
|
31
|
+
d3Dataset[dataIndex][id] = value;
|
|
30
32
|
}
|
|
31
33
|
});
|
|
32
34
|
} else if (dataset === undefined && process.env.NODE_ENV !== 'production') {
|
|
@@ -89,8 +91,9 @@ Line plots only support numeric and null values.`);
|
|
|
89
91
|
seriesId: id
|
|
90
92
|
});
|
|
91
93
|
completedSeries[id] = _extends({
|
|
92
|
-
labelMarkType: 'line'
|
|
94
|
+
labelMarkType: 'line+mark'
|
|
93
95
|
}, series[id], {
|
|
96
|
+
shape: series[id].shape ?? defaultShapes[(idToIndex.get(id) ?? 0) % defaultShapes.length],
|
|
94
97
|
data,
|
|
95
98
|
valueFormatter: series[id].valueFormatter ?? lineValueFormatter,
|
|
96
99
|
hidden,
|
|
@@ -19,7 +19,8 @@ const tooltipGetter = params => {
|
|
|
19
19
|
label,
|
|
20
20
|
value,
|
|
21
21
|
formattedValue,
|
|
22
|
-
markType: series.labelMarkType
|
|
22
|
+
markType: series.labelMarkType,
|
|
23
|
+
markShape: series.showMark ? series.shape : undefined
|
|
23
24
|
};
|
|
24
25
|
};
|
|
25
26
|
export const axisTooltipGetter = series => {
|
|
@@ -5,7 +5,7 @@ import { type ChartsClipPathProps } from "../ChartsClipPath/index.mjs";
|
|
|
5
5
|
import { type ChartsGridProps } from "../ChartsGrid/index.mjs";
|
|
6
6
|
import { type ChartsLegendSlotExtension } from "../ChartsLegend/index.mjs";
|
|
7
7
|
import { type ChartsOverlayProps } from "../ChartsOverlay/index.mjs";
|
|
8
|
-
import { type
|
|
8
|
+
import { type ChartsContainerProps } from "../ChartsContainer/index.mjs";
|
|
9
9
|
import { type AreaPlotProps } from "./AreaPlot.mjs";
|
|
10
10
|
import type { LineChartProps } from "./LineChart.mjs";
|
|
11
11
|
import { type LineHighlightPlotProps } from "./LineHighlightPlot.mjs";
|
|
@@ -22,7 +22,7 @@ import { type LineChartPluginSignatures } from "./LineChart.plugins.mjs";
|
|
|
22
22
|
*/
|
|
23
23
|
export declare const useLineChartProps: (props: LineChartProps) => {
|
|
24
24
|
chartsWrapperProps: Omit<ChartsWrapperProps, "children">;
|
|
25
|
-
|
|
25
|
+
chartsContainerProps: ChartsContainerProps<"line", LineChartPluginSignatures>;
|
|
26
26
|
gridProps: ChartsGridProps;
|
|
27
27
|
clipPathProps: ChartsClipPathProps;
|
|
28
28
|
clipPathGroupProps: {
|
|
@@ -5,7 +5,7 @@ import { type ChartsClipPathProps } from "../ChartsClipPath/index.js";
|
|
|
5
5
|
import { type ChartsGridProps } from "../ChartsGrid/index.js";
|
|
6
6
|
import { type ChartsLegendSlotExtension } from "../ChartsLegend/index.js";
|
|
7
7
|
import { type ChartsOverlayProps } from "../ChartsOverlay/index.js";
|
|
8
|
-
import { type
|
|
8
|
+
import { type ChartsContainerProps } from "../ChartsContainer/index.js";
|
|
9
9
|
import { type AreaPlotProps } from "./AreaPlot.js";
|
|
10
10
|
import type { LineChartProps } from "./LineChart.js";
|
|
11
11
|
import { type LineHighlightPlotProps } from "./LineHighlightPlot.js";
|
|
@@ -22,7 +22,7 @@ import { type LineChartPluginSignatures } from "./LineChart.plugins.js";
|
|
|
22
22
|
*/
|
|
23
23
|
export declare const useLineChartProps: (props: LineChartProps) => {
|
|
24
24
|
chartsWrapperProps: Omit<ChartsWrapperProps, "children">;
|
|
25
|
-
|
|
25
|
+
chartsContainerProps: ChartsContainerProps<"line", LineChartPluginSignatures>;
|
|
26
26
|
gridProps: ChartsGridProps;
|
|
27
27
|
clipPathProps: ChartsClipPathProps;
|
|
28
28
|
clipPathGroupProps: {
|
|
@@ -55,7 +55,7 @@ const useLineChartProps = props => {
|
|
|
55
55
|
disableHighlight: !!disableLineItemHighlight,
|
|
56
56
|
type: 'line'
|
|
57
57
|
}, s)), [disableLineItemHighlight, series]);
|
|
58
|
-
const
|
|
58
|
+
const chartsContainerProps = (0, _extends2.default)({}, other, {
|
|
59
59
|
series: seriesWithDefault,
|
|
60
60
|
width,
|
|
61
61
|
height,
|
|
@@ -132,7 +132,7 @@ const useLineChartProps = props => {
|
|
|
132
132
|
};
|
|
133
133
|
return {
|
|
134
134
|
chartsWrapperProps,
|
|
135
|
-
|
|
135
|
+
chartsContainerProps,
|
|
136
136
|
gridProps,
|
|
137
137
|
clipPathProps,
|
|
138
138
|
clipPathGroupProps,
|
|
@@ -49,7 +49,7 @@ export const useLineChartProps = props => {
|
|
|
49
49
|
disableHighlight: !!disableLineItemHighlight,
|
|
50
50
|
type: 'line'
|
|
51
51
|
}, s)), [disableLineItemHighlight, series]);
|
|
52
|
-
const
|
|
52
|
+
const chartsContainerProps = _extends({}, other, {
|
|
53
53
|
series: seriesWithDefault,
|
|
54
54
|
width,
|
|
55
55
|
height,
|
|
@@ -126,7 +126,7 @@ export const useLineChartProps = props => {
|
|
|
126
126
|
};
|
|
127
127
|
return {
|
|
128
128
|
chartsWrapperProps,
|
|
129
|
-
|
|
129
|
+
chartsContainerProps,
|
|
130
130
|
gridProps,
|
|
131
131
|
clipPathProps,
|
|
132
132
|
clipPathGroupProps,
|
|
@@ -12,7 +12,7 @@ var _hooks = require("../hooks");
|
|
|
12
12
|
var _cleanId = require("../internals/cleanId");
|
|
13
13
|
var _constants = require("../constants");
|
|
14
14
|
var _getColor = _interopRequireDefault(require("./seriesConfig/getColor"));
|
|
15
|
-
var
|
|
15
|
+
var _ChartsProvider = require("../context/ChartsProvider");
|
|
16
16
|
function useMarkPlotData(xAxes, yAxes) {
|
|
17
17
|
const seriesData = (0, _hooks.useLineSeriesContext)();
|
|
18
18
|
const defaultXAxisId = (0, _hooks.useXAxes)().xAxisIds[0];
|
|
@@ -20,7 +20,7 @@ function useMarkPlotData(xAxes, yAxes) {
|
|
|
20
20
|
const chartId = (0, _useChartId.useChartId)();
|
|
21
21
|
const {
|
|
22
22
|
instance
|
|
23
|
-
} = (0,
|
|
23
|
+
} = (0, _ChartsProvider.useChartsContext)();
|
|
24
24
|
const allData = React.useMemo(() => {
|
|
25
25
|
if (seriesData === undefined) {
|
|
26
26
|
return [];
|
|
@@ -4,7 +4,7 @@ import { getValueToPositionMapper, useLineSeriesContext, useXAxes, useYAxes } fr
|
|
|
4
4
|
import { cleanId } from "../internals/cleanId.mjs";
|
|
5
5
|
import { DEFAULT_X_AXIS_KEY } from "../constants/index.mjs";
|
|
6
6
|
import getColor from "./seriesConfig/getColor.mjs";
|
|
7
|
-
import {
|
|
7
|
+
import { useChartsContext } from "../context/ChartsProvider/index.mjs";
|
|
8
8
|
export function useMarkPlotData(xAxes, yAxes) {
|
|
9
9
|
const seriesData = useLineSeriesContext();
|
|
10
10
|
const defaultXAxisId = useXAxes().xAxisIds[0];
|
|
@@ -12,7 +12,7 @@ export function useMarkPlotData(xAxes, yAxes) {
|
|
|
12
12
|
const chartId = useChartId();
|
|
13
13
|
const {
|
|
14
14
|
instance
|
|
15
|
-
} =
|
|
15
|
+
} = useChartsContext();
|
|
16
16
|
const allData = React.useMemo(() => {
|
|
17
17
|
if (seriesData === undefined) {
|
|
18
18
|
return [];
|
|
@@ -2,19 +2,18 @@
|
|
|
2
2
|
'use client';
|
|
3
3
|
|
|
4
4
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
5
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
6
5
|
Object.defineProperty(exports, "__esModule", {
|
|
7
6
|
value: true
|
|
8
7
|
});
|
|
9
8
|
exports.FocusedPieArc = FocusedPieArc;
|
|
10
9
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
11
10
|
var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
|
|
12
|
-
var React = _interopRequireWildcard(require("react"));
|
|
13
11
|
var _styles = require("@mui/material/styles");
|
|
14
12
|
var _useFocusedItem = require("../hooks/useFocusedItem");
|
|
15
13
|
var _usePieSeries = require("../hooks/usePieSeries");
|
|
16
14
|
var _PieArc = require("./PieArc");
|
|
17
|
-
var
|
|
15
|
+
var _pieClasses = require("./pieClasses");
|
|
16
|
+
var _useItemHighlightState = require("../hooks/useItemHighlightState");
|
|
18
17
|
var _getModifiedArcProperties = require("./dataTransform/getModifiedArcProperties");
|
|
19
18
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
20
19
|
const _excluded = ["arcLabelRadius"];
|
|
@@ -22,11 +21,11 @@ function FocusedPieArc(props) {
|
|
|
22
21
|
const theme = (0, _styles.useTheme)();
|
|
23
22
|
const focusedItem = (0, _useFocusedItem.useFocusedItem)();
|
|
24
23
|
const pieSeriesLayout = (0, _usePieSeries.usePieSeriesLayout)();
|
|
25
|
-
const
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
} = (0, _useItemHighlighted.useItemHighlighted)(focusedItem);
|
|
24
|
+
const highlightState = (0, _useItemHighlightState.useItemHighlightState)(focusedItem);
|
|
25
|
+
const isHighlighted = highlightState === 'highlighted';
|
|
26
|
+
const isFaded = highlightState === 'faded';
|
|
29
27
|
const pieSeries = (0, _usePieSeries.usePieSeriesContext)();
|
|
28
|
+
const classes = (0, _pieClasses.useUtilityClasses)();
|
|
30
29
|
if (focusedItem === null || focusedItem.type !== 'pie' || !pieSeries) {
|
|
31
30
|
return null;
|
|
32
31
|
}
|
|
@@ -51,7 +50,7 @@ function FocusedPieArc(props) {
|
|
|
51
50
|
skipAnimation: true,
|
|
52
51
|
stroke: (theme.vars ?? theme).palette.text.primary,
|
|
53
52
|
seriesId: series.id,
|
|
54
|
-
className:
|
|
53
|
+
className: classes.focusIndicator,
|
|
55
54
|
dataIndex: focusedItem.dataIndex,
|
|
56
55
|
isFaded: false,
|
|
57
56
|
isHighlighted: false,
|
|
@@ -3,23 +3,23 @@
|
|
|
3
3
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
4
4
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
5
5
|
const _excluded = ["arcLabelRadius"];
|
|
6
|
-
import * as React from 'react';
|
|
7
6
|
import { useTheme } from '@mui/material/styles';
|
|
8
7
|
import { useFocusedItem } from "../hooks/useFocusedItem.mjs";
|
|
9
8
|
import { usePieSeriesContext, usePieSeriesLayout } from "../hooks/usePieSeries.mjs";
|
|
10
|
-
import { PieArc
|
|
11
|
-
import {
|
|
9
|
+
import { PieArc } from "./PieArc.mjs";
|
|
10
|
+
import { useUtilityClasses } from "./pieClasses.mjs";
|
|
11
|
+
import { useItemHighlightState } from "../hooks/useItemHighlightState.mjs";
|
|
12
12
|
import { getModifiedArcProperties } from "./dataTransform/getModifiedArcProperties.mjs";
|
|
13
13
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
14
|
export function FocusedPieArc(props) {
|
|
15
15
|
const theme = useTheme();
|
|
16
16
|
const focusedItem = useFocusedItem();
|
|
17
17
|
const pieSeriesLayout = usePieSeriesLayout();
|
|
18
|
-
const
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
} = useItemHighlighted(focusedItem);
|
|
18
|
+
const highlightState = useItemHighlightState(focusedItem);
|
|
19
|
+
const isHighlighted = highlightState === 'highlighted';
|
|
20
|
+
const isFaded = highlightState === 'faded';
|
|
22
21
|
const pieSeries = usePieSeriesContext();
|
|
22
|
+
const classes = useUtilityClasses();
|
|
23
23
|
if (focusedItem === null || focusedItem.type !== 'pie' || !pieSeries) {
|
|
24
24
|
return null;
|
|
25
25
|
}
|
|
@@ -44,7 +44,7 @@ export function FocusedPieArc(props) {
|
|
|
44
44
|
skipAnimation: true,
|
|
45
45
|
stroke: (theme.vars ?? theme).palette.text.primary,
|
|
46
46
|
seriesId: series.id,
|
|
47
|
-
className:
|
|
47
|
+
className: classes.focusIndicator,
|
|
48
48
|
dataIndex: focusedItem.dataIndex,
|
|
49
49
|
isFaded: false,
|
|
50
50
|
isHighlighted: false,
|
package/PieChart/PieArc.d.mts
CHANGED
|
@@ -1,39 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { type
|
|
3
|
-
export interface PieArcClasses {
|
|
4
|
-
/** Styles applied to the root element. */
|
|
5
|
-
root: string;
|
|
6
|
-
/**
|
|
7
|
-
* Styles applied to the root element when highlighted.
|
|
8
|
-
* @deprecated Use `[data-highlighted]` selector instead.
|
|
9
|
-
*/
|
|
10
|
-
highlighted: string;
|
|
11
|
-
/**
|
|
12
|
-
* Styles applied to the root element when faded.
|
|
13
|
-
* @deprecated Use `[data-faded]` selector instead.
|
|
14
|
-
*/
|
|
15
|
-
faded: string;
|
|
16
|
-
/**
|
|
17
|
-
* Styles applied to the root element for a specified series.
|
|
18
|
-
* Needs to be suffixed with the series ID: `.${pieArcClasses.series}-${seriesId}`.
|
|
19
|
-
*/
|
|
20
|
-
series: string;
|
|
21
|
-
/** Styles applied to the focus indicator element. */
|
|
22
|
-
focusIndicator: string;
|
|
23
|
-
}
|
|
24
|
-
export type PieArcClassKey = keyof PieArcClasses;
|
|
25
|
-
interface PieArcOwnerState {
|
|
26
|
-
seriesId: SeriesId;
|
|
27
|
-
dataIndex: number;
|
|
28
|
-
color: string;
|
|
29
|
-
isFaded: boolean;
|
|
30
|
-
isHighlighted: boolean;
|
|
31
|
-
isFocused: boolean;
|
|
32
|
-
stroke?: string;
|
|
33
|
-
classes?: Partial<PieArcClasses>;
|
|
34
|
-
}
|
|
35
|
-
export declare function getPieArcUtilityClass(slot: string): string;
|
|
36
|
-
export declare const pieArcClasses: PieArcClasses;
|
|
2
|
+
import { type PieArcOwnerState } from "./pieClasses.mjs";
|
|
37
3
|
export type PieArcProps = Omit<React.SVGProps<SVGPathElement>, 'ref'> & PieArcOwnerState & {
|
|
38
4
|
cornerRadius: number;
|
|
39
5
|
endAngle: number;
|