altair chart too slow with 50000 rows in jupyter
Altair 5.2 in JupyterLab, plotting 50,000 rows as a scatter. It takes ~15 seconds to display and panning/zooming is sluggish. I know Altair is built on Vega-Lite and there's a max rows default of 5000, but I raised it with alt.data_transformers.enable('default', max_rows=None). The chart embeds the whole dataset as JSON in the notebook, which I think is the problem. Is there a way to use a data server or send the data separately? Also would switching to the 'json' or 'vegafusion' transformer help?
4 replies