Skip to content

Rangeslider only shows for the first x-axis in multiple subplots #1250

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
hy9be opened this issue Dec 13, 2016 · 3 comments · Fixed by #1355
Closed

Rangeslider only shows for the first x-axis in multiple subplots #1250

hy9be opened this issue Dec 13, 2016 · 3 comments · Fixed by #1355
Assignees
Labels
feature something new

Comments

@hy9be
Copy link
Contributor

hy9be commented Dec 13, 2016

For example in case here: http://codepen.io/plotly/pen/648434b7b06688fc6b00067592d616b0.

If I add rangeslider: {} to xaxis2, no slider will be rendered.
If I add rangeslider: {} to both xaxis and xaxis2, only the first x-axis will have the slider.

It seems the range slider will not work for some of the axes in subplots.

@hy9be
Copy link
Contributor Author

hy9be commented Dec 13, 2016

@etpinard Is this a bug or an expected behavior? I read the spec for rangeslider here: #279, but did not find a clue.

Thanks!

@etpinard
Copy link
Contributor

It is the expected behavior (for now). Would be a nice addition though.

@etpinard etpinard added the feature something new label Dec 13, 2016
@hy9be
Copy link
Contributor Author

hy9be commented Dec 14, 2016

Thanks!. I would like to try to make a PR for this.

I see that there is a flag named isMainPlot in the drawing function for rangeslider: https://github.com/plotly/plotly.js/blob/master/src/components/rangeslider/draw.js#L334

Not sure if this is key flag for this.

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

Successfully merging a pull request may close this issue.

2 participants