Thatโs a great question where if I was to tackle would require experimentation by comparing the various ways in rendering the plot and seeing which approach gives the best performance.
For instance, you could compare the rendering of the zoomed-in and zoomed-out versions as 2 distinct figures then comparing that with the version where there is a single figure with 2 sub-plots. Here, you can use streamlit-profiler to benchmark and compare these 2 approaches. More info here: