plotly / plotly/plotly.js

Restyle in a zoomed 3D state sometimes changes the zoom level

Open
#2,181 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug P3
Dominant language
JavaScript
Stars
18.3k
Forks
2k
Avg merge
2d 12h
Merged PRs (30d)
28

Description

When using Scatter3D, sometimes if the plot is restyled while it is in a zoomed state, the zoom level is spontaneously changed; sometimes a little, sometimes a lot.

To reproduce:

  1. Visit this codepen: https://codepen.io/k_sze/pen/WXgNoJ
  2. Zoom the plot a little bit using your mouse wheel; You can zoom in or out;
  3. Open codepen's console and run the restyle() function;
  4. Watch the plot's zoom level get changed spontaneously.

You may need to repeat steps 2 and 3 a few times.

Not sure if it's related to #346 and the fix in #351.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue with the linked CodePen using Scatter3D: zoom with the mouse wheel, then run restyle() from the console. Trace the Scatter3D restyle path and compare the behavior with the related issues #346 and #351. Done means restyling no longer changes the plot's existing zoom level.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
data-visualization
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.