plotly / plotly/plotly.js

problem with 3d camera and uirevision

Open
#5,050 3 comments 3 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

In this pen https://codepen.io/nicolaskruchten/pen/BajgePw?editors=0010

case 1: good

  1. newPlot 0
  2. react 1 (this just changes the uirevision and camera angle, so far so good)
  3. react 2 (this just changes the data, good)

case 2: good

  1. newPlot 1
  2. rotate the camera a bit
  3. react 2 (just changes the data and leaves the camera angle alone, good)

case 3: bad (both together)

  1. newPlot 0
  2. react 1
  3. rotate the scene a bit
  4. react 2 (the camera angle is wrong now!)

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 three cases in the linked CodePen, focusing on newPlot, react, uirevision, and the 3D camera state. Trace how react handles simultaneous data and camera-related updates; done means the camera angle remains correct in case 3 while cases 1 and 2 continue to work.

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.