Skip to content

[charts] Only block scroll on mobile on scatter chart? #16676

Open
@oliviertassinari

Description

@oliviertassinari

Summary

When scrolling on https://next.mui.com/x/react-charts/zoom-and-pan/ on mobile, it behaves like on https://npm-stat.com/charts.html?package=@mui/x-charts (built with recharts). Once a user scrolls the page down, it's possible to be stuck:

Screen.Recording.2025-02-21.at.01.22.01.mov

I have researched this a bit, I see nobody complaining about this on echarts or recharts GitHub issues. I guess people have to make sure to leave enough space on the side npm-charts didn't, so their design doesn't work.

However:

  • charts.js, never blocks the scroll on mobile. This already feels better, in the most common cases (definitely not always).
  • highcharts doesn't block the scroll by default, unless you are on a scatter plot. This feels like the best UX I have seen so far. What if we were doing this?

Examples

No response

Motivation

No response

Search keywords: -

Metadata

Metadata

Assignees

No one assigned

    Labels

    component: chartsThis is the name of the generic UI component, not the React module!designThis is about UI or UX design, please involve a designerenhancementThis is not a bug, nor a new featuremobileTargets mobile platform

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions