@mui/x-charts 7.9.0 → 7.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +74 -0
- package/LineChart/AreaPlot.js +7 -1
- package/LineChart/extremums.js +1 -1
- package/esm/LineChart/AreaPlot.js +7 -1
- package/esm/LineChart/extremums.js +1 -1
- package/index.js +1 -1
- package/modern/LineChart/AreaPlot.js +7 -1
- package/modern/LineChart/extremums.js +1 -1
- package/modern/index.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,80 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## 7.10.0
|
|
7
|
+
|
|
8
|
+
_Jul 11, 2024_
|
|
9
|
+
|
|
10
|
+
We'd like to offer a big thanks to the 12 contributors who made this release possible. Here are some highlights ✨:
|
|
11
|
+
|
|
12
|
+
- 🎁 Add selectors to support showing child row count in footer in the Data Grid
|
|
13
|
+
- ✨ New APIs for retrieving current item tree and item's children IDs in the Tree View
|
|
14
|
+
- 🌍 Improve Spanish (es-ES) locale on the Data Grid
|
|
15
|
+
- 🐞 Bugfixes
|
|
16
|
+
- 📚 Documentation improvements
|
|
17
|
+
|
|
18
|
+
<!--/ HIGHLIGHT_ABOVE_SEPARATOR /-->
|
|
19
|
+
|
|
20
|
+
### Data Grid
|
|
21
|
+
|
|
22
|
+
#### `@mui/x-data-grid@7.10.0`
|
|
23
|
+
|
|
24
|
+
- [DataGrid] Add selectors to support showing child row count in footer (#13725) @KenanYusuf
|
|
25
|
+
- [DataGrid] Fix incorrect panels position when using a toolbar (#13474) @oukunan
|
|
26
|
+
- [DataGrid] Set default variant to `'standard'` in `GridFilterInputMultipleValue` (#13129) @tarunrajput
|
|
27
|
+
- [DataGrid] Use `readonly` on more array props (#13331) @pcorpet
|
|
28
|
+
- [l10n] Improve Spanish (es-ES) locale (#13772) @joserealdev
|
|
29
|
+
|
|
30
|
+
#### `@mui/x-data-grid-pro@7.10.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
31
|
+
|
|
32
|
+
Same changes as in `@mui/x-data-grid@7.10.0`, plus:
|
|
33
|
+
|
|
34
|
+
- [DataGridPro] Keep bottom pinned row at the bottom (#13313) @romgrk
|
|
35
|
+
|
|
36
|
+
#### `@mui/x-data-grid-premium@7.10.0` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
37
|
+
|
|
38
|
+
Same changes as in `@mui/x-data-grid-pro@7.10.0`.
|
|
39
|
+
|
|
40
|
+
### Date and Time Pickers
|
|
41
|
+
|
|
42
|
+
#### `@mui/x-date-pickers@7.10.0`
|
|
43
|
+
|
|
44
|
+
- [fields] Prevent infinite recursion when ensuring selection (#13779) @LukasTy
|
|
45
|
+
- [fields] Unify fields behavior regardless of the `readOnly` flag (#13688) @LukasTy
|
|
46
|
+
|
|
47
|
+
#### `@mui/x-date-pickers-pro@7.10.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
48
|
+
|
|
49
|
+
Same changes as in `@mui/x-date-pickers@7.10.0`, plus:
|
|
50
|
+
|
|
51
|
+
- [DateRangePicker] Fix `calendarHeader` slot props propagation (#13780) @LukasTy
|
|
52
|
+
- [DateTimeRangePicker] Resolve `format` from given `views` (#13743) @LukasTy
|
|
53
|
+
|
|
54
|
+
### Charts
|
|
55
|
+
|
|
56
|
+
#### `@mui/x-charts@7.10.0`
|
|
57
|
+
|
|
58
|
+
- [charts] Fix displaying area of a `LineChart` when using the `log` scale (#13791) @alexfauquette
|
|
59
|
+
- [charts] Use correct click handler prop on pie chart `OnSeriesItemClick` documentation (#13761) @tonyhallett
|
|
60
|
+
|
|
61
|
+
### Tree View
|
|
62
|
+
|
|
63
|
+
#### `@mui/x-tree-view@7.10.0`
|
|
64
|
+
|
|
65
|
+
- [TreeView] Add `getItemTree` and `getItemOrderedChildrenIds` methods to the public API (#13804) @flaviendelangle
|
|
66
|
+
- [TreeView] Add utility function to check if an optional plugin is present (#13788) @flaviendelangle
|
|
67
|
+
|
|
68
|
+
### Docs
|
|
69
|
+
|
|
70
|
+
- [docs] Add missing default `loading` prop value (#13604) @oliviertassinari
|
|
71
|
+
- [docs] Add the `DateTimeRangePicker` to the "Commonly used components" demo (#13775) @flaviendelangle
|
|
72
|
+
- [docs] Fix Pickers customization playground overflow (#13742) @LukasTy
|
|
73
|
+
- [docs] Move Pickers dialog guidelines to accessibility page (#13778) @arthurbalduini
|
|
74
|
+
|
|
75
|
+
### Core
|
|
76
|
+
|
|
77
|
+
- [core] Sort `DATA_GRID_PROPS_DEFAULT_VALUES` alphabetically (#13783) @oliviertassinari
|
|
78
|
+
- [test] Fix split infinitive use in tests @oliviertassinari
|
|
79
|
+
|
|
6
80
|
## 7.9.0
|
|
7
81
|
|
|
8
82
|
_Jul 5, 2024_
|
package/LineChart/AreaPlot.js
CHANGED
|
@@ -63,7 +63,13 @@ const useAggregatedData = () => {
|
|
|
63
63
|
throw new Error(`MUI X Charts: The data length of the x axis (${xData.length} items) is lower than the length of series (${stackedData.length} items).`);
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
|
-
const areaPath = (0, _d3Shape.area)().x(d => xScale(d.x)).defined((_, i) => connectNulls || data[i] != null).y0(d =>
|
|
66
|
+
const areaPath = (0, _d3Shape.area)().x(d => xScale(d.x)).defined((_, i) => connectNulls || data[i] != null).y0(d => {
|
|
67
|
+
const value = d.y && yScale(d.y[0]);
|
|
68
|
+
if (Number.isNaN(value)) {
|
|
69
|
+
return yScale.range()[0];
|
|
70
|
+
}
|
|
71
|
+
return value;
|
|
72
|
+
}).y1(d => d.y && yScale(d.y[1]));
|
|
67
73
|
const curve = (0, _getCurve.default)(series[seriesId].curve);
|
|
68
74
|
const formattedData = xData?.map((x, index) => ({
|
|
69
75
|
x,
|
package/LineChart/extremums.js
CHANGED
|
@@ -37,7 +37,7 @@ const getExtremumY = params => {
|
|
|
37
37
|
stackedData
|
|
38
38
|
} = series[seriesId];
|
|
39
39
|
const isArea = area !== undefined;
|
|
40
|
-
const getValues = isArea ? d => d : d => [d[1], d[1]]; // Since this series is not used to display an area, we do not consider the base (the d[0]).
|
|
40
|
+
const getValues = isArea && axis.scaleType !== 'log' ? d => d : d => [d[1], d[1]]; // Since this series is not used to display an area, we do not consider the base (the d[0]).
|
|
41
41
|
|
|
42
42
|
const seriesExtremums = getSeriesExtremums(getValues, stackedData);
|
|
43
43
|
if (acc[0] === null) {
|
|
@@ -54,7 +54,13 @@ const useAggregatedData = () => {
|
|
|
54
54
|
throw new Error(`MUI X Charts: The data length of the x axis (${xData.length} items) is lower than the length of series (${stackedData.length} items).`);
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
|
-
const areaPath = d3Area().x(d => xScale(d.x)).defined((_, i) => connectNulls || data[i] != null).y0(d =>
|
|
57
|
+
const areaPath = d3Area().x(d => xScale(d.x)).defined((_, i) => connectNulls || data[i] != null).y0(d => {
|
|
58
|
+
const value = d.y && yScale(d.y[0]);
|
|
59
|
+
if (Number.isNaN(value)) {
|
|
60
|
+
return yScale.range()[0];
|
|
61
|
+
}
|
|
62
|
+
return value;
|
|
63
|
+
}).y1(d => d.y && yScale(d.y[1]));
|
|
58
64
|
const curve = getCurveFactory(series[seriesId].curve);
|
|
59
65
|
const formattedData = xData?.map((x, index) => ({
|
|
60
66
|
x,
|
|
@@ -30,7 +30,7 @@ export const getExtremumY = params => {
|
|
|
30
30
|
stackedData
|
|
31
31
|
} = series[seriesId];
|
|
32
32
|
const isArea = area !== undefined;
|
|
33
|
-
const getValues = isArea ? d => d : d => [d[1], d[1]]; // Since this series is not used to display an area, we do not consider the base (the d[0]).
|
|
33
|
+
const getValues = isArea && axis.scaleType !== 'log' ? d => d : d => [d[1], d[1]]; // Since this series is not used to display an area, we do not consider the base (the d[0]).
|
|
34
34
|
|
|
35
35
|
const seriesExtremums = getSeriesExtremums(getValues, stackedData);
|
|
36
36
|
if (acc[0] === null) {
|
package/index.js
CHANGED
|
@@ -54,7 +54,13 @@ const useAggregatedData = () => {
|
|
|
54
54
|
throw new Error(`MUI X Charts: The data length of the x axis (${xData.length} items) is lower than the length of series (${stackedData.length} items).`);
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
|
-
const areaPath = d3Area().x(d => xScale(d.x)).defined((_, i) => connectNulls || data[i] != null).y0(d =>
|
|
57
|
+
const areaPath = d3Area().x(d => xScale(d.x)).defined((_, i) => connectNulls || data[i] != null).y0(d => {
|
|
58
|
+
const value = d.y && yScale(d.y[0]);
|
|
59
|
+
if (Number.isNaN(value)) {
|
|
60
|
+
return yScale.range()[0];
|
|
61
|
+
}
|
|
62
|
+
return value;
|
|
63
|
+
}).y1(d => d.y && yScale(d.y[1]));
|
|
58
64
|
const curve = getCurveFactory(series[seriesId].curve);
|
|
59
65
|
const formattedData = xData?.map((x, index) => ({
|
|
60
66
|
x,
|
|
@@ -30,7 +30,7 @@ export const getExtremumY = params => {
|
|
|
30
30
|
stackedData
|
|
31
31
|
} = series[seriesId];
|
|
32
32
|
const isArea = area !== undefined;
|
|
33
|
-
const getValues = isArea ? d => d : d => [d[1], d[1]]; // Since this series is not used to display an area, we do not consider the base (the d[0]).
|
|
33
|
+
const getValues = isArea && axis.scaleType !== 'log' ? d => d : d => [d[1], d[1]]; // Since this series is not used to display an area, we do not consider the base (the d[0]).
|
|
34
34
|
|
|
35
35
|
const seriesExtremums = getSeriesExtremums(getValues, stackedData);
|
|
36
36
|
if (acc[0] === null) {
|
package/modern/index.js
CHANGED