You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Possibly a bug, I get differently structured but deceptively similar parameters from the onRelayout event.
In the instance that onRelayout is triggered by a change to a rangeslider the event parameter is an object with 1 array called "xaxis.range": eventParameter : { xaxis.range : [xmin, xmax] }
In the instance that onRelayout is triggered by a scroll zoom action the event parameter is an object with 2 properties that are named in way that makes them appear like an array, but are not: eventParameter : { xaxis.range[0] : xmin, xaxis.range[1] : xmax}
I'm not sure if this is by design or by accident, but it broke my code because I was doing a check like so: if( typeof eventParameter["xaxis.range"] === 'undefined') { /code/ }
In case it is relevant, part of the reason that I am only getting x axis values is because I have the y axes property 'fixedrange' set to true, and 'scrollZoom' set to true.
The text was updated successfully, but these errors were encountered:
Possibly a bug, I get differently structured but deceptively similar parameters from the onRelayout event.
In the instance that onRelayout is triggered by a change to a rangeslider the event parameter is an object with 1 array called "xaxis.range":
eventParameter : { xaxis.range : [xmin, xmax] }
In the instance that onRelayout is triggered by a scroll zoom action the event parameter is an object with 2 properties that are named in way that makes them appear like an array, but are not:
eventParameter : { xaxis.range[0] : xmin, xaxis.range[1] : xmax}
I'm not sure if this is by design or by accident, but it broke my code because I was doing a check like so:
if( typeof eventParameter["xaxis.range"] === 'undefined') { /code/ }
In case it is relevant, part of the reason that I am only getting x axis values is because I have the y axes property 'fixedrange' set to true, and 'scrollZoom' set to true.
The text was updated successfully, but these errors were encountered: