plotly / plotly/react-plotly.js
React createRef() current.el._fullLayout.yaxis.range - wrong values on render
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 1.1k
- Forks
- 138
- Avg merge
- 3d 2h
- Merged PRs (30d)
- 4
Description
Hi Plotly Team,
I'm trying to use createRef() in react for getting the current plotly-chart yaxis-range, but when the focus changes (e.g. open a modal/popup), the plotly-chart component starts giving wrong values of [-1, 4] (always same).
The current.el._fullLayout.yaxis.range object gives wrong axis values, which means it's value is updated somewhere, Is this a problem with react-plotly.js library?

Thanks for your help :)
Regards,
Adnan
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
Reproduce the behavior using React createRef() and the plotly-chart element's current.el._fullLayout.yaxis.range value. Check what changes when focus moves to a modal or popup, and confirm whether the reported [-1, 4] range is incorrect after the chart updates.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, react
- Domain
- data-visualization, frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100