@mui/x-charts-pro 8.22.1 → 8.24.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.
Files changed (116) hide show
  1. package/BarChartPro/BarChartPro.js +39 -0
  2. package/BarChartPro/BarChartPro.plugins.d.ts +2 -2
  3. package/BarChartPro/BarChartPro.plugins.js +1 -1
  4. package/CHANGELOG.md +211 -0
  5. package/ChartDataProviderPro/ChartDataProviderPro.d.ts +2 -1
  6. package/ChartDataProviderPro/ChartDataProviderPro.js +5 -1
  7. package/ChartDataProviderPro/index.d.ts +1 -1
  8. package/ChartDataProviderPro/index.js +7 -11
  9. package/ChartZoomSlider/internals/ChartAxisZoomSliderActiveTrack.js +1 -0
  10. package/ChartZoomSlider/internals/ChartAxisZoomSliderPreview.js +4 -1
  11. package/ChartZoomSlider/internals/ChartAxisZoomSliderPreviewContent.d.ts +2 -3
  12. package/ChartZoomSlider/internals/ChartAxisZoomSliderPreviewContent.js +6 -22
  13. package/ChartZoomSlider/internals/ChartAxisZoomSliderThumb.js +4 -1
  14. package/ChartZoomSlider/internals/ChartAxisZoomSliderTrack.js +1 -0
  15. package/ChartZoomSlider/internals/previews/AreaPreviewPlot.d.ts +1 -1
  16. package/ChartZoomSlider/internals/previews/LineAreaPreviewPlot.d.ts +4 -0
  17. package/ChartZoomSlider/internals/previews/LineAreaPreviewPlot.js +22 -0
  18. package/ChartZoomSlider/internals/previews/LinePreviewPlot.d.ts +2 -2
  19. package/ChartZoomSlider/internals/previews/PreviewPlot.types.d.ts +4 -0
  20. package/ChartZoomSlider/internals/seriesPreviewPlotMap.d.ts +3 -0
  21. package/ChartZoomSlider/internals/seriesPreviewPlotMap.js +10 -0
  22. package/FunnelChart/FunnelChart.js +30 -0
  23. package/FunnelChart/FunnelChart.plugins.d.ts +2 -2
  24. package/FunnelChart/FunnelChart.plugins.js +1 -1
  25. package/FunnelChart/FunnelSection.d.ts +1 -1
  26. package/FunnelChart/FunnelSection.js +4 -1
  27. package/FunnelChart/seriesConfig/index.d.ts +1 -1
  28. package/FunnelChart/seriesConfig/index.js +3 -1
  29. package/FunnelChart/seriesConfig/legend.js +6 -3
  30. package/Heatmap/Heatmap.d.ts +2 -2
  31. package/Heatmap/Heatmap.js +109 -5
  32. package/Heatmap/Heatmap.plugins.d.ts +3 -2
  33. package/Heatmap/Heatmap.plugins.js +2 -1
  34. package/Heatmap/HeatmapItem.d.ts +10 -1
  35. package/Heatmap/HeatmapItem.js +3 -9
  36. package/Heatmap/HeatmapPlot.js +11 -1
  37. package/Heatmap/index.d.ts +1 -0
  38. package/Heatmap/seriesConfig/index.js +3 -1
  39. package/LineChartPro/LineChartPro.js +30 -0
  40. package/LineChartPro/LineChartPro.plugins.d.ts +2 -2
  41. package/LineChartPro/LineChartPro.plugins.js +1 -1
  42. package/PieChartPro/PieChartPro.js +35 -5
  43. package/PieChartPro/PieChartPro.plugins.d.ts +2 -2
  44. package/RadarChartPro/RadarChartPro.js +30 -0
  45. package/RadarChartPro/RadarChartPro.plugins.d.ts +2 -2
  46. package/RadarChartPro/RadarChartPro.plugins.js +1 -1
  47. package/SankeyChart/SankeyPlot.js +4 -1
  48. package/SankeyChart/seriesConfig/identifierSerializer.d.ts +3 -0
  49. package/SankeyChart/seriesConfig/identifierSerializer.js +14 -0
  50. package/SankeyChart/seriesConfig/index.js +3 -1
  51. package/ScatterChartPro/ScatterChartPro.js +30 -0
  52. package/ScatterChartPro/ScatterChartPro.plugins.d.ts +2 -2
  53. package/ScatterChartPro/ScatterChartPro.plugins.js +1 -1
  54. package/esm/BarChartPro/BarChartPro.js +39 -0
  55. package/esm/BarChartPro/BarChartPro.plugins.d.ts +2 -2
  56. package/esm/BarChartPro/BarChartPro.plugins.js +2 -2
  57. package/esm/ChartDataProviderPro/ChartDataProviderPro.d.ts +2 -1
  58. package/esm/ChartDataProviderPro/ChartDataProviderPro.js +5 -2
  59. package/esm/ChartDataProviderPro/index.d.ts +1 -1
  60. package/esm/ChartDataProviderPro/index.js +1 -1
  61. package/esm/ChartZoomSlider/internals/ChartAxisZoomSliderActiveTrack.js +1 -0
  62. package/esm/ChartZoomSlider/internals/ChartAxisZoomSliderPreview.js +4 -1
  63. package/esm/ChartZoomSlider/internals/ChartAxisZoomSliderPreviewContent.d.ts +2 -3
  64. package/esm/ChartZoomSlider/internals/ChartAxisZoomSliderPreviewContent.js +6 -22
  65. package/esm/ChartZoomSlider/internals/ChartAxisZoomSliderThumb.js +4 -1
  66. package/esm/ChartZoomSlider/internals/ChartAxisZoomSliderTrack.js +1 -0
  67. package/esm/ChartZoomSlider/internals/previews/AreaPreviewPlot.d.ts +1 -1
  68. package/esm/ChartZoomSlider/internals/previews/LineAreaPreviewPlot.d.ts +4 -0
  69. package/esm/ChartZoomSlider/internals/previews/LineAreaPreviewPlot.js +15 -0
  70. package/esm/ChartZoomSlider/internals/previews/LinePreviewPlot.d.ts +2 -2
  71. package/esm/ChartZoomSlider/internals/previews/PreviewPlot.types.d.ts +4 -0
  72. package/esm/ChartZoomSlider/internals/seriesPreviewPlotMap.d.ts +3 -0
  73. package/esm/ChartZoomSlider/internals/seriesPreviewPlotMap.js +4 -0
  74. package/esm/FunnelChart/FunnelChart.js +30 -0
  75. package/esm/FunnelChart/FunnelChart.plugins.d.ts +2 -2
  76. package/esm/FunnelChart/FunnelChart.plugins.js +2 -2
  77. package/esm/FunnelChart/FunnelSection.d.ts +1 -1
  78. package/esm/FunnelChart/FunnelSection.js +4 -1
  79. package/esm/FunnelChart/seriesConfig/index.d.ts +1 -1
  80. package/esm/FunnelChart/seriesConfig/index.js +3 -1
  81. package/esm/FunnelChart/seriesConfig/legend.js +6 -3
  82. package/esm/Heatmap/Heatmap.d.ts +2 -2
  83. package/esm/Heatmap/Heatmap.js +109 -5
  84. package/esm/Heatmap/Heatmap.plugins.d.ts +3 -2
  85. package/esm/Heatmap/Heatmap.plugins.js +3 -2
  86. package/esm/Heatmap/HeatmapItem.d.ts +10 -1
  87. package/esm/Heatmap/HeatmapItem.js +3 -9
  88. package/esm/Heatmap/HeatmapPlot.js +11 -1
  89. package/esm/Heatmap/index.d.ts +1 -0
  90. package/esm/Heatmap/seriesConfig/index.js +3 -1
  91. package/esm/LineChartPro/LineChartPro.js +30 -0
  92. package/esm/LineChartPro/LineChartPro.plugins.d.ts +2 -2
  93. package/esm/LineChartPro/LineChartPro.plugins.js +2 -2
  94. package/esm/PieChartPro/PieChartPro.js +35 -5
  95. package/esm/PieChartPro/PieChartPro.plugins.d.ts +2 -2
  96. package/esm/RadarChartPro/RadarChartPro.js +30 -0
  97. package/esm/RadarChartPro/RadarChartPro.plugins.d.ts +2 -2
  98. package/esm/RadarChartPro/RadarChartPro.plugins.js +2 -2
  99. package/esm/SankeyChart/SankeyPlot.js +4 -1
  100. package/esm/SankeyChart/seriesConfig/identifierSerializer.d.ts +3 -0
  101. package/esm/SankeyChart/seriesConfig/identifierSerializer.js +8 -0
  102. package/esm/SankeyChart/seriesConfig/index.js +3 -1
  103. package/esm/ScatterChartPro/ScatterChartPro.js +30 -0
  104. package/esm/ScatterChartPro/ScatterChartPro.plugins.d.ts +2 -2
  105. package/esm/ScatterChartPro/ScatterChartPro.plugins.js +2 -2
  106. package/esm/index.js +1 -1
  107. package/esm/internals/index.d.ts +4 -1
  108. package/esm/internals/index.js +3 -1
  109. package/esm/internals/plugins/allPlugins.d.ts +5 -5
  110. package/esm/internals/plugins/allPlugins.js +3 -3
  111. package/index.js +1 -1
  112. package/internals/index.d.ts +4 -1
  113. package/internals/index.js +15 -1
  114. package/internals/plugins/allPlugins.d.ts +5 -5
  115. package/internals/plugins/allPlugins.js +2 -2
  116. package/package.json +6 -6
