plotly / plotly/react-plotly.js
Plotly selection state is lost when re-rendering.
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 1.1k
- Forks
- 138
- Avg merge
- 3d 2h
- Merged PRs (30d)
- 4
Description
This codepen shows the issue: https://codepen.io/dylanvann/pen/OYaedz
The onHover handler forces a re-render.
Whenever the Plot is re-rendered some state is lost. In particular the selection is lost.
How it behaves when re-rendering (selection box is not maintained):

How it behaves when not re-rendering (selection box is maintained):

Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the CodePen reproduction and trace the onHover-triggered re-render in the react-plotly.js component. Verify how Plotly selection state is handled across re-renders, and consider the work done when the selection box remains visible after hovering causes a re-render.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, react
- Domain
- data-visualization, frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100