plotly / plotly/react-plotly.js

React createRef() current.el._fullLayout.yaxis.range - wrong values on render

Open
#163 0 comments 0 reactions 0 assignees View on GitHub

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?

image

Thanks for your help :)

Regards,
Adnan

Contributor guide

No contributing guide indexed for this repository

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.