Skip to content

Fix bar selection on subplots with rangeslider#3806

Merged
etpinard merged 1 commit into
masterfrom
bar-selection-with-rangeslider
Apr 24, 2019
Merged

Fix bar selection on subplots with rangeslider#3806
etpinard merged 1 commit into
masterfrom
bar-selection-with-rangeslider

Conversation

@etpinard

Copy link
Copy Markdown
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

archmoj commented Apr 24, 2019

Copy link
Copy Markdown
Contributor

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