vega / vega-lite

A concise grammar of interactive graphics, built on Vega.
https://vega.github.io/vega-lite/
BSD 3-Clause "New" or "Revised" License
4.7k stars 618 forks source link

How does lasso selection fits into our interaction grammar? #6546

Open kanitw opened 4 years ago

jwoLondon commented 4 years ago

One observation. The ability to provide a selection that is not constrained to Cartesian bounds also opens up the possibility of interval selections over cartographically projected data (which I'd love to see). It would be great if whatever grammar is used for lasso selections, might also accommodate non-Cartesian geo selections too.

jheer commented 4 years ago

@arvind and I have had similar conversations in the past. Prompted by his request, Vega's scenegraph already supports intersection testing. For now it is limited to rectangular "rubber band" selections, but nevertheless ones defined in pixel space without reference to any scale inversions. Geographic maps were a major motivating use case. So the good news is that we have some basic infrastructure in place (even if not for more general polygon selections).

That said, I can't speak to how VL will incorporate this or when, but I believe Arvind has some thoughts on that. The basic idea (I think) is to support an interval selection defined over the pixel domain.

metasoarous commented 4 years ago

Would just like to voice my support for this as I would find it very handy for being able to tease out patterns in some datasets I'm working with.

Thanks as always for all your work!