I want st.spinner() to keep spinning until an Altair chart is fully rendered. st.altair_chart() takes less than one second to complete at which point the spinner stops. However, there’s a four second delay until the chart appears. The delay is confusing to the user (and me too).
Questions:
- Is it normal to take 4 seconds for a chart to appear after altair_chart() completes? Seems like a simple bar chart that shouldn’t take that long on a high performance computer. Is such a delay due to page rendering time?
- How can I make the spinner continue to spin until the chart appears? Is there a streamlit compatible way to delay until page is loaded?