-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Figure margin edit makes scrollZoom glitch / lag #4223
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Labels
Comments
Facing a similar issue which seems to be more noticeable when running generating graphs in a Jupyter notebook. |
same issue |
Have the same problem - plots go crazy when trying to zoom on them while controlling for margins. |
AlexChaloner
added a commit
to AlexChaloner/agile_predict
that referenced
this issue
Dec 26, 2024
Set scrollZoom to true in the plotly graphs, which allows scroll to zoom on desktop and two-finger scroll on mobile. This commit also removes the margins, as a bug with margin+scrollzoom makes the scrollzoom laggy (see e.g. plotly/plotly.py#4223)
AlexChaloner
added a commit
to AlexChaloner/agile_predict
that referenced
this issue
Dec 26, 2024
Set scrollZoom to true in the plotly graphs, which allows scroll to zoom on desktop and two-finger scroll on mobile. This commit also removes the margins, as a bug with margin+scrollzoom makes the scrollzoom laggy (see e.g. plotly/plotly.py#4223)
AlexChaloner
added a commit
to AlexChaloner/agile_predict
that referenced
this issue
Dec 26, 2024
Set scrollZoom to true in the plotly graphs, which allows scroll to zoom on desktop and two-finger scroll on mobile. This commit also removes the margins, as a bug with margin+scrollzoom makes the scrollzoom laggy (see e.g. plotly/plotly.py#4223)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Updating layout to change margin size works well
Enabling scrollzoom works well
Doing both at the same time gives you an interactive plot that is very laggy to scroll zoom in
Seems worse with more points
Seems related to plotly/plotly.js#3729
I encountered this issue on Dash first, but realised it exists in pure Plotly as well
Plotly v 5.14.1 on Python 3.9.13
Minimal example (remove update_layout line to see behavior improve)
The text was updated successfully, but these errors were encountered: