@mui/x-charts 8.0.0-beta.1 → 8.0.0-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/BarChart/AnimatedBarElement.d.ts +38 -8
- package/BarChart/AnimatedBarElement.js +5 -5
- package/BarChart/BarChart.js +2 -0
- package/BarChart/BarClipPath.d.ts +19 -1
- package/BarChart/BarClipPath.js +84 -17
- package/BarChart/BarElement.d.ts +9 -20
- package/BarChart/BarElement.js +29 -26
- package/BarChart/BarLabel/BarLabel.d.ts +27 -854
- package/BarChart/BarLabel/BarLabel.js +32 -5
- package/BarChart/BarLabel/BarLabel.types.d.ts +2 -0
- package/BarChart/BarLabel/BarLabelItem.d.ts +24 -0
- package/BarChart/BarLabel/BarLabelItem.js +18 -6
- package/BarChart/BarLabel/BarLabelPlot.js +16 -46
- package/BarChart/BarLabel/barLabelClasses.d.ts +3 -1
- package/BarChart/BarLabel/barLabelClasses.js +4 -3
- package/BarChart/BarPlot.js +37 -61
- package/BarChart/barElementClasses.d.ts +21 -0
- package/BarChart/barElementClasses.js +29 -0
- package/BarChart/getRadius.d.ts +1 -1
- package/BarChart/index.d.ts +2 -1
- package/BarChart/index.js +11 -0
- package/BarChart/seriesConfig/index.js +3 -1
- package/BarChart/seriesConfig/tooltip.d.ts +2 -1
- package/BarChart/seriesConfig/tooltip.js +14 -1
- package/BarChart/types.d.ts +2 -2
- package/BarChart/useBarChartProps.d.ts +2 -1
- package/BarChart/useBarChartProps.js +20 -13
- package/CHANGELOG.md +235 -0
- package/ChartContainer/ChartContainer.js +4 -0
- package/ChartsAxisHighlight/ChartsXAxisHighlight.js +8 -8
- package/ChartsAxisHighlight/ChartsYAxisHighlight.js +8 -8
- package/ChartsLabel/ChartsLabelMark.js +0 -4
- package/ChartsLabel/index.d.ts +1 -0
- package/ChartsLabel/index.js +7 -0
- package/ChartsLegend/continuousColorLegendClasses.d.ts +1 -1
- package/ChartsOverlay/ChartsLoadingOverlay.js +1 -1
- package/ChartsOverlay/ChartsNoDataOverlay.js +1 -1
- package/ChartsTooltip/ChartsAxisTooltipContent.js +47 -55
- package/ChartsTooltip/ChartsItemTooltipContent.js +11 -9
- package/ChartsTooltip/ChartsTooltip.js +2 -2
- package/ChartsTooltip/ChartsTooltipContainer.js +4 -8
- package/ChartsTooltip/ChartsTooltipTable.d.ts +3 -1
- package/ChartsTooltip/ChartsTooltipTable.js +24 -9
- package/ChartsTooltip/chartsTooltipClasses.d.ts +4 -4
- package/ChartsTooltip/chartsTooltipClasses.js +2 -2
- package/ChartsTooltip/index.d.ts +1 -0
- package/ChartsTooltip/index.js +12 -0
- package/ChartsTooltip/useAxesTooltip.d.ts +7 -0
- package/ChartsTooltip/useAxesTooltip.js +18 -0
- package/ChartsTooltip/useAxisTooltip.d.ts +24 -3
- package/ChartsTooltip/useAxisTooltip.js +72 -38
- package/ChartsTooltip/useItemTooltip.js +4 -1
- package/ChartsXAxis/ChartsXAxis.js +5 -2
- package/ChartsYAxis/ChartsYAxis.js +69 -17
- package/LineChart/AnimatedArea.js +5 -22
- package/LineChart/AnimatedLine.d.ts +1 -4
- package/LineChart/AnimatedLine.js +10 -25
- package/LineChart/AppearingMask.d.ts +5 -0
- package/LineChart/AppearingMask.js +25 -18
- package/LineChart/CircleMarkElement.js +17 -23
- package/LineChart/LineChart.js +2 -0
- package/LineChart/LineHighlightPlot.js +3 -4
- package/LineChart/MarkElement.js +16 -27
- package/LineChart/MarkPlot.js +0 -1
- package/LineChart/markElementClasses.d.ts +3 -0
- package/LineChart/markElementClasses.js +4 -3
- package/LineChart/seriesConfig/index.js +3 -1
- package/LineChart/seriesConfig/tooltip.d.ts +2 -1
- package/LineChart/seriesConfig/tooltip.js +8 -1
- package/LineChart/useLineChartProps.d.ts +2 -1
- package/LineChart/useLineChartProps.js +7 -4
- package/PieChart/PieArc.d.ts +19 -11
- package/PieChart/PieArc.js +37 -24
- package/PieChart/PieArcLabel.d.ts +22 -13
- package/PieChart/PieArcLabel.js +52 -48
- package/PieChart/PieArcLabelPlot.js +16 -34
- package/PieChart/PieArcPlot.js +21 -34
- package/PieChart/seriesConfig/tooltip.js +3 -0
- package/RadarChart/RadarAxisHighlight/useRadarAxisHighlight.js +9 -5
- package/RadarChart/RadarGrid/RadarGrid.d.ts +1 -1
- package/RadarChart/RadarGrid/RadarGrid.js +5 -1
- package/RadarChart/RadarGrid/useRadarGridData.d.ts +1 -1
- package/RadarChart/RadarGrid/useRadarGridData.js +3 -0
- package/RadarChart/RadarSeriesPlot/useRadarSeriesData.js +2 -2
- package/ScatterChart/ScatterChart.js +2 -0
- package/ScatterChart/useScatterChartProps.d.ts +2 -1
- package/ScatterChart/useScatterChartProps.js +6 -3
- package/SparkLineChart/SparkLineChart.js +2 -0
- package/colorPalettes/colorPalettes.js +2 -2
- package/constants/index.d.ts +1 -1
- package/constants/index.js +1 -1
- package/context/AnimationProvider/AnimationProvider.js +4 -6
- package/esm/BarChart/AnimatedBarElement.d.ts +38 -8
- package/esm/BarChart/AnimatedBarElement.js +5 -5
- package/esm/BarChart/BarChart.js +2 -0
- package/esm/BarChart/BarClipPath.d.ts +19 -1
- package/esm/BarChart/BarClipPath.js +84 -17
- package/esm/BarChart/BarElement.d.ts +9 -20
- package/esm/BarChart/BarElement.js +28 -23
- package/esm/BarChart/BarLabel/BarLabel.d.ts +27 -854
- package/esm/BarChart/BarLabel/BarLabel.js +32 -5
- package/esm/BarChart/BarLabel/BarLabel.types.d.ts +2 -0
- package/esm/BarChart/BarLabel/BarLabelItem.d.ts +24 -0
- package/esm/BarChart/BarLabel/BarLabelItem.js +18 -6
- package/esm/BarChart/BarLabel/BarLabelPlot.js +16 -46
- package/esm/BarChart/BarLabel/barLabelClasses.d.ts +3 -1
- package/esm/BarChart/BarLabel/barLabelClasses.js +4 -3
- package/esm/BarChart/BarPlot.js +37 -61
- package/esm/BarChart/barElementClasses.d.ts +21 -0
- package/esm/BarChart/barElementClasses.js +19 -0
- package/esm/BarChart/getRadius.d.ts +1 -1
- package/esm/BarChart/index.d.ts +2 -1
- package/esm/BarChart/index.js +2 -1
- package/esm/BarChart/seriesConfig/index.js +2 -1
- package/esm/BarChart/seriesConfig/tooltip.d.ts +2 -1
- package/esm/BarChart/seriesConfig/tooltip.js +12 -0
- package/esm/BarChart/types.d.ts +2 -2
- package/esm/BarChart/useBarChartProps.d.ts +2 -1
- package/esm/BarChart/useBarChartProps.js +19 -13
- package/esm/ChartContainer/ChartContainer.js +4 -0
- package/esm/ChartsAxisHighlight/ChartsXAxisHighlight.js +8 -8
- package/esm/ChartsAxisHighlight/ChartsYAxisHighlight.js +8 -8
- package/esm/ChartsLabel/ChartsLabelMark.js +0 -4
- package/esm/ChartsLabel/index.d.ts +1 -0
- package/esm/ChartsLabel/index.js +1 -0
- package/esm/ChartsLegend/continuousColorLegendClasses.d.ts +1 -1
- package/esm/ChartsOverlay/ChartsLoadingOverlay.js +1 -1
- package/esm/ChartsOverlay/ChartsNoDataOverlay.js +1 -1
- package/esm/ChartsTooltip/ChartsAxisTooltipContent.js +47 -55
- package/esm/ChartsTooltip/ChartsItemTooltipContent.js +11 -9
- package/esm/ChartsTooltip/ChartsTooltip.js +2 -2
- package/esm/ChartsTooltip/ChartsTooltipContainer.js +5 -9
- package/esm/ChartsTooltip/ChartsTooltipTable.d.ts +3 -1
- package/esm/ChartsTooltip/ChartsTooltipTable.js +23 -9
- package/esm/ChartsTooltip/chartsTooltipClasses.d.ts +4 -4
- package/esm/ChartsTooltip/chartsTooltipClasses.js +2 -2
- package/esm/ChartsTooltip/index.d.ts +1 -0
- package/esm/ChartsTooltip/index.js +1 -0
- package/esm/ChartsTooltip/useAxesTooltip.d.ts +7 -0
- package/esm/ChartsTooltip/useAxesTooltip.js +12 -0
- package/esm/ChartsTooltip/useAxisTooltip.d.ts +24 -3
- package/esm/ChartsTooltip/useAxisTooltip.js +72 -38
- package/esm/ChartsTooltip/useItemTooltip.js +4 -1
- package/esm/ChartsXAxis/ChartsXAxis.js +5 -2
- package/esm/ChartsYAxis/ChartsYAxis.js +69 -17
- package/esm/LineChart/AnimatedArea.js +5 -22
- package/esm/LineChart/AnimatedLine.d.ts +1 -4
- package/esm/LineChart/AnimatedLine.js +9 -24
- package/esm/LineChart/AppearingMask.d.ts +5 -0
- package/esm/LineChart/AppearingMask.js +23 -18
- package/esm/LineChart/CircleMarkElement.js +19 -25
- package/esm/LineChart/LineChart.js +2 -0
- package/esm/LineChart/LineHighlightPlot.js +3 -4
- package/esm/LineChart/MarkElement.js +17 -28
- package/esm/LineChart/MarkPlot.js +0 -1
- package/esm/LineChart/markElementClasses.d.ts +3 -0
- package/esm/LineChart/markElementClasses.js +4 -3
- package/esm/LineChart/seriesConfig/index.js +2 -1
- package/esm/LineChart/seriesConfig/tooltip.d.ts +2 -1
- package/esm/LineChart/seriesConfig/tooltip.js +6 -0
- package/esm/LineChart/useLineChartProps.d.ts +2 -1
- package/esm/LineChart/useLineChartProps.js +6 -4
- package/esm/PieChart/PieArc.d.ts +19 -11
- package/esm/PieChart/PieArc.js +36 -23
- package/esm/PieChart/PieArcLabel.d.ts +22 -13
- package/esm/PieChart/PieArcLabel.js +51 -47
- package/esm/PieChart/PieArcLabelPlot.js +16 -34
- package/esm/PieChart/PieArcPlot.js +21 -34
- package/esm/PieChart/seriesConfig/tooltip.js +3 -0
- package/esm/RadarChart/RadarAxisHighlight/useRadarAxisHighlight.js +9 -5
- package/esm/RadarChart/RadarGrid/RadarGrid.d.ts +1 -1
- package/esm/RadarChart/RadarGrid/RadarGrid.js +5 -1
- package/esm/RadarChart/RadarGrid/useRadarGridData.d.ts +1 -1
- package/esm/RadarChart/RadarGrid/useRadarGridData.js +3 -0
- package/esm/RadarChart/RadarSeriesPlot/useRadarSeriesData.js +2 -2
- package/esm/ScatterChart/ScatterChart.js +2 -0
- package/esm/ScatterChart/useScatterChartProps.d.ts +2 -1
- package/esm/ScatterChart/useScatterChartProps.js +5 -3
- package/esm/SparkLineChart/SparkLineChart.js +2 -0
- package/esm/colorPalettes/colorPalettes.js +2 -2
- package/esm/constants/index.d.ts +1 -1
- package/esm/constants/index.js +1 -1
- package/esm/context/AnimationProvider/AnimationProvider.js +3 -6
- package/esm/hooks/animation/index.d.ts +6 -0
- package/esm/hooks/animation/index.js +6 -0
- package/esm/hooks/animation/useAnimateArea.d.ts +15 -0
- package/esm/hooks/animation/useAnimateArea.js +27 -0
- package/esm/hooks/animation/useAnimateBar.d.ts +17 -0
- package/esm/hooks/animation/useAnimateBar.js +56 -0
- package/esm/hooks/animation/useAnimateBarLabel.d.ts +19 -0
- package/esm/hooks/animation/useAnimateBarLabel.js +59 -0
- package/esm/hooks/animation/useAnimateLine.d.ts +14 -0
- package/esm/hooks/animation/useAnimateLine.js +26 -0
- package/esm/hooks/animation/useAnimatePieArc.d.ts +15 -0
- package/esm/hooks/animation/useAnimatePieArc.js +70 -0
- package/esm/hooks/animation/useAnimatePieArcLabel.d.ts +15 -0
- package/esm/hooks/animation/useAnimatePieArcLabel.js +72 -0
- package/esm/hooks/index.d.ts +2 -1
- package/esm/hooks/index.js +2 -1
- package/esm/hooks/useAxis.d.ts +5 -5
- package/esm/hooks/useInteractionItemProps.js +11 -0
- package/esm/hooks/useScale.d.ts +2 -2
- package/esm/hooks/useScale.js +2 -2
- package/esm/index.js +1 -1
- package/esm/internals/animation/Transition.d.ts +37 -0
- package/esm/internals/animation/Transition.js +83 -0
- package/esm/internals/animation/animation.d.ts +4 -0
- package/esm/internals/animation/animation.js +4 -0
- package/esm/internals/animation/useAnimate.d.ts +19 -0
- package/esm/internals/animation/useAnimate.js +74 -0
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/computeAxisValue.d.ts +1 -1
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/computeAxisValue.js +9 -3
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/getAxisTriggerTooltip.d.ts +5 -0
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/getAxisTriggerTooltip.js +21 -0
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/getAxisValue.d.ts +8 -6
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/getAxisValue.js +28 -22
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/index.d.ts +1 -0
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/index.js +1 -0
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxis.js +9 -42
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.d.ts +8 -32
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianInteraction.selectors.d.ts +9 -0
- package/esm/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianInteraction.selectors.js +75 -0
- package/esm/internals/plugins/featurePlugins/useChartInteraction/useChartInteraction.js +7 -20
- package/esm/internals/plugins/featurePlugins/useChartInteraction/useChartInteraction.selectors.d.ts +36 -242
- package/esm/internals/plugins/featurePlugins/useChartInteraction/useChartInteraction.selectors.js +4 -10
- package/esm/internals/plugins/featurePlugins/useChartInteraction/useChartInteraction.types.d.ts +9 -15
- package/esm/internals/plugins/featurePlugins/useChartPolarAxis/coordinateTransformation.d.ts +12 -0
- package/esm/internals/plugins/featurePlugins/useChartPolarAxis/coordinateTransformation.js +8 -0
- package/esm/internals/plugins/featurePlugins/useChartPolarAxis/getAxisValue.d.ts +6 -4
- package/esm/internals/plugins/featurePlugins/useChartPolarAxis/getAxisValue.js +18 -13
- package/esm/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.js +16 -32
- package/esm/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarInteraction.selectors.d.ts +3669 -0
- package/esm/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarInteraction.selectors.js +22 -0
- package/esm/internals/plugins/models/seriesConfig/seriesConfig.types.d.ts +3 -1
- package/esm/internals/plugins/models/seriesConfig/tooltipGetter.types.d.ts +10 -4
- package/esm/internals/shallowEqual.d.ts +8 -0
- package/esm/internals/shallowEqual.js +31 -0
- package/esm/models/axis.d.ts +8 -0
- package/esm/themeAugmentation/overrides.d.ts +1 -1
- package/hooks/animation/index.d.ts +6 -0
- package/hooks/animation/index.js +71 -0
- package/hooks/animation/useAnimateArea.d.ts +15 -0
- package/hooks/animation/useAnimateArea.js +34 -0
- package/hooks/animation/useAnimateBar.d.ts +17 -0
- package/hooks/animation/useAnimateBar.js +62 -0
- package/hooks/animation/useAnimateBarLabel.d.ts +19 -0
- package/hooks/animation/useAnimateBarLabel.js +65 -0
- package/hooks/animation/useAnimateLine.d.ts +14 -0
- package/hooks/animation/useAnimateLine.js +33 -0
- package/hooks/animation/useAnimatePieArc.d.ts +15 -0
- package/hooks/animation/useAnimatePieArc.js +77 -0
- package/hooks/animation/useAnimatePieArcLabel.d.ts +15 -0
- package/hooks/animation/useAnimatePieArcLabel.js +79 -0
- package/hooks/index.d.ts +2 -1
- package/hooks/index.js +13 -1
- package/hooks/useAxis.d.ts +5 -5
- package/hooks/useInteractionItemProps.js +11 -0
- package/hooks/useScale.d.ts +2 -2
- package/hooks/useScale.js +2 -2
- package/index.js +1 -1
- package/internals/animation/Transition.d.ts +37 -0
- package/internals/animation/Transition.js +89 -0
- package/internals/animation/animation.d.ts +4 -0
- package/internals/animation/animation.js +11 -0
- package/internals/animation/useAnimate.d.ts +19 -0
- package/internals/animation/useAnimate.js +80 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/computeAxisValue.d.ts +1 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/computeAxisValue.js +9 -3
- package/internals/plugins/featurePlugins/useChartCartesianAxis/getAxisTriggerTooltip.d.ts +5 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/getAxisTriggerTooltip.js +28 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/getAxisValue.d.ts +8 -6
- package/internals/plugins/featurePlugins/useChartCartesianAxis/getAxisValue.js +29 -22
- package/internals/plugins/featurePlugins/useChartCartesianAxis/index.d.ts +1 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/index.js +12 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxis.js +7 -40
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.d.ts +8 -32
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianInteraction.selectors.d.ts +9 -0
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianInteraction.selectors.js +81 -0
- package/internals/plugins/featurePlugins/useChartInteraction/useChartInteraction.js +7 -20
- package/internals/plugins/featurePlugins/useChartInteraction/useChartInteraction.selectors.d.ts +36 -242
- package/internals/plugins/featurePlugins/useChartInteraction/useChartInteraction.selectors.js +5 -11
- package/internals/plugins/featurePlugins/useChartInteraction/useChartInteraction.types.d.ts +9 -15
- package/internals/plugins/featurePlugins/useChartPolarAxis/coordinateTransformation.d.ts +12 -0
- package/internals/plugins/featurePlugins/useChartPolarAxis/coordinateTransformation.js +17 -0
- package/internals/plugins/featurePlugins/useChartPolarAxis/getAxisValue.d.ts +6 -4
- package/internals/plugins/featurePlugins/useChartPolarAxis/getAxisValue.js +19 -13
- package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.js +16 -32
- package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarInteraction.selectors.d.ts +3669 -0
- package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarInteraction.selectors.js +28 -0
- package/internals/plugins/models/seriesConfig/seriesConfig.types.d.ts +3 -1
- package/internals/plugins/models/seriesConfig/tooltipGetter.types.d.ts +10 -4
- package/internals/shallowEqual.d.ts +8 -0
- package/internals/shallowEqual.js +37 -0
- package/models/axis.d.ts +8 -0
- package/modern/BarChart/AnimatedBarElement.d.ts +38 -8
- package/modern/BarChart/AnimatedBarElement.js +5 -5
- package/modern/BarChart/BarChart.js +2 -0
- package/modern/BarChart/BarClipPath.d.ts +19 -1
- package/modern/BarChart/BarClipPath.js +84 -17
- package/modern/BarChart/BarElement.d.ts +9 -20
- package/modern/BarChart/BarElement.js +28 -23
- package/modern/BarChart/BarLabel/BarLabel.d.ts +27 -854
- package/modern/BarChart/BarLabel/BarLabel.js +32 -5
- package/modern/BarChart/BarLabel/BarLabel.types.d.ts +2 -0
- package/modern/BarChart/BarLabel/BarLabelItem.d.ts +24 -0
- package/modern/BarChart/BarLabel/BarLabelItem.js +18 -6
- package/modern/BarChart/BarLabel/BarLabelPlot.js +16 -46
- package/modern/BarChart/BarLabel/barLabelClasses.d.ts +3 -1
- package/modern/BarChart/BarLabel/barLabelClasses.js +4 -3
- package/modern/BarChart/BarPlot.js +37 -61
- package/modern/BarChart/barElementClasses.d.ts +21 -0
- package/modern/BarChart/barElementClasses.js +19 -0
- package/modern/BarChart/getRadius.d.ts +1 -1
- package/modern/BarChart/index.d.ts +2 -1
- package/modern/BarChart/index.js +2 -1
- package/modern/BarChart/seriesConfig/index.js +2 -1
- package/modern/BarChart/seriesConfig/tooltip.d.ts +2 -1
- package/modern/BarChart/seriesConfig/tooltip.js +12 -0
- package/modern/BarChart/types.d.ts +2 -2
- package/modern/BarChart/useBarChartProps.d.ts +2 -1
- package/modern/BarChart/useBarChartProps.js +19 -13
- package/modern/ChartContainer/ChartContainer.js +4 -0
- package/modern/ChartsAxisHighlight/ChartsXAxisHighlight.js +8 -8
- package/modern/ChartsAxisHighlight/ChartsYAxisHighlight.js +8 -8
- package/modern/ChartsLabel/ChartsLabelMark.js +0 -4
- package/modern/ChartsLabel/index.d.ts +1 -0
- package/modern/ChartsLabel/index.js +1 -0
- package/modern/ChartsLegend/continuousColorLegendClasses.d.ts +1 -1
- package/modern/ChartsOverlay/ChartsLoadingOverlay.js +1 -1
- package/modern/ChartsOverlay/ChartsNoDataOverlay.js +1 -1
- package/modern/ChartsTooltip/ChartsAxisTooltipContent.js +47 -55
- package/modern/ChartsTooltip/ChartsItemTooltipContent.js +11 -9
- package/modern/ChartsTooltip/ChartsTooltip.js +2 -2
- package/modern/ChartsTooltip/ChartsTooltipContainer.js +5 -9
- package/modern/ChartsTooltip/ChartsTooltipTable.d.ts +3 -1
- package/modern/ChartsTooltip/ChartsTooltipTable.js +23 -9
- package/modern/ChartsTooltip/chartsTooltipClasses.d.ts +4 -4
- package/modern/ChartsTooltip/chartsTooltipClasses.js +2 -2
- package/modern/ChartsTooltip/index.d.ts +1 -0
- package/modern/ChartsTooltip/index.js +1 -0
- package/modern/ChartsTooltip/useAxesTooltip.d.ts +7 -0
- package/modern/ChartsTooltip/useAxesTooltip.js +12 -0
- package/modern/ChartsTooltip/useAxisTooltip.d.ts +24 -3
- package/modern/ChartsTooltip/useAxisTooltip.js +72 -38
- package/modern/ChartsTooltip/useItemTooltip.js +4 -1
- package/modern/ChartsXAxis/ChartsXAxis.js +5 -2
- package/modern/ChartsYAxis/ChartsYAxis.js +69 -17
- package/modern/LineChart/AnimatedArea.js +5 -22
- package/modern/LineChart/AnimatedLine.d.ts +1 -4
- package/modern/LineChart/AnimatedLine.js +9 -24
- package/modern/LineChart/AppearingMask.d.ts +5 -0
- package/modern/LineChart/AppearingMask.js +23 -18
- package/modern/LineChart/CircleMarkElement.js +19 -25
- package/modern/LineChart/LineChart.js +2 -0
- package/modern/LineChart/LineHighlightPlot.js +3 -4
- package/modern/LineChart/MarkElement.js +17 -28
- package/modern/LineChart/MarkPlot.js +0 -1
- package/modern/LineChart/markElementClasses.d.ts +3 -0
- package/modern/LineChart/markElementClasses.js +4 -3
- package/modern/LineChart/seriesConfig/index.js +2 -1
- package/modern/LineChart/seriesConfig/tooltip.d.ts +2 -1
- package/modern/LineChart/seriesConfig/tooltip.js +6 -0
- package/modern/LineChart/useLineChartProps.d.ts +2 -1
- package/modern/LineChart/useLineChartProps.js +6 -4
- package/modern/PieChart/PieArc.d.ts +19 -11
- package/modern/PieChart/PieArc.js +36 -23
- package/modern/PieChart/PieArcLabel.d.ts +22 -13
- package/modern/PieChart/PieArcLabel.js +51 -47
- package/modern/PieChart/PieArcLabelPlot.js +16 -34
- package/modern/PieChart/PieArcPlot.js +21 -34
- package/modern/PieChart/seriesConfig/tooltip.js +3 -0
- package/modern/RadarChart/RadarAxisHighlight/useRadarAxisHighlight.js +9 -5
- package/modern/RadarChart/RadarGrid/RadarGrid.d.ts +1 -1
- package/modern/RadarChart/RadarGrid/RadarGrid.js +5 -1
- package/modern/RadarChart/RadarGrid/useRadarGridData.d.ts +1 -1
- package/modern/RadarChart/RadarGrid/useRadarGridData.js +3 -0
- package/modern/RadarChart/RadarSeriesPlot/useRadarSeriesData.js +2 -2
- package/modern/ScatterChart/ScatterChart.js +2 -0
- package/modern/ScatterChart/useScatterChartProps.d.ts +2 -1
- package/modern/ScatterChart/useScatterChartProps.js +5 -3
- package/modern/SparkLineChart/SparkLineChart.js +2 -0
- package/modern/colorPalettes/colorPalettes.js +2 -2
- package/modern/constants/index.d.ts +1 -1
- package/modern/constants/index.js +1 -1
- package/modern/context/AnimationProvider/AnimationProvider.js +3 -6
- package/modern/hooks/animation/index.d.ts +6 -0
- package/modern/hooks/animation/index.js +6 -0
- package/modern/hooks/animation/useAnimateArea.d.ts +15 -0
- package/modern/hooks/animation/useAnimateArea.js +27 -0
- package/modern/hooks/animation/useAnimateBar.d.ts +17 -0
- package/modern/hooks/animation/useAnimateBar.js +56 -0
- package/modern/hooks/animation/useAnimateBarLabel.d.ts +19 -0
- package/modern/hooks/animation/useAnimateBarLabel.js +59 -0
- package/modern/hooks/animation/useAnimateLine.d.ts +14 -0
- package/modern/hooks/animation/useAnimateLine.js +26 -0
- package/modern/hooks/animation/useAnimatePieArc.d.ts +15 -0
- package/modern/hooks/animation/useAnimatePieArc.js +70 -0
- package/modern/hooks/animation/useAnimatePieArcLabel.d.ts +15 -0
- package/modern/hooks/animation/useAnimatePieArcLabel.js +72 -0
- package/modern/hooks/index.d.ts +2 -1
- package/modern/hooks/index.js +2 -1
- package/modern/hooks/useAxis.d.ts +5 -5
- package/modern/hooks/useInteractionItemProps.js +11 -0
- package/modern/hooks/useScale.d.ts +2 -2
- package/modern/hooks/useScale.js +2 -2
- package/modern/index.js +1 -1
- package/modern/internals/animation/Transition.d.ts +37 -0
- package/modern/internals/animation/Transition.js +83 -0
- package/modern/internals/animation/animation.d.ts +4 -0
- package/modern/internals/animation/animation.js +4 -0
- package/modern/internals/animation/useAnimate.d.ts +19 -0
- package/modern/internals/animation/useAnimate.js +74 -0
- package/modern/internals/plugins/featurePlugins/useChartCartesianAxis/computeAxisValue.d.ts +1 -1
- package/modern/internals/plugins/featurePlugins/useChartCartesianAxis/computeAxisValue.js +9 -3
- package/modern/internals/plugins/featurePlugins/useChartCartesianAxis/getAxisTriggerTooltip.d.ts +5 -0
- package/modern/internals/plugins/featurePlugins/useChartCartesianAxis/getAxisTriggerTooltip.js +21 -0
- package/modern/internals/plugins/featurePlugins/useChartCartesianAxis/getAxisValue.d.ts +8 -6
- package/modern/internals/plugins/featurePlugins/useChartCartesianAxis/getAxisValue.js +28 -22
- package/modern/internals/plugins/featurePlugins/useChartCartesianAxis/index.d.ts +1 -0
- package/modern/internals/plugins/featurePlugins/useChartCartesianAxis/index.js +1 -0
- package/modern/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxis.js +9 -42
- package/modern/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.d.ts +8 -32
- package/modern/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianInteraction.selectors.d.ts +9 -0
- package/modern/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianInteraction.selectors.js +75 -0
- package/modern/internals/plugins/featurePlugins/useChartInteraction/useChartInteraction.js +7 -20
- package/modern/internals/plugins/featurePlugins/useChartInteraction/useChartInteraction.selectors.d.ts +36 -242
- package/modern/internals/plugins/featurePlugins/useChartInteraction/useChartInteraction.selectors.js +4 -10
- package/modern/internals/plugins/featurePlugins/useChartInteraction/useChartInteraction.types.d.ts +9 -15
- package/modern/internals/plugins/featurePlugins/useChartPolarAxis/coordinateTransformation.d.ts +12 -0
- package/modern/internals/plugins/featurePlugins/useChartPolarAxis/coordinateTransformation.js +8 -0
- package/modern/internals/plugins/featurePlugins/useChartPolarAxis/getAxisValue.d.ts +6 -4
- package/modern/internals/plugins/featurePlugins/useChartPolarAxis/getAxisValue.js +18 -13
- package/modern/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.js +16 -32
- package/modern/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarInteraction.selectors.d.ts +3669 -0
- package/modern/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarInteraction.selectors.js +22 -0
- package/modern/internals/plugins/models/seriesConfig/seriesConfig.types.d.ts +3 -1
- package/modern/internals/plugins/models/seriesConfig/tooltipGetter.types.d.ts +10 -4
- package/modern/internals/shallowEqual.d.ts +8 -0
- package/modern/internals/shallowEqual.js +31 -0
- package/modern/models/axis.d.ts +8 -0
- package/modern/themeAugmentation/overrides.d.ts +1 -1
- package/package.json +8 -9
- package/themeAugmentation/overrides.d.ts +1 -1
- package/tsconfig.build.tsbuildinfo +1 -1
- package/PieChart/dataTransform/transition.d.ts +0 -4
- package/PieChart/dataTransform/transition.js +0 -145
- package/esm/PieChart/dataTransform/transition.d.ts +0 -4
- package/esm/PieChart/dataTransform/transition.js +0 -137
- package/modern/PieChart/dataTransform/transition.d.ts +0 -4
- package/modern/PieChart/dataTransform/transition.js +0 -137
|
@@ -2,12 +2,14 @@
|
|
|
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;
|
|
5
6
|
Object.defineProperty(exports, "__esModule", {
|
|
6
7
|
value: true
|
|
7
8
|
});
|
|
8
9
|
exports.useBarChartProps = void 0;
|
|
9
10
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
11
|
var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
|
|
12
|
+
var React = _interopRequireWildcard(require("react"));
|
|
11
13
|
var _useId = _interopRequireDefault(require("@mui/utils/useId"));
|
|
12
14
|
var _constants = require("../constants");
|
|
13
15
|
var _BarChart = require("./BarChart.plugins");
|
|
@@ -49,29 +51,34 @@ const useBarChartProps = props => {
|
|
|
49
51
|
const id = (0, _useId.default)();
|
|
50
52
|
const clipPathId = `${id}-clip-path`;
|
|
51
53
|
const hasHorizontalSeries = layout === 'horizontal' || layout === undefined && series.some(item => item.layout === 'horizontal');
|
|
52
|
-
const
|
|
54
|
+
const defaultBandXAxis = React.useMemo(() => [{
|
|
55
|
+
id: _constants.DEFAULT_X_AXIS_KEY,
|
|
53
56
|
scaleType: 'band',
|
|
54
57
|
data: Array.from({
|
|
55
58
|
length: Math.max(...series.map(s => (s.data ?? dataset ?? []).length))
|
|
56
59
|
}, (_, index) => index)
|
|
57
|
-
};
|
|
60
|
+
}], [dataset, series]);
|
|
61
|
+
const defaultBandYAxis = React.useMemo(() => [{
|
|
62
|
+
id: _constants.DEFAULT_Y_AXIS_KEY,
|
|
63
|
+
scaleType: 'band',
|
|
64
|
+
data: Array.from({
|
|
65
|
+
length: Math.max(...series.map(s => (s.data ?? dataset ?? []).length))
|
|
66
|
+
}, (_, index) => index)
|
|
67
|
+
}], [dataset, series]);
|
|
68
|
+
const seriesWithDefault = React.useMemo(() => series.map(s => (0, _extends2.default)({
|
|
69
|
+
type: 'bar'
|
|
70
|
+
}, s, {
|
|
71
|
+
layout: hasHorizontalSeries ? 'horizontal' : 'vertical'
|
|
72
|
+
})), [hasHorizontalSeries, series]);
|
|
58
73
|
const chartContainerProps = (0, _extends2.default)({}, rest, {
|
|
59
|
-
series:
|
|
60
|
-
type: 'bar'
|
|
61
|
-
}, s, {
|
|
62
|
-
layout: hasHorizontalSeries ? 'horizontal' : 'vertical'
|
|
63
|
-
})),
|
|
74
|
+
series: seriesWithDefault,
|
|
64
75
|
width,
|
|
65
76
|
height,
|
|
66
77
|
margin,
|
|
67
78
|
colors,
|
|
68
79
|
dataset,
|
|
69
|
-
xAxis: xAxis ?? (hasHorizontalSeries ? undefined :
|
|
70
|
-
|
|
71
|
-
}, defaultAxisConfig)]),
|
|
72
|
-
yAxis: yAxis ?? (hasHorizontalSeries ? [(0, _extends2.default)({
|
|
73
|
-
id: _constants.DEFAULT_Y_AXIS_KEY
|
|
74
|
-
}, defaultAxisConfig)] : undefined),
|
|
80
|
+
xAxis: xAxis ?? (hasHorizontalSeries ? undefined : defaultBandXAxis),
|
|
81
|
+
yAxis: yAxis ?? (hasHorizontalSeries ? defaultBandYAxis : undefined),
|
|
75
82
|
highlightedItem,
|
|
76
83
|
onHighlightChange,
|
|
77
84
|
disableAxisListener: slotProps?.tooltip?.trigger !== 'axis' && axisHighlight?.x === 'none' && axisHighlight?.y === 'none',
|
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,241 @@
|
|
|
5
5
|
All notable changes to this project will be documented in this file.
|
|
6
6
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
7
7
|
|
|
8
|
+
## 8.0.0-beta.3
|
|
9
|
+
|
|
10
|
+
_Apr 3, 2025_
|
|
11
|
+
|
|
12
|
+
We'd like to offer a big thanks to the 12 contributors who made this release possible. Here are some highlights ✨:
|
|
13
|
+
|
|
14
|
+
- 🚫 Removed `react-spring` as a dependency of `@mui/x-charts`
|
|
15
|
+
- 📦 Data Grid list view feature is now stable
|
|
16
|
+
- 💫 Support title in Data Grid
|
|
17
|
+
- 📚 Documentation improvements
|
|
18
|
+
- 🐞 Bugfixes
|
|
19
|
+
|
|
20
|
+
Team members who have contributed to this release:
|
|
21
|
+
@bernardobelchior, @cherniavskii, @flaviendelangle, @JCQuintas, @KenanYusuf, @LukasTy, @MBilalShafi, @michelengelen, @oliviertassinari, @noraleonte, @romgrk, @alexfauquette.
|
|
22
|
+
|
|
23
|
+
<!--/ HIGHLIGHT_ABOVE_SEPARATOR /-->
|
|
24
|
+
|
|
25
|
+
### Data Grid
|
|
26
|
+
|
|
27
|
+
#### Breaking changes
|
|
28
|
+
|
|
29
|
+
- The list view feature and its related props are now stable.
|
|
30
|
+
|
|
31
|
+
The `unstable_listColumn` prop has been renamed to `listViewColumn`.
|
|
32
|
+
|
|
33
|
+
The `GridListColDef` type has been renamed to `GridListViewColDef`.
|
|
34
|
+
|
|
35
|
+
```diff
|
|
36
|
+
-const listViewColDef: GridListColDef = {
|
|
37
|
+
+const listViewColDef: GridListViewColDef = {
|
|
38
|
+
field: 'listColumn',
|
|
39
|
+
renderCell: ListViewCell,
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
<DataGridPro
|
|
43
|
+
- unstable_listView
|
|
44
|
+
- unstable_listColumn={listViewColDef}
|
|
45
|
+
+ listView
|
|
46
|
+
+ listViewColumn={listViewColDef}
|
|
47
|
+
/>
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
- The `useGridApiEventHandler()` hook has been renamed to `useGridEvent()`.
|
|
51
|
+
- The `useGridApiOptionHandler()` hook has been renamed to `useGridEventPriority()`.
|
|
52
|
+
|
|
53
|
+
#### `@mui/x-data-grid@8.0.0-beta.3`
|
|
54
|
+
|
|
55
|
+
- [DataGrid] Fix "is any of" autocomplete rendering (#17226) @KenanYusuf
|
|
56
|
+
- [DataGrid] Rename `useGridApiEventHandler()` to `useGridEvent()` (#17159) @romgrk
|
|
57
|
+
- [DataGrid] Support adding a label to the grid (#17147) @KenanYusuf
|
|
58
|
+
- [DataGrid] Refactor: remove material typings (#17119) @romgrk
|
|
59
|
+
|
|
60
|
+
#### `@mui/x-data-grid-pro@8.0.0-beta.3` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
61
|
+
|
|
62
|
+
Same changes as in `@mui/x-data-grid@8.0.0-beta.3`, plus:
|
|
63
|
+
|
|
64
|
+
- [DataGridPro] Make list view feature stable (#17217) @KenanYusuf
|
|
65
|
+
- [DataGridPro] Always refetch lazy-loading rows (#16827) @MBilalShafi
|
|
66
|
+
|
|
67
|
+
#### `@mui/x-data-grid-premium@8.0.0-beta.3` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
68
|
+
|
|
69
|
+
Same changes as in `@mui/x-data-grid-pro@8.0.0-beta.3`.
|
|
70
|
+
|
|
71
|
+
### Date and Time Pickers
|
|
72
|
+
|
|
73
|
+
#### `@mui/x-date-pickers@8.0.0-beta.3`
|
|
74
|
+
|
|
75
|
+
- [pickers] Add new `nextOrAccept` action bar action (#17037) @flaviendelangle
|
|
76
|
+
- [pickers] Improve the Multi Section Digital Clock scrollbar thickness (#16774) @oliviertassinari
|
|
77
|
+
- [TimePicker] Align the Digital Clock scrollbar thickness (#17203) @LukasTy
|
|
78
|
+
|
|
79
|
+
#### `@mui/x-date-pickers-pro@8.0.0-beta.3` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
80
|
+
|
|
81
|
+
Same changes as in `@mui/x-date-pickers@8.0.0-beta.3`.
|
|
82
|
+
|
|
83
|
+
### Charts
|
|
84
|
+
|
|
85
|
+
#### Breaking changes
|
|
86
|
+
|
|
87
|
+
- Removed `react-spring` as a dependency of `@mui/x-charts`.
|
|
88
|
+
A consequence of this change is that the props of some slots have been changed because the `SpringValue` wrapper has been removed. The affected slots and props are:
|
|
89
|
+
|
|
90
|
+
- the type of the `x`, `y`, `width` and `height` props of the `bar` slot are now `number`;
|
|
91
|
+
- the type of `startAngle`, `endAngle`, `innerRadius`, `outerRadius`, `arcLabelRadius`, `cornerRadius` and `paddingAngle` props of `pieArc` and `pieArcLabel` slot are now `number`.
|
|
92
|
+
|
|
93
|
+
Additionally, the `pieArc` slot now receives a `skipAnimation` prop to configure whether animations should be enabled or disabled.
|
|
94
|
+
|
|
95
|
+
- Tick labels in the y-axis of cartesian charts will now have an ellipsis applied to prevent overflow.
|
|
96
|
+
If your tick labels are being clipped sooner than you would like, you can increase the y-axis size by increasing its width property.
|
|
97
|
+
|
|
98
|
+
- The tooltip DOM structure is modified to improve accessibility. If you relied on it to apply some style or run tests, you might be impacted by this modification.
|
|
99
|
+
- The axis tooltip displays a table per axis with the axis value in a caption.
|
|
100
|
+
- Cells containing the series label and the color mark got merged in a th cell.
|
|
101
|
+
|
|
102
|
+
#### `@mui/x-charts@8.0.0-beta.3`
|
|
103
|
+
|
|
104
|
+
- [charts] Adjust color palettes (#17209) @noraleonte
|
|
105
|
+
- [charts] Allow multiple axes in the tooltip (#17058) @alexfauquette
|
|
106
|
+
- [charts] Improve custom legend docs (#17231) @JCQuintas
|
|
107
|
+
- [charts] Fix crash when item shown in tooltip is unmounted (#17169) @bernardobelchior
|
|
108
|
+
- [charts] Migrate some animations from `react-spring` (#16961) @bernardobelchior
|
|
109
|
+
- [charts] Remove `react-spring` (#17123) @bernardobelchior
|
|
110
|
+
- [charts] Fix y-axis tick label overflow (#16846) @bernardobelchior
|
|
111
|
+
|
|
112
|
+
#### `@mui/x-charts-pro@8.0.0-beta.3` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
113
|
+
|
|
114
|
+
Same changes as in `@mui/x-charts@8.0.0-beta.3`.
|
|
115
|
+
|
|
116
|
+
### Tree View
|
|
117
|
+
|
|
118
|
+
#### `@mui/x-tree-view@8.0.0-beta.3`
|
|
119
|
+
|
|
120
|
+
Internal changes.
|
|
121
|
+
|
|
122
|
+
#### `@mui/x-tree-view-pro@8.0.0-beta.3` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
123
|
+
|
|
124
|
+
Same changes as in `@mui/x-tree-view@8.0.0-beta.3`.
|
|
125
|
+
|
|
126
|
+
### `@mui/x-codemod@8.0.0-beta.3`
|
|
127
|
+
|
|
128
|
+
- [codemod] Add `listView` prop rename codemod (#17220) @MBilalShafi
|
|
129
|
+
|
|
130
|
+
### Docs
|
|
131
|
+
|
|
132
|
+
- [docs] Add "Usage with Material UI v5/v6" guide (#17164) @cherniavskii
|
|
133
|
+
- [docs] Fix 301 link @oliviertassinari
|
|
134
|
+
- [docs] Fix redirection getting-started (#17200) @oliviertassinari
|
|
135
|
+
- [docs] Sync Stack Overflow docs with reality (#17198) @oliviertassinari
|
|
136
|
+
- [docs] Update Localization Provider JSDoc link (#17207) @LukasTy
|
|
137
|
+
|
|
138
|
+
### Core
|
|
139
|
+
|
|
140
|
+
- [core] Cleanup `@mui` dependency versions (#17160) @LukasTy
|
|
141
|
+
- [core] Sync scorecards.yml across codebase @oliviertassinari
|
|
142
|
+
- [core] Revert upgrade to React 19.1 (#17206) @bernardobelchior
|
|
143
|
+
- [code-infra] Fix `test:unit` warning (#17224) @JCQuintas
|
|
144
|
+
- [code-infra] Fix pickers failing test after clock=fake removal (#17202) @JCQuintas
|
|
145
|
+
- [code-infra] Remove clock=fake from `describeValidation` (#17150) @JCQuintas
|
|
146
|
+
- [code-infra] Remove clock=fake from `describeValue` (#17199) @JCQuintas
|
|
147
|
+
- [infra] Add write permission for actions in issue status label handler (#17161) @michelengelen
|
|
148
|
+
|
|
149
|
+
## 8.0.0-beta.2
|
|
150
|
+
|
|
151
|
+
_Mar 27, 2025_
|
|
152
|
+
|
|
153
|
+
We'd like to offer a big thanks to the 12 contributors who made this release possible. Here are some highlights ✨:
|
|
154
|
+
|
|
155
|
+
- 🔍 Update the Data Grid quick filter to be collapsed when not in use
|
|
156
|
+
- 🐞 Bugfixes
|
|
157
|
+
|
|
158
|
+
Special thanks go out to the community members for their valuable contributions:
|
|
159
|
+
@lhilgert9.
|
|
160
|
+
Following are all team members who have contributed to this release:
|
|
161
|
+
@alexfauquette, @arminmeh, @flaviendelangle, @hasdfa, @JCQuintas, @KenanYusuf, @LukasTy, @MBilalShafi, @michelengelen, @mnajdova, @romgrk.
|
|
162
|
+
|
|
163
|
+
<!--/ HIGHLIGHT_ABOVE_SEPARATOR /-->
|
|
164
|
+
|
|
165
|
+
### Data Grid
|
|
166
|
+
|
|
167
|
+
#### `@mui/x-data-grid@8.0.0-beta.2`
|
|
168
|
+
|
|
169
|
+
- [DataGrid] Fix error caused by trying to render rows that are not in the state anymore (#17057) @arminmeh
|
|
170
|
+
- [DataGrid] Refactor: remove more material (#16922) @romgrk
|
|
171
|
+
- [DataGrid] Update Quick Filter component to be expandable (#16862) @KenanYusuf
|
|
172
|
+
- [DataGrid] Fix crash when used with `@mui/styled-engine-sc` (#17154) @KenanYusuf
|
|
173
|
+
|
|
174
|
+
#### `@mui/x-data-grid-pro@8.0.0-beta.2` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
175
|
+
|
|
176
|
+
Same changes as in `@mui/x-data-grid@8.0.0-beta.2`, plus:
|
|
177
|
+
|
|
178
|
+
- [DataGridPro] Data source: Allow expanding groups with unknown children (#17144) @MBilalShafi
|
|
179
|
+
|
|
180
|
+
#### `@mui/x-data-grid-premium@8.0.0-beta.2` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
181
|
+
|
|
182
|
+
Same changes as in `@mui/x-data-grid-pro@8.0.0-beta.2`.
|
|
183
|
+
|
|
184
|
+
### Date and Time Pickers
|
|
185
|
+
|
|
186
|
+
#### `@mui/x-date-pickers@8.0.0-beta.2`
|
|
187
|
+
|
|
188
|
+
- [fields] Extract the props of each field slot into a standalone hook for easier re-use (#17114) @flaviendelangle
|
|
189
|
+
- [pickers] Fix visual regression in Date Range Calendar's day (#17148) @flaviendelangle
|
|
190
|
+
- [pickers] Remove all code duplication to apply default values to validation props (#17038) @flaviendelangle
|
|
191
|
+
|
|
192
|
+
#### `@mui/x-date-pickers-pro@8.0.0-beta.2` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
193
|
+
|
|
194
|
+
Same changes as in `@mui/x-date-pickers@8.0.0-beta.2`.
|
|
195
|
+
|
|
196
|
+
### Charts
|
|
197
|
+
|
|
198
|
+
#### `@mui/x-charts@8.0.0-beta.2`
|
|
199
|
+
|
|
200
|
+
- [charts] Memoize axes and series with default (#17156) @alexfauquette
|
|
201
|
+
- [charts] Add pie benchmark (#17115) @JCQuintas
|
|
202
|
+
- [charts] Fix CSS vars support for dark theme (#17106) @alexfauquette
|
|
203
|
+
- [charts] Fix radar hover (#17134) @alexfauquette
|
|
204
|
+
- [charts] Move axis interaction to selectors (#17039) @alexfauquette
|
|
205
|
+
- [charts] Fix Pie benchmark (#17125) @JCQuintas
|
|
206
|
+
|
|
207
|
+
#### `@mui/x-charts-pro@8.0.0-beta.2` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
208
|
+
|
|
209
|
+
Same changes as in `@mui/x-charts@8.0.0-beta.2`.
|
|
210
|
+
|
|
211
|
+
### Tree View
|
|
212
|
+
|
|
213
|
+
#### `@mui/x-tree-view@8.0.0-beta.2`
|
|
214
|
+
|
|
215
|
+
Internal changes.
|
|
216
|
+
|
|
217
|
+
#### `@mui/x-tree-view-pro@8.0.0-beta.2` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
218
|
+
|
|
219
|
+
Same changes as in `@mui/x-tree-view@8.0.0-beta.2`.
|
|
220
|
+
|
|
221
|
+
### `@mui/x-codemod@8.0.0-beta.1`
|
|
222
|
+
|
|
223
|
+
- [codemod] Add Data Grid codemods (#17121, #17124) @MBilalShafi
|
|
224
|
+
|
|
225
|
+
### Docs
|
|
226
|
+
|
|
227
|
+
- [docs] Fix example import for `ExportExcel` component (#17110) @KenanYusuf
|
|
228
|
+
|
|
229
|
+
### Core
|
|
230
|
+
|
|
231
|
+
- [code-infra] Remove `@mui/styles` dependency & patches (#17071) @mnajdova
|
|
232
|
+
- [code-infra] Add more tests to slow screenshot tests (#17075) @JCQuintas
|
|
233
|
+
- [code-infra] Fix pickers codecov (#17120) @JCQuintas
|
|
234
|
+
- [code-infra] Move `isDeepEqual` to @mui/x-internals (#17129) @JCQuintas
|
|
235
|
+
- [code-infra] Remove `test_regressions` step from React 18 pipeline (#17108) @LukasTy
|
|
236
|
+
- [code-infra] Update some data-grid tests for vitest (#17078, #17104, #17146) @JCQuintas
|
|
237
|
+
- [code-infra] Update some date-pickers tests for vitest (#17083) @JCQuintas
|
|
238
|
+
- [infra] Update `issue-status-label-handler.yml` @michelengelen
|
|
239
|
+
- [infra] Added reusable issue status label handler workflow (#17145) @michelengelen
|
|
240
|
+
- [infra] Switch to reusable 'stale issues/PRs' workflow (#17107) @michelengelen
|
|
241
|
+
- [telemetry] Improve request body size, update dependencies, and optimize SSR handling (#17008) @hasdfa
|
|
242
|
+
|
|
8
243
|
## 8.0.0-beta.1
|
|
9
244
|
|
|
10
245
|
_Mar 21, 2025_
|
|
@@ -158,6 +158,7 @@ process.env.NODE_ENV !== "production" ? ChartContainer.propTypes = {
|
|
|
158
158
|
height: _propTypes.default.number,
|
|
159
159
|
hideTooltip: _propTypes.default.bool,
|
|
160
160
|
id: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string]).isRequired,
|
|
161
|
+
ignoreTooltip: _propTypes.default.bool,
|
|
161
162
|
label: _propTypes.default.string,
|
|
162
163
|
labelStyle: _propTypes.default.object,
|
|
163
164
|
max: _propTypes.default.oneOfType([_propTypes.default.instanceOf(Date), _propTypes.default.number]),
|
|
@@ -215,6 +216,7 @@ process.env.NODE_ENV !== "production" ? ChartContainer.propTypes = {
|
|
|
215
216
|
height: _propTypes.default.number,
|
|
216
217
|
hideTooltip: _propTypes.default.bool,
|
|
217
218
|
id: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string]).isRequired,
|
|
219
|
+
ignoreTooltip: _propTypes.default.bool,
|
|
218
220
|
label: _propTypes.default.string,
|
|
219
221
|
labelGap: _propTypes.default.number,
|
|
220
222
|
labelStyle: _propTypes.default.object,
|
|
@@ -295,6 +297,7 @@ process.env.NODE_ENV !== "production" ? ChartContainer.propTypes = {
|
|
|
295
297
|
height: _propTypes.default.number,
|
|
296
298
|
hideTooltip: _propTypes.default.bool,
|
|
297
299
|
id: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string]),
|
|
300
|
+
ignoreTooltip: _propTypes.default.bool,
|
|
298
301
|
label: _propTypes.default.string,
|
|
299
302
|
labelStyle: _propTypes.default.object,
|
|
300
303
|
max: _propTypes.default.oneOfType([_propTypes.default.instanceOf(Date), _propTypes.default.number]),
|
|
@@ -350,6 +353,7 @@ process.env.NODE_ENV !== "production" ? ChartContainer.propTypes = {
|
|
|
350
353
|
fill: _propTypes.default.string,
|
|
351
354
|
hideTooltip: _propTypes.default.bool,
|
|
352
355
|
id: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string]),
|
|
356
|
+
ignoreTooltip: _propTypes.default.bool,
|
|
353
357
|
label: _propTypes.default.string,
|
|
354
358
|
labelStyle: _propTypes.default.object,
|
|
355
359
|
max: _propTypes.default.oneOfType([_propTypes.default.instanceOf(Date), _propTypes.default.number]),
|
|
@@ -11,7 +11,7 @@ var _useScale = require("../hooks/useScale");
|
|
|
11
11
|
var _isBandScale = require("../internals/isBandScale");
|
|
12
12
|
var _useSelector = require("../internals/store/useSelector");
|
|
13
13
|
var _useStore = require("../internals/store/useStore");
|
|
14
|
-
var
|
|
14
|
+
var _useChartCartesianAxis = require("../internals/plugins/featurePlugins/useChartCartesianAxis");
|
|
15
15
|
var _hooks = require("../hooks");
|
|
16
16
|
var _ChartsAxisHighlightPath = require("./ChartsAxisHighlightPath");
|
|
17
17
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
@@ -28,26 +28,26 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
28
28
|
} = (0, _hooks.useDrawingArea)();
|
|
29
29
|
const xScale = (0, _useScale.useXScale)();
|
|
30
30
|
const store = (0, _useStore.useStore)();
|
|
31
|
-
const
|
|
31
|
+
const axisXValue = (0, _useSelector.useSelector)(store, _useChartCartesianAxis.selectorChartsInteractionXAxisValue);
|
|
32
32
|
const getXPosition = (0, _useScale.getValueToPositionMapper)(xScale);
|
|
33
|
-
const isBandScaleX = type === 'band' &&
|
|
33
|
+
const isBandScaleX = type === 'band' && axisXValue !== null && (0, _isBandScale.isBandScale)(xScale);
|
|
34
34
|
if (process.env.NODE_ENV !== 'production') {
|
|
35
|
-
const isError = isBandScaleX && xScale(
|
|
35
|
+
const isError = isBandScaleX && xScale(axisXValue) === undefined;
|
|
36
36
|
if (isError) {
|
|
37
37
|
console.error([`MUI X: The position value provided for the axis is not valid for the current scale.`, `This probably means something is wrong with the data passed to the chart.`, `The ChartsAxisHighlight component will not be displayed.`].join('\n'));
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
40
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(React.Fragment, {
|
|
41
|
-
children: [isBandScaleX && xScale(
|
|
41
|
+
children: [isBandScaleX && xScale(axisXValue) !== undefined && /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsAxisHighlightPath.ChartsAxisHighlightPath
|
|
42
42
|
// @ts-expect-error, xScale value is checked in the statement above
|
|
43
43
|
, {
|
|
44
|
-
d: `M ${xScale(
|
|
44
|
+
d: `M ${xScale(axisXValue) - (xScale.step() - xScale.bandwidth()) / 2} ${top} l ${xScale.step()} 0 l 0 ${height} l ${-xScale.step()} 0 Z`,
|
|
45
45
|
className: classes.root,
|
|
46
46
|
ownerState: {
|
|
47
47
|
axisHighlight: 'band'
|
|
48
48
|
}
|
|
49
|
-
}), type === 'line' &&
|
|
50
|
-
d: `M ${getXPosition(
|
|
49
|
+
}), type === 'line' && axisXValue !== null && /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsAxisHighlightPath.ChartsAxisHighlightPath, {
|
|
50
|
+
d: `M ${getXPosition(axisXValue)} ${top} L ${getXPosition(axisXValue)} ${top + height}`,
|
|
51
51
|
className: classes.root,
|
|
52
52
|
ownerState: {
|
|
53
53
|
axisHighlight: 'line'
|
|
@@ -11,7 +11,7 @@ var _useScale = require("../hooks/useScale");
|
|
|
11
11
|
var _isBandScale = require("../internals/isBandScale");
|
|
12
12
|
var _useSelector = require("../internals/store/useSelector");
|
|
13
13
|
var _useStore = require("../internals/store/useStore");
|
|
14
|
-
var
|
|
14
|
+
var _useChartCartesianAxis = require("../internals/plugins/featurePlugins/useChartCartesianAxis");
|
|
15
15
|
var _hooks = require("../hooks");
|
|
16
16
|
var _ChartsAxisHighlightPath = require("./ChartsAxisHighlightPath");
|
|
17
17
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
@@ -28,26 +28,26 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
28
28
|
} = (0, _hooks.useDrawingArea)();
|
|
29
29
|
const yScale = (0, _useScale.useYScale)();
|
|
30
30
|
const store = (0, _useStore.useStore)();
|
|
31
|
-
const
|
|
31
|
+
const axisYValue = (0, _useSelector.useSelector)(store, _useChartCartesianAxis.selectorChartsInteractionYAxisValue);
|
|
32
32
|
const getYPosition = (0, _useScale.getValueToPositionMapper)(yScale);
|
|
33
|
-
const isBandScaleY = type === 'band' &&
|
|
33
|
+
const isBandScaleY = type === 'band' && axisYValue !== null && (0, _isBandScale.isBandScale)(yScale);
|
|
34
34
|
if (process.env.NODE_ENV !== 'production') {
|
|
35
|
-
const isError = isBandScaleY && yScale(
|
|
35
|
+
const isError = isBandScaleY && yScale(axisYValue) === undefined;
|
|
36
36
|
if (isError) {
|
|
37
37
|
console.error([`MUI X: The position value provided for the axis is not valid for the current scale.`, `This probably means something is wrong with the data passed to the chart.`, `The ChartsAxisHighlight component will not be displayed.`].join('\n'));
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
40
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(React.Fragment, {
|
|
41
|
-
children: [isBandScaleY && yScale(
|
|
41
|
+
children: [isBandScaleY && yScale(axisYValue) !== undefined && /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsAxisHighlightPath.ChartsAxisHighlightPath, {
|
|
42
42
|
d: `M ${left} ${
|
|
43
43
|
// @ts-expect-error, yScale value is checked in the statement above
|
|
44
|
-
yScale(
|
|
44
|
+
yScale(axisYValue) - (yScale.step() - yScale.bandwidth()) / 2} l 0 ${yScale.step()} l ${width} 0 l 0 ${-yScale.step()} Z`,
|
|
45
45
|
className: classes.root,
|
|
46
46
|
ownerState: {
|
|
47
47
|
axisHighlight: 'band'
|
|
48
48
|
}
|
|
49
|
-
}), type === 'line' &&
|
|
50
|
-
d: `M ${left} ${getYPosition(
|
|
49
|
+
}), type === 'line' && axisYValue !== null && /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsAxisHighlightPath.ChartsAxisHighlightPath, {
|
|
50
|
+
d: `M ${left} ${getYPosition(axisYValue)} L ${left + width} ${getYPosition(axisYValue)}`,
|
|
51
51
|
className: classes.root,
|
|
52
52
|
ownerState: {
|
|
53
53
|
axisHighlight: 'line'
|
|
@@ -24,15 +24,11 @@ const Root = (0, _styles.styled)('div', {
|
|
|
24
24
|
})(() => {
|
|
25
25
|
return {
|
|
26
26
|
display: 'flex',
|
|
27
|
-
alignItems: 'center',
|
|
28
|
-
justifyContent: 'center',
|
|
29
|
-
flexShrink: 0,
|
|
30
27
|
width: 14,
|
|
31
28
|
height: 14,
|
|
32
29
|
[`&.${_labelMarkClasses.labelMarkClasses.line}`]: {
|
|
33
30
|
width: 16,
|
|
34
31
|
height: 'unset',
|
|
35
|
-
display: 'flex',
|
|
36
32
|
alignItems: 'center',
|
|
37
33
|
[`.${_labelMarkClasses.labelMarkClasses.mask}`]: {
|
|
38
34
|
height: 4,
|
package/ChartsLabel/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export type { ChartsLabelMarkProps, ChartsLabelCustomMarkProps } from './ChartsLabelMark';
|
|
2
|
+
export { ChartsLabelMark } from "./ChartsLabelMark.js";
|
|
2
3
|
export { labelClasses } from "./labelClasses.js";
|
|
3
4
|
export type { ChartsLabelClasses } from './labelClasses';
|
|
4
5
|
export { labelMarkClasses } from "./labelMarkClasses.js";
|
package/ChartsLabel/index.js
CHANGED
|
@@ -3,6 +3,12 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
+
Object.defineProperty(exports, "ChartsLabelMark", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _ChartsLabelMark.ChartsLabelMark;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
6
12
|
Object.defineProperty(exports, "labelClasses", {
|
|
7
13
|
enumerable: true,
|
|
8
14
|
get: function () {
|
|
@@ -21,6 +27,7 @@ Object.defineProperty(exports, "labelMarkClasses", {
|
|
|
21
27
|
return _labelMarkClasses.labelMarkClasses;
|
|
22
28
|
}
|
|
23
29
|
});
|
|
30
|
+
var _ChartsLabelMark = require("./ChartsLabelMark");
|
|
24
31
|
var _labelClasses = require("./labelClasses");
|
|
25
32
|
var _labelMarkClasses = require("./labelMarkClasses");
|
|
26
33
|
var _labelGradientClasses = require("./labelGradientClasses");
|
|
@@ -22,5 +22,5 @@ export interface ContinuousColorLegendClasses {
|
|
|
22
22
|
/** Styles applied to the series label. */
|
|
23
23
|
label: string;
|
|
24
24
|
}
|
|
25
|
-
export declare const useUtilityClasses: (props: ContinuousColorLegendProps & ChartsLegendSlotExtension) => Record<"root" | "label" | "mark" | "
|
|
25
|
+
export declare const useUtilityClasses: (props: ContinuousColorLegendProps & ChartsLegendSlotExtension) => Record<"root" | "label" | "mark" | "gradient" | "minLabel" | "maxLabel", string>;
|
|
26
26
|
export declare const continuousColorLegendClasses: ContinuousColorLegendClasses;
|
|
@@ -18,7 +18,7 @@ const StyledText = (0, _styles.styled)('text')(({
|
|
|
18
18
|
theme
|
|
19
19
|
}) => (0, _extends2.default)({}, theme.typography.body2, {
|
|
20
20
|
stroke: 'none',
|
|
21
|
-
fill: theme.palette.text.primary,
|
|
21
|
+
fill: (theme.vars || theme).palette.text.primary,
|
|
22
22
|
shapeRendering: 'crispEdges',
|
|
23
23
|
textAnchor: 'middle',
|
|
24
24
|
dominantBaseline: 'middle'
|
|
@@ -18,7 +18,7 @@ const StyledText = (0, _styles.styled)('text')(({
|
|
|
18
18
|
theme
|
|
19
19
|
}) => (0, _extends2.default)({}, theme.typography.body2, {
|
|
20
20
|
stroke: 'none',
|
|
21
|
-
fill: theme.palette.text.primary,
|
|
21
|
+
fill: (theme.vars || theme).palette.text.primary,
|
|
22
22
|
shapeRendering: 'crispEdges',
|
|
23
23
|
textAnchor: 'middle',
|
|
24
24
|
dominantBaseline: 'middle'
|
|
@@ -13,7 +13,7 @@ var _Typography = _interopRequireDefault(require("@mui/material/Typography"));
|
|
|
13
13
|
var _clsx = _interopRequireDefault(require("clsx"));
|
|
14
14
|
var _chartsTooltipClasses = require("./chartsTooltipClasses");
|
|
15
15
|
var _ChartsTooltipTable = require("./ChartsTooltipTable");
|
|
16
|
-
var
|
|
16
|
+
var _useAxesTooltip = require("./useAxesTooltip");
|
|
17
17
|
var _hooks = require("../hooks");
|
|
18
18
|
var _ChartsLabelMark = require("../ChartsLabel/ChartsLabelMark");
|
|
19
19
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
@@ -22,70 +22,62 @@ function ChartsAxisTooltipContent(props) {
|
|
|
22
22
|
classes: propClasses,
|
|
23
23
|
sx
|
|
24
24
|
} = props;
|
|
25
|
-
const tooltipData = (0,
|
|
25
|
+
const tooltipData = (0, _useAxesTooltip.useAxesTooltip)();
|
|
26
26
|
const xAxis = (0, _hooks.useXAxis)();
|
|
27
27
|
const yAxis = (0, _hooks.useYAxis)();
|
|
28
28
|
const classes = (0, _chartsTooltipClasses.useUtilityClasses)(propClasses);
|
|
29
29
|
if (tooltipData === null) {
|
|
30
30
|
return null;
|
|
31
31
|
}
|
|
32
|
-
const {
|
|
33
|
-
axisDirection,
|
|
34
|
-
axisValue,
|
|
35
|
-
axisFormattedValue,
|
|
36
|
-
seriesItems
|
|
37
|
-
} = tooltipData;
|
|
38
|
-
const axis = axisDirection === 'x' ? xAxis : yAxis;
|
|
39
32
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsTooltipTable.ChartsTooltipPaper, {
|
|
40
33
|
sx: sx,
|
|
41
34
|
className: classes.paper,
|
|
42
|
-
children:
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
})
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Typography.default, {
|
|
35
|
+
children: tooltipData.map(({
|
|
36
|
+
axisId,
|
|
37
|
+
axisDirection,
|
|
38
|
+
axisValue,
|
|
39
|
+
axisFormattedValue,
|
|
40
|
+
seriesItems
|
|
41
|
+
}) => {
|
|
42
|
+
const axis = axisDirection === 'x' ? xAxis : yAxis;
|
|
43
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_ChartsTooltipTable.ChartsTooltipTable, {
|
|
44
|
+
className: classes.table,
|
|
45
|
+
children: [axisValue != null && !axis.hideTooltip && /*#__PURE__*/(0, _jsxRuntime.jsx)(_Typography.default, {
|
|
46
|
+
component: "caption",
|
|
47
|
+
children: axisFormattedValue
|
|
48
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("tbody", {
|
|
49
|
+
children: seriesItems.map(({
|
|
50
|
+
seriesId,
|
|
51
|
+
color,
|
|
52
|
+
formattedValue,
|
|
53
|
+
formattedLabel,
|
|
54
|
+
markType
|
|
55
|
+
}) => {
|
|
56
|
+
if (formattedValue == null) {
|
|
57
|
+
return null;
|
|
58
|
+
}
|
|
59
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_ChartsTooltipTable.ChartsTooltipRow, {
|
|
60
|
+
className: classes.row,
|
|
61
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_ChartsTooltipTable.ChartsTooltipCell, {
|
|
62
|
+
className: (0, _clsx.default)(classes.labelCell, classes.cell),
|
|
63
|
+
component: "th",
|
|
64
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
65
|
+
className: classes.markContainer,
|
|
66
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsLabelMark.ChartsLabelMark, {
|
|
67
|
+
type: markType,
|
|
68
|
+
color: color,
|
|
69
|
+
className: classes.mark
|
|
70
|
+
})
|
|
71
|
+
}), formattedLabel || null]
|
|
72
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsTooltipTable.ChartsTooltipCell, {
|
|
73
|
+
className: (0, _clsx.default)(classes.valueCell, classes.cell),
|
|
74
|
+
component: "td",
|
|
83
75
|
children: formattedValue
|
|
84
|
-
})
|
|
85
|
-
})
|
|
86
|
-
}
|
|
87
|
-
})
|
|
88
|
-
})
|
|
76
|
+
})]
|
|
77
|
+
}, seriesId);
|
|
78
|
+
})
|
|
79
|
+
})]
|
|
80
|
+
}, axisId);
|
|
89
81
|
})
|
|
90
82
|
});
|
|
91
83
|
}
|
|
@@ -39,18 +39,20 @@ function ChartsItemTooltipContent(props) {
|
|
|
39
39
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("tbody", {
|
|
40
40
|
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_ChartsTooltipTable.ChartsTooltipRow, {
|
|
41
41
|
className: classes.row,
|
|
42
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.
|
|
43
|
-
className: (0, _clsx.default)(classes.markCell, classes.cell),
|
|
44
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsLabelMark.ChartsLabelMark, {
|
|
45
|
-
type: markType,
|
|
46
|
-
color: color,
|
|
47
|
-
className: classes.mark
|
|
48
|
-
})
|
|
49
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsTooltipTable.ChartsTooltipCell, {
|
|
42
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_ChartsTooltipTable.ChartsTooltipCell, {
|
|
50
43
|
className: (0, _clsx.default)(classes.labelCell, classes.cell),
|
|
51
|
-
|
|
44
|
+
component: "th",
|
|
45
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
46
|
+
className: classes.markContainer,
|
|
47
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsLabelMark.ChartsLabelMark, {
|
|
48
|
+
type: markType,
|
|
49
|
+
color: color,
|
|
50
|
+
className: classes.mark
|
|
51
|
+
})
|
|
52
|
+
}), label]
|
|
52
53
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsTooltipTable.ChartsTooltipCell, {
|
|
53
54
|
className: (0, _clsx.default)(classes.valueCell, classes.cell),
|
|
55
|
+
component: "td",
|
|
54
56
|
children: formattedValue
|
|
55
57
|
})]
|
|
56
58
|
})
|