✊🏿 Black Lives Matter. Please consider donating to Black Girls Code today.
⚾️ It's finally Baseball season! Root for the home team... & Register for our Sports Analytics Webinar!

Candlestick plot slow compared to line plot

Hi

So Im wondering why a candlestick-plot is much slower than a normal line plot when zooming in, using the chart slider etc.

I create the plots in Rstudio and have them send to Chart Studio which works great. The time of creating both graphs is the same. But once created its almost unbearbale to scroll through the candlestick plot where the line plot is really smooth.

Here you can see the plots:

Candlesticks: https://chart-studio.plotly.com/~keepbtcsimple/11/
Line: https://chart-studio.plotly.com/~keepbtcsimple/9/

Both plots conists of 3800 rows where the candlestick plot uses 5 columns (time (y), open, high, low and close prices(x)) and the line plot just 2 (time (y) and price(x))

I already tried using toWebGL() and partial_bundle() and some CDN setting via https://www.timlrx.com/2019/12/17/speeding-up-r-plotly-webapps-r-x-javascript-part-i/, however the candelstick plot remains slow

Any advice would be great thx

Anyone? would be great