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
If the range of a plot with a rangeslider is changed using Plotly.relayout(gd, {'xaxis.range': [3,9]}); or Plotly.relayout(gd, 'xaxis.range', [3,9]);, the rangeslider doesn't update to reflect the changed range.
However, when using Plotly.relayout(gd, {'xaxis.range[0]': 3, 'xaxis.range[1]': 9});, both the main plot and the rangeslider get updated correctly.
Interesting bug. This is likely to do with this section - the way updates are handled as strings is very imperfect at the moment and could benefit from some work to make it more robust and generalized (hopefully using Lib.objectFromPath.
Thanks for reporting though and we'll likely have a fix later this week for the next release.
If the range of a plot with a rangeslider is changed using
Plotly.relayout(gd, {'xaxis.range': [3,9]});
orPlotly.relayout(gd, 'xaxis.range', [3,9]);
, the rangeslider doesn't update to reflect the changed range.However, when using
Plotly.relayout(gd, {'xaxis.range[0]': 3, 'xaxis.range[1]': 9});
, both the main plot and the rangeslider get updated correctly.Reproducible example on codepen
The text was updated successfully, but these errors were encountered: