Skip to content

rangeslider doesn't update if range is changed using array #557

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
jdugge opened this issue May 21, 2016 · 1 comment
Closed

rangeslider doesn't update if range is changed using array #557

jdugge opened this issue May 21, 2016 · 1 comment
Assignees
Labels
bug something broken

Comments

@jdugge
Copy link
Contributor

jdugge commented May 21, 2016

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.

Reproducible example on codepen

@mdtusz mdtusz added the bug something broken label May 23, 2016
@mdtusz mdtusz self-assigned this May 23, 2016
@mdtusz
Copy link
Contributor

mdtusz commented May 23, 2016

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something broken
Projects
None yet
Development

No branches or pull requests

2 participants