react-plotly.js icon indicating copy to clipboard operation
react-plotly.js copied to clipboard

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

Open AdnanBoota opened this issue 6 years ago • 0 comments

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

AdnanBoota avatar Oct 28 '19 08:10 AdnanBoota