Uh oh!
There was an error while loading. Please reload this page.
Lasso & rectangular selections - #154
Conversation
alexcjohnson
commented
Dec 31, 2015
@etpinard I mostly don't have internet here in Albania... and the Jasmine tests fail without it because they want to load topo data from the cdn. Is that necessary? |
jackparmer
commented
Dec 31, 2015
Yeeeeeeehaw! This looks slick! |
There was a problem hiding this comment.
Crosshair is a pretty good cursor for what you're doing, it just doesn't disambiguate these from each other or from zoom. Maybe that's OK.
There was a problem hiding this comment.
+1 'crosshair' for select and lasso.
alexcjohnson
commented
Dec 31, 2015
not sure what's going on with the image tests... going to have to wait and look at that tonight. |
There was a problem hiding this comment.
@delekru here (and right above) are where the new icons get referenced, once they're part of the ploticon font.
delekru
commented
Dec 31, 2015
jackparmer
commented
Jan 1, 2016
The one Bokeh uses is pretty decent: |
There was a problem hiding this comment.
Maybe inline these for readability sake. They appear to only be used once each.
alexcjohnson
commented
Jan 6, 2016
OK, I think this is good from my side - all yours @delekru for the icons. If you need help getting them into the ploticon font check with @alexander-daniel |
delekru
commented
Jan 6, 2016
Alright sounds good. I'll ask for some help on that. |
delekru
commented
Jan 6, 2016
@alexcjohnson@etpinard@jackparmer Alright so, for box select, do we all agree to use this icon? As for the lasso icon, there was some issue with buying the icons and royalty fees with the ones that were posted on this thread so instead I just drew one myself. Here's a picture: All good? |
etpinard
commented
Jan 6, 2016
@delekru +1 and +1 for me. |
There was a problem hiding this comment.
Would be a bit more code, but making the MINDRAG a function of the main drag distance would be useful I think. Something with a log scale would be useful. If I 1D drag the width of my screen, it's likely going to fluctuate a whole lot more than if I drag 100px.
There was a problem hiding this comment.
OK, I've made a MINSELECT that's a little bigger than MINDRAG (12 instead of 8). b5c090f
I don't want to make it as big as MINZOOM (or make it an increasing function of distance) because this limits how thin a rectangle you can select. Which is not a problem with MINZOOM because you can always zoom a second time.
alexcjohnson
commented
Jan 6, 2016
@delekru those icons look great! |
etpinard
commented
Jan 6, 2016
@alexcjohnson awesome. 💃 for once we get the icons in. @alexander-daniel@delekru let's do this. |
etpinard
commented
Jan 6, 2016
@alexcjohnson@chriddyp@cpsievert@mdtusz@cldougl@jackparmer Last chance for a review ... |
cldougl
commented
Jan 6, 2016
👍 from me! |
Lasso & rectangular selections
@chriddyp any update on crossfilter style 1d selections? If not, any idea how I can implement in the meantime? |
chriddyp
commented
May 23, 2016
hey @ncammarata ! |
@chriddyp that handles the 2d plot (which I'm using now with lasso), but does it handle the 1d time series use-case that crossfilter handles? |
do I understand correctly that these selection tools break when cross-filtering with more than 1000 points? I'm using the generic cross-filtering example in the docs and when I set the number of points to be higher the update takes ages :( |








At the moment this just supports scatter traces with markers, should be extensible to other types. scatter lines would be cool but I don't see how to do it. scatter text would be an easy addition.
I haven't done any rigorous performance testing (will be interesting to see how many points this can handle) but I was able to draw a pretty crazy lasso and I didn't detect any lag:

We need icons for rectangle and lasso selection.
cc @etpinard@jackparmer