(Noobie Question) Candlestick Chart Range Adjustment Lag

Hi, I’m trying to get familiar with Plotly but I am running into performance issues when trying to resize the view of my chart. I am working with a csv file with about 39k entries, and have tried resizing my csv to be smaller than the AAPL example here, yet there is lag as I try to resize the window which takes up several seconds. Is there a way I can decrease the time taken like the example, and if I am able to have this solved for this size, is there some upper limit before I become subject to lag again? My goal is to handle data sets with ~1.5m entries each, is this reasonable to expect with Plotly or should I use another technology? I’ve pasted a screenshot of my code below, thanks!