@@ -165,6 +165,31 @@ process.env.NODE_ENV !== "production" ? BarChartPro.propTypes = {
165
165
  * The height of the chart in px. If not defined, it takes the height of the parent element.
166
166
  */
167
167
  height: _propTypes.default.number,
168
+ /**
169
+ * List of hidden series and/or items.
170
+ *
171
+ * Different chart types use different keys.
172
+ *
173
+ * @example
174
+ * ```ts
175
+ * [
176
+ * {
177
+ * type: 'pie',
178
+ * seriesId: 'series-1',
179
+ * dataIndex: 3,
180
+ * },
181
+ * {
182
+ * type: 'line',
183
+ * seriesId: 'series-2',
184
+ * }
185
+ * ]
186
+ * ```
187
+ */
188
+ hiddenItems: _propTypes.default.arrayOf(_propTypes.default.shape({
189
+ dataIndex: _propTypes.default.number,
190
+ seriesId: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string]),
191
+ type: _propTypes.default.oneOf(['bar']).isRequired
192
+ })),
168
193
  /**
169
194
  * If `true`, the legend is not rendered.
170
195
  */
@@ -232,6 +257,11 @@ process.env.NODE_ENV !== "production" ? BarChartPro.propTypes = {
232
257
  * @param {null | ChartsAxisData} data The data about the clicked axis and items associated with it.
233
258
  */
234
259
  onAxisClick: _propTypes.default.func,
260
+ /**
261
+ * Callback fired when any hidden identifiers change.
262
+ * @param {VisibilityIdentifier[]} hiddenItems The new list of hidden identifiers.
263
+ */
264
+ onHiddenItemsChange: _propTypes.default.func,
235
265
  /**
236
266
  * The callback fired when the highlighted item changes.
237
267
  *
@@ -258,6 +288,15 @@ process.env.NODE_ENV !== "production" ? BarChartPro.propTypes = {
258
288
  * @param {ZoomData[]} zoomData Updated zoom data.
259
289
  */
260
290
  onZoomChange: _propTypes.default.func,
291
+ /**
292
+ * The type of renderer to use for the bar plot.
293
+ * - `svg-single`: Renders every bar in a `<rect />` element.
294
+ * - `svg-batch`: Batch renders bars in `<path />` elements for better performance with large datasets, at the cost of some limitations.
295
+ * Read more: https://mui.com/x/react-charts/bars/#performance
296
+ *
297
+ * @default 'svg-single'
298
+ */
299
+ renderer: _propTypes.default.oneOf(['svg-batch', 'svg-single']),
261
300
  /**
262
301
  * The series to display in the bar chart.
263
302
  * An array of [[BarSeries]] objects.
@@ -1,5 +1,5 @@
1
- import { type UseChartZAxisSignature, type UseChartCartesianAxisSignature, type UseChartTooltipSignature, type UseChartInteractionSignature, type UseChartHighlightSignature, type UseChartKeyboardNavigationSignature, type UseChartBrushSignature, type ConvertSignaturesIntoPlugins } from '@mui/x-charts/internals';
1
+ import { type ConvertSignaturesIntoPlugins, type UseChartZAxisSignature, type UseChartCartesianAxisSignature, type UseChartTooltipSignature, type UseChartInteractionSignature, type UseChartHighlightSignature, type UseChartKeyboardNavigationSignature, type UseChartBrushSignature, type UseChartVisibilityManagerSignature } from '@mui/x-charts/internals';
2
2
  import { type UseChartProExportSignature } from "../internals/plugins/useChartProExport/index.js";
3
3
  import { type UseChartProZoomSignature } from "../internals/plugins/useChartProZoom/index.js";
4
- export type BarChartProPluginSignatures = [UseChartZAxisSignature, UseChartBrushSignature, UseChartTooltipSignature, UseChartInteractionSignature, UseChartCartesianAxisSignature<'bar'>, UseChartHighlightSignature, UseChartKeyboardNavigationSignature, UseChartProZoomSignature, UseChartProExportSignature];
4
+ export type BarChartProPluginSignatures = [UseChartZAxisSignature, UseChartBrushSignature, UseChartTooltipSignature, UseChartInteractionSignature, UseChartCartesianAxisSignature<'bar'>, UseChartHighlightSignature, UseChartVisibilityManagerSignature<'bar'>, UseChartKeyboardNavigationSignature, UseChartProZoomSignature, UseChartProExportSignature];
5
5
  export declare const BAR_CHART_PRO_PLUGINS: ConvertSignaturesIntoPlugins<BarChartProPluginSignatures>;
@@ -7,4 +7,4 @@ exports.BAR_CHART_PRO_PLUGINS = void 0;
7
7
  var _internals = require("@mui/x-charts/internals");
8
8
  var _useChartProExport = require("../internals/plugins/useChartProExport");
9
9
  var _useChartProZoom = require("../internals/plugins/useChartProZoom");
10
- const BAR_CHART_PRO_PLUGINS = exports.BAR_CHART_PRO_PLUGINS = [_internals.useChartZAxis, _internals.useChartBrush, _internals.useChartTooltip, _internals.useChartInteraction, _internals.useChartCartesianAxis, _internals.useChartHighlight, _internals.useChartKeyboardNavigation, _useChartProZoom.useChartProZoom, _useChartProExport.useChartProExport];
10
+ const BAR_CHART_PRO_PLUGINS = exports.BAR_CHART_PRO_PLUGINS = [_internals.useChartZAxis, _internals.useChartBrush, _internals.useChartTooltip, _internals.useChartInteraction, _internals.useChartCartesianAxis, _internals.useChartHighlight, _internals.useChartVisibilityManager, _internals.useChartKeyboardNavigation, _useChartProZoom.useChartProZoom, _useChartProExport.useChartProExport];
package/CHANGELOG.md CHANGED
@@ -5,6 +5,217 @@
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.24.0
9
+
10
+ _Jan 8, 2026_
11
+
12
+ We'd like to extend a big thank you to the 12 contributors who made this release possible. Here are some highlights ✨:
13
+
14
+ - ⚡️Add bar [batch renderer](https://mui.com/x/react-charts/bars/#performance), result in a significant performance improvement when rendering thousands of bars
15
+ - 📊 Add [range bar chart](https://mui.com/x/react-charts/range-bar/) to render
16
+ ![image](https://github.com/user-attachments/assets/4112c09b-d841-42f7-a0c8-d23b61c23ca0)
17
+ - 🌎 Improved Danish (da-DK) and Japanese (ja-JP) locales on the Data Grid
18
+
19
+ Special thanks go out to these community members for their valuable contributions:
20
+ @anders-noerrelykke, @auloin, @sai6855, @yuito-it
21
+
22
+ The following team members contributed to this release:
23
+ @alelthomas, @alexfauquette, @arminmeh, @bernardobelchior, @flaviendelangle, @JCQuintas, @mapache-salvaje, @siriwatknp
24
+
25
+ ### Data Grid
26
+
27
+ #### `@mui/x-data-grid@8.24.0`
28
+
29
+ - [l10n] Improve Danish (da-DK) locale (#20828) @anders-noerrelykke
30
+ - [l10n] Improve Japanese (ja-JP) locale (#20251) @yuito-it
31
+
32
+ #### `@mui/x-data-grid-pro@8.24.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
33
+
34
+ Same changes as in `@mui/x-data-grid@8.24.0`, plus:
35
+
36
+ - [DataGridPro] Fix header filter height for `density="compact"` (#20834) @arminmeh
37
+
38
+ #### `@mui/x-data-grid-premium@8.24.0` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
39
+
40
+ Same changes as in `@mui/x-data-grid-pro@8.24.0`.
41
+
42
+ ### Date and Time Pickers
43
+
44
+ #### `@mui/x-date-pickers@8.24.0`
45
+
46
+ - [pickers] Fix Styles applied to PickersDay when MuiPickersDay-dayOutsideMonth is used (#20719) @sai6855
47
+
48
+ #### `@mui/x-date-pickers-pro@8.24.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
49
+
50
+ Same changes as in `@mui/x-date-pickers@8.24.0`.
51
+
52
+ ### Charts
53
+
54
+ #### `@mui/x-charts@8.24.0`
55
+
56
+ - [charts] Add `VisibilityManager` logic to allow managing series/items (#20571) @JCQuintas
57
+ - [charts] Add `identifierSerializer` configuration (#20775) @JCQuintas
58
+ - [charts] Add `serializeIdentifier` instance function (#20791) @JCQuintas
59
+ - [charts] Add bar batch renderer (#20457) @bernardobelchior
60
+ - [charts] Allow animating bar, line, and pie elements to hidden state (#20798) @JCQuintas
61
+ - [charts] Fix failing lint step (#20813) @bernardobelchior
62
+ - [charts] Fix tooltip anchored to item (#20783) @alexfauquette
63
+ - [charts] Fix type casting in getCategoryAxisConfig and applySeriesLayout functions (#20797) @sai6855
64
+ - [charts] Let keyboard navigation avoid overflow and handle nullish values (#20757) @alexfauquette
65
+ - [charts] Refactor `PieChart` and `PieChartPro` to use `slots` and `slotProps` directly (#20795) @sai6855
66
+ - [charts] Refactor `useRegisterPointerEventHandlers` (#20824) @bernardobelchior
67
+ - [charts] Update legend types to allow hiding/showing items (#20784) @JCQuintas
68
+
69
+ #### `@mui/x-charts-pro@8.24.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
70
+
71
+ Same changes as in `@mui/x-charts@8.24.0`, plus:
72
+
73
+ - [charts-pro] Pass `slotProps.toolbar` to `Toolbar` in `PieChartPro` (#20796) @sai6855
74
+
75
+ #### `@mui/x-charts-premium@8.24.0` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
76
+
77
+ Same changes as in `@mui/x-charts-pro@8.24.0`, plus:
78
+
79
+ - [charts-premium] Add range bar chart (#20275) @bernardobelchior
80
+
81
+ ### Tree View
82
+
83
+ #### `@mui/x-tree-view@8.24.0`
84
+
85
+ - [tree view] Introduce a Tree View Store to clean the internals (#20051) @flaviendelangle
86
+
87
+ #### `@mui/x-tree-view-pro@8.24.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
88
+
89
+ Same changes as in `@mui/x-tree-view@8.24.0`.
90
+
91
+ ### Codemod
92
+
93
+ #### `@mui/x-codemod@8.24.0`
94
+
95
+ Internal changes.
96
+
97
+ ### Docs
98
+
99
+ - [docs] Fix axis size default values (#20799) @bernardobelchior
100
+ - [docs] Update What's New in MUI X page with post v8 features (DX-118) (#20787) @alelthomas
101
+ - [docs] Fix `onAccept`'s `context.source` documentation to use 'view' instead of 'picker' (#20465) @auloin
102
+ - [docs] Revise the Charts Brush doc (#20792) @mapache-salvaje
103
+ - [docs] Revise the Charts Highlighting doc (#20788) @mapache-salvaje
104
+ - [docs] Revise the Charts Label doc (#20794) @mapache-salvaje
105
+ - [docs] Revise the Charts Export doc (#20779) @mapache-salvaje
106
+
107
+ ### Core
108
+
109
+ - [code-infra] Fix v8.23.0 release date (#20767) @bernardobelchior
110
+ - [code-infra] Remove `glob-gitignore` (#20801) @bernardobelchior
111
+ - [code-infra] Remove `nyc` (#20804) @bernardobelchior
112
+ - [code-infra] Remove `stream-browserify` and `null-loader` (#20805) @bernardobelchior
113
+ - [code-infra] Remove `stylelint-config-tailwindcss` (#20807) @bernardobelchior
114
+ - [code-infra] Remove unused `path` package (#20802) @bernardobelchior
115
+ - [code-infra] Retry flaky e2e test on webkit (#20806) @JCQuintas
116
+ - [internal] Add `internal` slot to properly generate components CSS layer (#20763) @siriwatknp
117
+
118
+ ## 8.23.0
119
+
120
+ _Dec 24, 2025_
121
+
122
+ We'd like to extend a big thank you to the 12 contributors who made this release possible. Here are some highlights ✨:
123
+
124
+ - 🧮 Support Data Grid `size`, `size(true)`, and `size(false)` [aggregations for `'boolean'` column type](https://mui.com/x/react-data-grid/aggregation/#usage-with-row-grouping)
125
+ - 🔎 Allow zooming a heatmap
126
+
127
+ Special thanks go out to these community members for their valuable contributions:
128
+ @henkerik, @sai6855
129
+
130
+ The following team members contributed to this release:
131
+ @alelthomas, @alexfauquette, @arminmeh, @bernardobelchior, @brijeshb42, @flaviendelangle, @JCQuintas, @mapache-salvaje, @MBilalShafi, @siriwatknp
132
+
133
+ ### Data Grid
134
+
135
+ #### `@mui/x-data-grid@8.23.0`
136
+
137
+ - [DataGrid] Fix columns state and columns prop sync issue (#20703) @arminmeh
138
+ - [DataGrid] Fix filter datetime with seconds (#20557) @siriwatknp
139
+ - [DataGrid] Add new `includeHeaderFilters` flag to include header filters when autosizing columns (#20510) @siriwatknp
140
+ - [DataGrid] Prevent default on `Enter` key down when starting editing (#20751) @siriwatknp
141
+ - [l10n] Improve Portuguese from Portugal (pt-PT) locale (#20722) @Copilot
142
+
143
+ #### `@mui/x-data-grid-pro@8.23.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
144
+
145
+ Same changes as in `@mui/x-data-grid@8.23.0`, plus:
146
+
147
+ - [DataGridPro] Fix crash on rows change in tree data with pagination (#20215) @Copilot
148
+
149
+ #### `@mui/x-data-grid-premium@8.23.0` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
150
+
151
+ Same changes as in `@mui/x-data-grid-pro@8.23.0`, plus:
152
+
153
+ - [DataGridPremium] Add aggregation for `'boolean'` column type (#20683) @arminmeh
154
+ - [DataGridPremium] Fix strategy value computation with row grouping (#20725) @MBilalShafi
155
+ - [DataGridPremium] Handle `isRowSelectable()` checks for the rows missing due to `keepNonExistentRowsSelected` (#20668) @arminmeh
156
+
157
+ ### Date and Time Pickers
158
+
159
+ #### `@mui/x-date-pickers@8.23.0`
160
+
161
+ Internal changes.
162
+
163
+ #### `@mui/x-date-pickers-pro@8.23.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
164
+
165
+ Same changes as in `@mui/x-date-pickers@8.23.0`.
166
+
167
+ ### Charts
168
+
169
+ #### `@mui/x-charts@8.23.0`
170
+
171
+ - [charts] Custom stack functions implementation (#20679) @JCQuintas
172
+ - [charts] Extract keyboard focus navigation to the series config (#20693) @alexfauquette
173
+ - [charts] Fix demo not wrapping in mobile (#20713) @JCQuintas
174
+ - [charts] Fix missing dependencies in `x-charts-vendor` (#20685) @henkerik
175
+ - [charts] Remove webkit test differences (#20707) @JCQuintas
176
+
177
+ #### `@mui/x-charts-pro@8.23.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
178
+
179
+ Same changes as in `@mui/x-charts@8.23.0`, plus:
180
+
181
+ - [charts-pro] Allow registering preview plots from higher tier packages (#20716) @bernardobelchior
182
+ - [charts-pro] Fix erroneous behavior when adding/removing pointers from zoom&pan gestures (#20698) @JCQuintas
183
+ - [charts-pro] Move heatmap highlight handling to plot component (#20701) @bernardobelchior
184
+ - [charts-pro] Add zoom to heatmap (#20708) @bernardobelchior
185
+
186
+ #### `@mui/x-charts-premium@8.23.0` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
187
+
188
+ Same changes as in `@mui/x-charts-pro@8.23.0`.
189
+
190
+ ### Tree View
191
+
192
+ #### `@mui/x-tree-view@8.23.0`
193
+
194
+ - [tree view] Add new APIs to disable selection feature for tree view item (#20666) @siriwatknp
195
+
196
+ #### `@mui/x-tree-view-pro@8.23.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
197
+
198
+ Same changes as in `@mui/x-tree-view@8.23.0`.
199
+
200
+ ### Codemod
201
+
202
+ #### `@mui/x-codemod@8.23.0`
203
+
204
+ Internal changes.
205
+
206
+ ### Docs
207
+
208
+ - [docs] Clarify feature availability and relationship between Community and Pro/Premium docs (#20714) @mapache-salvaje
209
+ - [docs] Copyedit Tree View docs and apply new component style rules (DX-19) (#20652) @mapache-salvaje
210
+ - [docs] Fix `ColumnPinningDynamicRowHeight` demo (#20750) @sai6855
211
+ - [docs] Clean up Charts docs sidebar (DX-97) (#20700) @alelthomas
212
+ - [docs] Fix tick labels not being shown on a demo (#20718) @sai6855
213
+
214
+ ### Core
215
+
216
+ - [code-infra] Bump prettier to 3.7.4 (#20709) @JCQuintas
217
+ - [code-infra] Fix contributor generation logic in changelog script (#20705) @brijeshb42
218
+
8
219
  ## 8.22.1
9
220
 
10
221
  _Dec 17, 2025_
@@ -1,4 +1,4 @@
1
- import { type ChartSeriesType, type ChartAnyPluginSignature, type ChartProviderProps } from '@mui/x-charts/internals';
1
+ import { type ChartSeriesType, type ChartAnyPluginSignature, type ChartProviderProps, type ChartSeriesConfig } from '@mui/x-charts/internals';
2
2
  import { type ChartDataProviderProps } from '@mui/x-charts/ChartDataProvider';
3
3
  import { type ChartsSlotPropsPro, type ChartsSlotsPro } from "../internals/material/index.js";
4
4
  import { type AllPluginSignatures } from "../internals/plugins/allPlugins.js";
@@ -12,6 +12,7 @@ export type ChartDataProviderProProps<TSeries extends ChartSeriesType = ChartSer
12
12
  */
13
13
  slotProps?: Partial<ChartsSlotPropsPro>;
14
14
  };
