Re:Vega-Altair: Declarative Visualization in Python
by k1next on Monday February 26, 2024 @11:17AM
(#39513045)
Thanks for the feedback! Looking forward to `altair_tiles`. And again, great work, very much appreciate it!
Maybe while you're here: Is there any desire to implement box-zoom (or x-range zoom) at any point in the future?
Re:Vega-Altair: Declarative Visualization in Python
by jmmease on Monday February 26, 2024 @11:28AM
(#39513202)
Box zoom would need to be added to Vega-Lite first, and there has been some discussion around it in https://github.com/vega/vega-lite/issues/4742. Bottom line is that there's nothing blocking its implementation, someone just needs to do the work in Vega-Lite. And once released in Vega-Lite, Altair would pick it up automatically with how we generate the Altair API from the Vega-Lite schema.
Thanks for the feedback and for the kind words! All of these drawbacks are fair, just a couple of comments.
There is an experimental package called altair_tiles that makes is possible to add OSM-style maptile backgrounds to Altair charts. See https://github.com/altair-viz/altair_tiles. This is mostly for static charts at the moment, as it doesn't integrate well with pan/zoom yet.
As you mentioned, VegaFusion is able to remove unused columns in most cases. (And if it doesn't for a particular case, please open an issue!).