My goal: Disable scrolling or zooming/panning of graphs.
Issue: Retool's native chart can be dragged to any direction (and zoom in and out in tablet/mobile). I don't want the end-users to zoom in/out or drag the chart especially that they would most likely view this on a tablet.
Steps I've taken to troubleshoot:
I checked the component inspector and there's no settings for me to disable this
I've also tried to add a CSS override on this and nothing seems to work (e.g. pointer-events: none; touche-action: none; overflow: hidden;)
Additional info: Cloud
If this is not natively supported, is there any workaround here? It's not a good UX for our use-case.
Hey @jocen, welcome back to the forum!
With Retool’s Native Chart, there’s no way right now to disable zooming or panning. Unlike the Legacy Chart, it doesn’t let you turn off drag or zoom with settings.
If you want to lock the chart interactions, the easiest way is to switch to the Chart (Legacy) component. In Legacy Chart, you can disable zooming and panning by setting "dragmode": false and "fixedrange": true on both the x-axis and y-axis in the layout settings.