@mui/x-charts 7.23.1 → 7.23.6
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/BarChart.d.ts +1 -1
- package/BarChart/BarChart.js +1 -1
- package/BarChart/BarElement.d.ts +1 -479
- package/BarChart/BarLabel/BarLabel.d.ts +1 -479
- package/CHANGELOG.md +271 -0
- package/ChartContainer/useChartContainerProps.d.ts +16 -16
- package/ChartContainer/useDefaultizeAxis.d.ts +8 -8
- package/ChartsGrid/ChartsHorizontalGrid.js +2 -2
- package/ChartsGrid/ChartsVerticalGrid.js +2 -2
- package/ChartsVoronoiHandler/ChartsVoronoiHandler.js +2 -2
- package/LineChart/AnimatedArea.d.ts +1 -479
- package/LineChart/AnimatedArea.js +4 -1
- package/LineChart/AnimatedLine.d.ts +1 -479
- package/LineChart/AnimatedLine.js +4 -1
- package/LineChart/AppearingMask.js +1 -0
- package/LineChart/CircleMarkElement.js +1 -0
- package/LineChart/LineChart.d.ts +1 -1
- package/LineChart/LineChart.js +1 -1
- package/LineChart/MarkElement.js +3 -1
- package/PieChart/PieArc.js +3 -1
- package/PieChart/PieArcLabel.js +13 -9
- package/PieChart/PieChart.d.ts +1 -1
- package/PieChart/PieChart.js +1 -1
- package/README.md +1 -1
- package/ResponsiveChartContainer/useChartContainerDimensions.d.ts +1 -1
- package/ResponsiveChartContainer/useResponsiveChartContainerProps.d.ts +1 -1
- package/ScatterChart/ScatterChart.d.ts +1 -1
- package/ScatterChart/ScatterChart.js +1 -1
- package/ScatterChart/extremums.js +1 -3
- package/ScatterChart/formatter.js +2 -2
- package/SparkLineChart/SparkLineChart.js +1 -4
- package/context/CartesianProvider/defaultizeAxis.d.ts +8 -8
- package/context/DrawingProvider.d.ts +2 -2
- package/context/PluginProvider/mergePlugins.d.ts +8 -8
- package/hooks/useSvgRef.d.ts +1 -1
- package/index.js +1 -1
- package/internals/defaultizeColor.d.ts +1 -1
- package/modern/BarChart/BarChart.js +1 -1
- package/modern/ChartsGrid/ChartsHorizontalGrid.js +2 -2
- package/modern/ChartsGrid/ChartsVerticalGrid.js +2 -2
- package/modern/ChartsVoronoiHandler/ChartsVoronoiHandler.js +2 -2
- package/modern/LineChart/AnimatedArea.js +4 -1
- package/modern/LineChart/AnimatedLine.js +4 -1
- package/modern/LineChart/AppearingMask.js +1 -0
- package/modern/LineChart/CircleMarkElement.js +1 -0
- package/modern/LineChart/LineChart.js +1 -1
- package/modern/LineChart/MarkElement.js +3 -1
- package/modern/PieChart/PieArc.js +3 -1
- package/modern/PieChart/PieArcLabel.js +13 -9
- package/modern/PieChart/PieChart.js +1 -1
- package/modern/ScatterChart/ScatterChart.js +1 -1
- package/modern/ScatterChart/extremums.js +1 -3
- package/modern/ScatterChart/formatter.js +2 -2
- package/modern/SparkLineChart/SparkLineChart.js +1 -4
- package/modern/index.js +1 -1
- package/node/BarChart/BarChart.js +1 -1
- package/node/ChartsGrid/ChartsHorizontalGrid.js +2 -2
- package/node/ChartsGrid/ChartsVerticalGrid.js +2 -2
- package/node/ChartsVoronoiHandler/ChartsVoronoiHandler.js +2 -2
- package/node/LineChart/AnimatedArea.js +4 -1
- package/node/LineChart/AnimatedLine.js +4 -1
- package/node/LineChart/AppearingMask.js +1 -0
- package/node/LineChart/CircleMarkElement.js +1 -0
- package/node/LineChart/LineChart.js +1 -1
- package/node/LineChart/MarkElement.js +3 -1
- package/node/PieChart/PieArc.js +3 -1
- package/node/PieChart/PieArcLabel.js +13 -9
- package/node/PieChart/PieChart.js +1 -1
- package/node/ScatterChart/ScatterChart.js +1 -1
- package/node/ScatterChart/extremums.js +1 -3
- package/node/ScatterChart/formatter.js +2 -2
- package/node/SparkLineChart/SparkLineChart.js +1 -4
- package/node/index.js +1 -1
- package/package.json +3 -3
|
@@ -4,9 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.getExtremumY = exports.getExtremumX = void 0;
|
|
7
|
-
const mergeMinMax = (acc, val) =>
|
|
8
|
-
return [Math.min(acc[0], val[0]), Math.max(acc[1], val[1])];
|
|
9
|
-
};
|
|
7
|
+
const mergeMinMax = (acc, val) => [val[0] === null ? acc[0] : Math.min(acc[0], val[0]), val[1] === null ? acc[1] : Math.max(acc[1], val[1])];
|
|
10
8
|
const getExtremumX = params => {
|
|
11
9
|
const {
|
|
12
10
|
series,
|
|
@@ -18,8 +18,8 @@ const formatter = ({
|
|
|
18
18
|
}
|
|
19
19
|
const data = !datasetKeys ? seriesData.data ?? [] : dataset?.map(d => {
|
|
20
20
|
return {
|
|
21
|
-
x: d[datasetKeys.x],
|
|
22
|
-
y: d[datasetKeys.y],
|
|
21
|
+
x: d[datasetKeys.x] ?? null,
|
|
22
|
+
y: d[datasetKeys.y] ?? null,
|
|
23
23
|
z: datasetKeys.z && d[datasetKeys.z],
|
|
24
24
|
id: d[datasetKeys.id]
|
|
25
25
|
};
|
|
@@ -97,10 +97,7 @@ const SparkLineChart = exports.SparkLineChart = /*#__PURE__*/React.forwardRef(fu
|
|
|
97
97
|
children: [plotType === 'bar' && /*#__PURE__*/(0, _jsxRuntime.jsx)(_BarChart.BarPlot, {
|
|
98
98
|
skipAnimation: true,
|
|
99
99
|
slots: slots,
|
|
100
|
-
slotProps: slotProps
|
|
101
|
-
sx: {
|
|
102
|
-
shapeRendering: 'auto'
|
|
103
|
-
}
|
|
100
|
+
slotProps: slotProps
|
|
104
101
|
}), plotType === 'line' && /*#__PURE__*/(0, _jsxRuntime.jsxs)(React.Fragment, {
|
|
105
102
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_LineChart.AreaPlot, {
|
|
106
103
|
skipAnimation: true,
|
package/node/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/x-charts",
|
|
3
|
-
"version": "7.23.
|
|
3
|
+
"version": "7.23.6",
|
|
4
4
|
"description": "The community edition of the Charts components (MUI X).",
|
|
5
5
|
"author": "MUI Team",
|
|
6
6
|
"main": "./node/index.js",
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
"@react-spring/web": "^9.7.5",
|
|
36
36
|
"clsx": "^2.1.1",
|
|
37
37
|
"prop-types": "^15.8.1",
|
|
38
|
-
"@mui/x-
|
|
39
|
-
"@mui/x-
|
|
38
|
+
"@mui/x-internals": "7.23.6",
|
|
39
|
+
"@mui/x-charts-vendor": "7.20.0"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
42
|
"@emotion/react": "^11.9.0",
|