Skip to content
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

Fix bar selection on subplots with rangeslider #3806

Merged
merged 1 commit into from
Apr 24, 2019

Conversation

etpinard
Copy link
Contributor

fixes #3795

before: https://codepen.io/mbkupfer/pen/JVZJzR
after: https://codepen.io/etpinard/pen/QPJLKR

In brief, stashing "pixel" values in the calcdata is generally a bad idea, as "main" and "rangePlot" data-bounds reference the same gd.calcdata items but have in general different x/y axis ranges. In other words, "main" and "rangePlot" have the same c values, but different p values.

@plotly/plotly_js I'd like to slip this one in tomorrow's v1.47.4

... instead of during Bar.plot, so that "main" and "rangePlot"
    values don't conflict
@etpinard etpinard added bug something broken status: reviewable labels Apr 24, 2019
@archmoj
Copy link
Contributor

archmoj commented Apr 24, 2019

Excellent fix.
💃

@etpinard etpinard merged commit 0c669de into master Apr 24, 2019
@etpinard etpinard deleted the bar-selection-with-rangeslider branch April 24, 2019 17:35
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

Successfully merging this pull request may close these issues.

Rangeslider and dragmode selection not in sync
2 participants