5 ms·
I like Vega-Lite and I used it in various small projects over the past few years. It's really easy to work with. That said, I hit performance issues very quick
by TeMPOraL 6y ago
I like Vega-Lite and I used it in various small projects over the past few years. It's really easy to work with.
That said, I hit performance issues very quickly, when trying to do interactive data visualization - and by interactive, I mean changing the data, not chart styling. That may be because every time data changes, I have to repackage it into Vega-Lite JSON description and rerender the chart. I wonder if there's a better way of doing it? A partial update? I couldn't find anything in the docs last time I tried.
Related: what would be the best alternative in JS, short of writing my own d3/canvas code, for cases where I have a structurally fixed (but possibly complex) chart, but I need to hit it with 100k or 1M data points and have it redraw under 100ms?
- domoritz 6y agoVega-Lite is built on Vega, which is fully reactive and can do partial updates. In order to use it, you need to update the data via the Vega view api. Check out https://vega.github.io/vega/docs/api/view/#view_data https://vega.github.io/vega/docs/api/view/#view_data. One other piece of advice I have it to reduce the number of marks you need to draw with aggregation or sampling. I used this approach in https://github.com/uwdata/falcon https://github.com/uwdata/falcon to visualize billions of points and interact with them in real time.
- TeMPOraL 6y agoThank you! And thanks for linking to Falcon, I'll check it out. The demos are similar to the thing I was trying to achieve, and show the performance I dreamed of.