mui / mui-x

MUI X: Build complex and data-rich applications using a growing list of advanced React components, like the Data Grid, Date and Time Pickers, Charts, and more!
https://mui.com/x/
4.08k stars 1.26k forks source link

[charts][zoom] Support side scrolling to pan #13798

Open tibo-glamarche opened 2 months ago

tibo-glamarche commented 2 months ago

Summary

With the new "Zoom & Pan" feature in charts, I think it would be useful to be able to side scroll to pan the chart.

Search keywords: Zoom, pan, scroll

JCQuintas commented 2 months ago

Hi @tibo-glamarche, thanks for the suggestion 💪

Would you like to elaborate a bit more on what you would like to see regarding side scrolling? How it would behave on different devices, eg: mobile, desktop-mouse, desktop-touchpad?

tibo-glamarche commented 2 months ago
oliviertassinari commented 2 months ago

https://github.com/mui/mui-x/issues/13798#issuecomment-2222653494 makes a lot of sense to me. I got confused because it wouldn't behave this way. I'm making the same arguments in https://github.com/mui/mui-x/issues/12503#issuecomment-2234473490.