Skip to content

[charts] Fix use of deprecated API in docs - #22469

Merged
JCQuintas merged 2 commits into
mui:masterfrom
oliviertassinari:fix-deprecated-api-use-docs
May 15, 2026
Merged

JCQuintas merged 2 commits into
mui:masterfrom
oliviertassinari:fix-deprecated-api-use-docs

Conversation

@oliviertassinari

@oliviertassinari oliviertassinari commented May 15, 2026 •

Copy link
Copy Markdown
Member

This is a continuation of #21553. We have deprecated ChartZoomSlider for ChartsZoomSlider in v8 and in v9.

People expect the docs of the major version they use to run without any deprecations. It's not the case right now. For example in https://mui.com/x/react-charts/zoom-and-pan/#composition, we get:

SCR-20260515-popw

Since it's faster to open a PR than to open an issue (when I only start them 😁), and it's a regression of the docs experience (regressions take priority over the rest), here is a PR.


I have tested npx @mui/x-codemod@latest v9.0.0/charts/rename-chart-zoom-slider . It migrates the code correctly, so it seems we are good on this front.


There might be an opportunity to fix this at the root: mui/mui-public#1467

@oliviertassinari oliviertassinari added docs Improvements or additions to the documentation. scope: charts Changes related to the charts. labels May 15, 2026
@oliviertassinari
oliviertassinari marked this pull request as ready for review May 15, 2026 15:49
@oliviertassinari oliviertassinari added the type: regression A bug, but worse, it used to behave as expected. label May 15, 2026
@code-infra-dashboard

code-infra-dashboard Bot commented May 15, 2026 •

Copy link
Copy Markdown

Deploy preview

https://deploy-preview-22469--material-ui-x.netlify.app/

Bundle size

Bundle Parsed size Gzip size
@mui/x-data-grid 0B(0.00%) 0B(0.00%)
@mui/x-data-grid-pro 0B(0.00%) 0B(0.00%)
@mui/x-data-grid-premium 0B(0.00%) 0B(0.00%)
@mui/x-charts 0B(0.00%) 0B(0.00%)
@mui/x-charts-pro 0B(0.00%) 0B(0.00%)
@mui/x-charts-premium 0B(0.00%) 0B(0.00%)
@mui/x-date-pickers 0B(0.00%) 0B(0.00%)
@mui/x-date-pickers-pro 0B(0.00%) 0B(0.00%)
@mui/x-tree-view 0B(0.00%) 0B(0.00%)
@mui/x-tree-view-pro 0B(0.00%) 0B(0.00%)
@mui/x-license 0B(0.00%) 0B(0.00%)

Details of bundle changes


Check out the code infra dashboard for more information about this PR.

@oliviertassinari
oliviertassinari force-pushed the fix-deprecated-api-use-docs branch from d3e788d to 2d31ca5 Compare May 15, 2026 15:56
@JCQuintas
JCQuintas enabled auto-merge (squash) May 15, 2026 16:10
@JCQuintas
JCQuintas merged commit d9c7b7a into mui:master May 15, 2026
10 checks passed
@oliviertassinari
oliviertassinari deleted the fix-deprecated-api-use-docs branch May 15, 2026 16:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to the documentation. scope: charts Changes related to the charts. type: regression A bug, but worse, it used to behave as expected.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants