Altair plots slow?

Hi,

I currently have my app plotting using plotly, due to some.issues with multiple y axis and subplots , I was looking at Altair and with being the defacto library for streamlit , i presume it is more optimised for larger data sets / data science.

However when I plot, by calling a function using a button, it takes a long time (and what looks refreshes the interface?), where plotly and bokeh plot straight away.