15
+ export declare const defaultSeriesConfigPro: ChartSeriesConfig<'bar' | 'scatter' | 'line' | 'pie'>;
15
16
  /**
16
17
  * Orchestrates the data providers for the chart components and hooks.
17
18
  *
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
8
  exports.ChartDataProviderPro = ChartDataProviderPro;
9
+ exports.defaultSeriesConfigPro = void 0;
9
10
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
10
11
  var _propTypes = _interopRequireDefault(require("prop-types"));
11
12
  var _Watermark = require("@mui/x-license/Watermark");
@@ -16,8 +17,10 @@ var _material = require("../internals/material");
16
17
  var _allPlugins = require("../internals/plugins/allPlugins");
17
18
  var _useChartDataProviderProProps = require("./useChartDataProviderProProps");
18
19
  var _jsxRuntime = require("react/jsx-runtime");
19
- const releaseInfo = "MTc2NjAxNjAwMDAwMA==";
20
+ const releaseInfo = "MTc2NzgzMDQwMDAwMA==";
20
21
  const packageIdentifier = 'x-charts-pro';
22
+ const defaultSeriesConfigPro = exports.defaultSeriesConfigPro = _internals.defaultSeriesConfig;
23
+
21
24
  /**
22
25
  * Orchestrates the data providers for the chart components and hooks.
23
26
  *
@@ -53,6 +56,7 @@ function ChartDataProviderPro(props) {
53
56
  slots,
54
57
  slotProps
55
58
  } = (0, _useChartDataProviderProProps.useChartDataProviderProProps)((0, _extends2.default)({}, props, {
59
+ seriesConfig: props.seriesConfig ?? defaultSeriesConfigPro,
56
60
  plugins: props.plugins ?? _allPlugins.DEFAULT_PLUGINS
57
61
  }));
58
62
  (0, _useLicenseVerifier.useLicenseVerifier)(packageIdentifier, releaseInfo);
@@ -1,2 +1,2 @@
1
1
  import "../typeOverloads/index.js";
2
- export * from "./ChartDataProviderPro.js";
2
+ export { ChartDataProviderPro, type ChartDataProviderProProps } from "./ChartDataProviderPro.js";
@@ -3,15 +3,11 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
+ Object.defineProperty(exports, "ChartDataProviderPro", {
7
+ enumerable: true,
8
+ get: function () {
9
+ return _ChartDataProviderPro.ChartDataProviderPro;
10
+ }
11
+ });
6
12
  require("../typeOverloads");
7
- var _ChartDataProviderPro = require("./ChartDataProviderPro");
8
- Object.keys(_ChartDataProviderPro).forEach(function (key) {
9
- if (key === "default" || key === "__esModule") return;
10
- if (key in exports && exports[key] === _ChartDataProviderPro[key]) return;
11
- Object.defineProperty(exports, key, {
12
- enumerable: true,
13
- get: function () {
14
- return _ChartDataProviderPro[key];
15
- }
16
- });
17
- });
13
+ var _ChartDataProviderPro = require("./ChartDataProviderPro");
@@ -21,6 +21,7 @@ var _constants = require("./constants");
21
21
  var _chartAxisZoomSliderTrackClasses = require("./chartAxisZoomSliderTrackClasses");
22
22
  var _jsxRuntime = require("react/jsx-runtime");
23
23
  const ZoomSliderActiveTrackRect = (0, _styles.styled)('rect', {
24
+ slot: 'internal',
24
25
  shouldForwardProp: prop => (0, _system.shouldForwardProp)(prop) && prop !== 'preview'
25
26
  })(({
26
27
  theme
@@ -17,7 +17,10 @@ var _useChartProZoom = require("../../internals/plugins/useChartProZoom");
17
17
  var _ChartAxisZoomSliderPreviewContent = require("./ChartAxisZoomSliderPreviewContent");
18
18
  var _jsxRuntime = require("react/jsx-runtime");
19
19
  const _excluded = ["axisId", "axisDirection", "reverse"];
20
- const PreviewBackgroundRect = (0, _styles.styled)('rect')(({
20
+ const PreviewBackgroundRect = (0, _styles.styled)('rect', {
21
+ slot: 'internal',
22
+ shouldForwardProp: undefined
23
+ })(({
21
24
  theme
22
25
  }) => ({
23
26
  rx: 4,
@@ -1,10 +1,9 @@
1
1
  import { type AxisId } from '@mui/x-charts/internals';
2
- interface ChartAxisZoomSliderPreviewContentProps {
2
+ export interface ChartAxisZoomSliderPreviewContentProps {
3
3
  axisId: AxisId;
4
4
  x: number;
5
5
  y: number;
6
6
  height: number;
7
7
  width: number;
8
8
  }
9
- export declare function ChartAxisZoomSliderPreviewContent(props: ChartAxisZoomSliderPreviewContentProps): import("react/jsx-runtime").JSX.Element;
10
- export {};
9
+ export declare function ChartAxisZoomSliderPreviewContent(props: ChartAxisZoomSliderPreviewContentProps): import("react/jsx-runtime").JSX.Element;
@@ -9,10 +9,7 @@ exports.ChartAxisZoomSliderPreviewContent = ChartAxisZoomSliderPreviewContent;
9
9
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
10
10
  var React = _interopRequireWildcard(require("react"));
11
11
  var _internals = require("@mui/x-charts/internals");
12
- var _LinePreviewPlot = require("./previews/LinePreviewPlot");
13
- var _AreaPreviewPlot = require("./previews/AreaPreviewPlot");
14
- var _BarPreviewPlot = require("./previews/BarPreviewPlot");
15
- var _ScatterPreviewPlot = require("./previews/ScatterPreviewPlot");
12
+ var _seriesPreviewPlotMap = require("./seriesPreviewPlotMap");
16
13
  var _jsxRuntime = require("react/jsx-runtime");
17
14
  function ChartAxisZoomSliderPreviewContent(props) {
18
15
  const {
@@ -26,24 +23,11 @@ function ChartAxisZoomSliderPreviewContent(props) {
26
23
  const processedSeries = store.use(_internals.selectorChartSeriesProcessed);
27
24
  const children = [];
28
25
  const clipId = `zoom-preview-mask-${axisId}`;
29
- const hasLineSeries = (processedSeries.line?.seriesOrder?.length ?? 0) > 0;
30
- const hasBarSeries = (processedSeries.bar?.seriesOrder?.length ?? 0) > 0;
31
- const hasScatterSeries = (processedSeries.scatter?.seriesOrder?.length ?? 0) > 0;
32
- if (hasLineSeries) {
33
- children.push(/*#__PURE__*/(0, _jsxRuntime.jsx)(_AreaPreviewPlot.AreaPreviewPlot, {
34
- axisId: axisId
35
- }, "area"));
36
- }
37
- if (hasBarSeries) {
38
- children.push(/*#__PURE__*/(0, _jsxRuntime.jsx)(_BarPreviewPlot.BarPreviewPlot, (0, _extends2.default)({}, props), "bar"));
39
- }
40
- if (hasLineSeries) {
41
- children.push(/*#__PURE__*/(0, _jsxRuntime.jsx)(_LinePreviewPlot.LinePreviewPlot, {
42
- axisId: axisId
43
- }, "line"));
44
- }
45
- if (hasScatterSeries) {
46
- children.push(/*#__PURE__*/(0, _jsxRuntime.jsx)(_ScatterPreviewPlot.ScatterPreviewPlot, (0, _extends2.default)({}, props), "scatter"));
26
+ for (const [seriesType, Component] of _seriesPreviewPlotMap.seriesPreviewPlotMap) {
27
+ const hasSeries = (processedSeries[seriesType]?.seriesOrder?.length ?? 0) > 0;
28
+ if (hasSeries) {
29
+ children.push(/*#__PURE__*/(0, _jsxRuntime.jsx)(Component, (0, _extends2.default)({}, props), seriesType));
30
+ }
47
31
  }
48
32
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)(React.Fragment, {
49
33
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("clipPath", {
@@ -18,7 +18,10 @@ var _clsx = _interopRequireDefault(require("clsx"));
18
18
  var _chartAxisZoomSliderThumbClasses = require("./chartAxisZoomSliderThumbClasses");
19
19
  var _jsxRuntime = require("react/jsx-runtime");
20
20
  const _excluded = ["className", "onMove", "orientation", "placement", "rx", "ry"];
21
- const Rect = (0, _styles.styled)('rect')(({
21
+ const Rect = (0, _styles.styled)('rect', {
22
+ slot: 'internal',
23
+ shouldForwardProp: undefined
24
+ })(({
22
25
  theme
23
26
  }) => ({
24
27
  [`&.${_chartAxisZoomSliderThumbClasses.chartAxisZoomSliderThumbClasses.root}`]: (0, _extends2.default)({
@@ -20,6 +20,7 @@ var _chartAxisZoomSliderTrackClasses = require("./chartAxisZoomSliderTrackClasse
20
20
  var _jsxRuntime = require("react/jsx-runtime");
21
21
  const _excluded = ["axisId", "axisDirection", "reverse", "onSelectStart", "onSelectEnd"];
22
22
  const ZoomSliderTrack = (0, _styles.styled)('rect', {
23
+ slot: 'internal',
23
24
  shouldForwardProp: prop => (0, _system.shouldForwardProp)(prop) && prop !== 'axisDirection' && prop !== 'isSelecting'
24
25
  })(({
25
26
  theme
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { type SeriesId } from '@mui/x-charts/internals';
3
3
  import { type PreviewPlotProps } from "./PreviewPlot.types.js";
4
- interface AreaPreviewPlotProps extends PreviewPlotProps {}
4
+ interface AreaPreviewPlotProps extends Pick<PreviewPlotProps, 'axisId'> {}
5
5
  export declare function AreaPreviewPlot({
6
6
  axisId
7
7
  }: AreaPreviewPlotProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,4 @@
1
+ import { type PreviewPlotProps } from "./PreviewPlot.types.js";
2
+ export declare function LineAreaPreviewPlot({
3
+ axisId
4
+ }: PreviewPlotProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+
3
+ var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.LineAreaPreviewPlot = LineAreaPreviewPlot;
8
+ var React = _interopRequireWildcard(require("react"));
9
+ var _AreaPreviewPlot = require("./AreaPreviewPlot");
10
+ var _LinePreviewPlot = require("./LinePreviewPlot");
11
+ var _jsxRuntime = require("react/jsx-runtime");
12
+ function LineAreaPreviewPlot({
13
+ axisId
14
+ }) {
15
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(React.Fragment, {
16
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_AreaPreviewPlot.AreaPreviewPlot, {
17
+ axisId: axisId
18
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_LinePreviewPlot.LinePreviewPlot, {
19
+ axisId: axisId
20
+ })]
21
+ });
22
+ }
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { type SeriesId } from '@mui/x-charts/internals';
3
- import { type PreviewPlotProps } from "./PreviewPlot.types.js";
4
- interface LinePreviewPlotProps extends PreviewPlotProps {}
3
+ import type { PreviewPlotProps } from "./PreviewPlot.types.js";
4
+ interface LinePreviewPlotProps extends Pick<PreviewPlotProps, 'axisId'> {}
5
5
  export declare function LinePreviewPlot({
6
6
  axisId
7
7
  }: LinePreviewPlotProps): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,8 @@
1
1
  import { type AxisId } from '@mui/x-charts/internals';
2
2
  export interface PreviewPlotProps {
3
3
  axisId: AxisId;
4
+ x: number;
5
+ y: number;
6
+ width: number;
7
+ height: number;
4
8
  }
@@ -0,0 +1,3 @@
1
+ import type * as React from 'react';
2
+ import { type PreviewPlotProps } from "./previews/PreviewPlot.types.js";
3
+ export declare const seriesPreviewPlotMap: Map<keyof import("@mui/x-charts/internals").ChartsSeriesConfig, React.ComponentType<PreviewPlotProps>>;
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.seriesPreviewPlotMap = void 0;
7
+ var _BarPreviewPlot = require("./previews/BarPreviewPlot");
8
+ var _ScatterPreviewPlot = require("./previews/ScatterPreviewPlot");
9
+ var _LineAreaPreviewPlot = require("./previews/LineAreaPreviewPlot");
10
+ const seriesPreviewPlotMap = exports.seriesPreviewPlotMap = new Map([['bar', _BarPreviewPlot.BarPreviewPlot], ['line', _LineAreaPreviewPlot.LineAreaPreviewPlot], ['scatter', _ScatterPreviewPlot.ScatterPreviewPlot]]);
@@ -191,6 +191,31 @@ process.env.NODE_ENV !== "production" ? FunnelChart.propTypes = {
191
191
  * The height of the chart in px. If not defined, it takes the height of the parent element.
192
192
  */
193
193
  height: _propTypes.default.number,
194
+ /**
195
+ * List of hidden series and/or items.
196
+ *
197
+ * Different chart types use different keys.
198
+ *
199
+ * @example
200
+ * ```ts
201
+ * [
202
+ * {
203
+ * type: 'pie',
204
+ * seriesId: 'series-1',
205
+ * dataIndex: 3,
206
+ * },
207
+ * {
208
+ * type: 'line',
209
+ * seriesId: 'series-2',
210
+ * }
211
+ * ]
212
+ * ```
213
+ */
214
+ hiddenItems: _propTypes.default.arrayOf(_propTypes.default.shape({
215
+ dataIndex: _propTypes.default.number,
216
+ seriesId: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string]),
217
+ type: _propTypes.default.oneOf(['funnel']).isRequired
218
+ })),
194
219
  /**
195
220
  * If `true`, the legend is not rendered.
196
221
  * @default false
@@ -237,6 +262,11 @@ process.env.NODE_ENV !== "production" ? FunnelChart.propTypes = {
237
262
  * @param {null | ChartsAxisData} data The data about the clicked axis and items associated with it.
238
263
  */
239
264
  onAxisClick: _propTypes.default.func,
265
+ /**
266
+ * Callback fired when any hidden identifiers change.
267
+ * @param {VisibilityIdentifier[]} hiddenItems The new list of hidden identifiers.
268
+ */
269
+ onHiddenItemsChange: _propTypes.default.func,
240
270
  /**
241
271
  * The callback fired when the highlighted item changes.
242
272
  *
@@ -1,5 +1,5 @@
1
- import { type ConvertSignaturesIntoPlugins, type UseChartHighlightSignature, type UseChartTooltipSignature, type UseChartInteractionSignature } from '@mui/x-charts/internals';
1
+ import { type ConvertSignaturesIntoPlugins, type UseChartHighlightSignature, type UseChartTooltipSignature, type UseChartInteractionSignature, type UseChartVisibilityManagerSignature } from '@mui/x-charts/internals';
2
2
  import { type UseChartProExportSignature } from "../internals/plugins/useChartProExport/index.js";
3
3
  import { type UseChartFunnelAxisSignature } from "./funnelAxisPlugin/useChartFunnelAxis.types.js";
4
- export type FunnelChartPluginSignatures = [UseChartFunnelAxisSignature, UseChartTooltipSignature, UseChartInteractionSignature, UseChartHighlightSignature, UseChartProExportSignature];
4
+ export type FunnelChartPluginSignatures = [UseChartFunnelAxisSignature, UseChartTooltipSignature, UseChartInteractionSignature, UseChartHighlightSignature, UseChartVisibilityManagerSignature<'funnel'>, UseChartProExportSignature];
5
5
  export declare const FUNNEL_CHART_PLUGINS: ConvertSignaturesIntoPlugins<FunnelChartPluginSignatures>;
@@ -7,4 +7,4 @@ exports.FUNNEL_CHART_PLUGINS = void 0;
7
7
  var _internals = require("@mui/x-charts/internals");
8
8
  var _useChartProExport = require("../internals/plugins/useChartProExport");
9
9
  var _useChartFunnelAxis = require("./funnelAxisPlugin/useChartFunnelAxis");
10
- const FUNNEL_CHART_PLUGINS = exports.FUNNEL_CHART_PLUGINS = [_useChartFunnelAxis.useChartFunnelAxis, _internals.useChartTooltip, _internals.useChartInteraction, _internals.useChartHighlight, _useChartProExport.useChartProExport];
10
+ const FUNNEL_CHART_PLUGINS = exports.FUNNEL_CHART_PLUGINS = [_useChartFunnelAxis.useChartFunnelAxis, _internals.useChartTooltip, _internals.useChartInteraction, _internals.useChartHighlight, _internals.useChartVisibilityManager, _useChartProExport.useChartProExport];
@@ -8,7 +8,7 @@ export interface FunnelSectionProps extends Omit<React.SVGProps<SVGPathElement>,
8
8
  classes?: Partial<FunnelSectionClasses>;
9
9
  variant?: 'filled' | 'outlined';
10
10
  }
11
- export declare const FunnelSectionPath: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, React.SVGProps<SVGPathElement>, {}>;
11
+ export declare const FunnelSectionPath: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, Pick<React.SVGProps<SVGPathElement>, keyof React.SVGProps<SVGPathElement>>, {}>;
12
12
  /**
13
13
  * @ignore - internal component.
14
14
  */
@@ -17,7 +17,10 @@ var _clsx = _interopRequireDefault(require("clsx"));
17
17
  var _funnelSectionClasses = require("./funnelSectionClasses");
18
18
  var _jsxRuntime = require("react/jsx-runtime");
19
19
  const _excluded = ["seriesId", "dataIndex", "classes", "color", "onClick", "className", "variant"];
20
- const FunnelSectionPath = exports.FunnelSectionPath = (0, _styles.styled)('path')(() => ({
20
+ const FunnelSectionPath = exports.FunnelSectionPath = (0, _styles.styled)('path', {
21
+ slot: 'internal',
22
+ shouldForwardProp: undefined
23
+ })(() => ({
21
24
  transition: 'opacity 0.2s ease-in, fill 0.2s ease-in, fill-opacity 0.2s ease-in, filter 0.2s ease-in'
22
25
  }));
23
26
 
@@ -1,2 +1,2 @@
1
- import type { ChartSeriesTypeConfig } from '@mui/x-charts/internals';
1
+ import { type ChartSeriesTypeConfig } from '@mui/x-charts/internals';
2
2
  export declare const funnelSeriesConfig: ChartSeriesTypeConfig<'funnel'>;