Performance Issues with Scattergl (Plotly.js v2.35.3) for Large Datasets

Hi everyone,

I’m using scattergl with Plotly.js v2.35.3 to visualize large datasets. My dataset consists of a high number of data points, and each point has some associated metadata. However, I’m facing serious performance issues:

  1. The browser becomes unresponsive when loading large datasets.
  2. Zoom operations become nearly impossible as the graph lags or freezes.

I understand that ScatterGL is designed for WebGL acceleration, but I wonder if there are any specific configurations or optimizations I can apply to improve performance. For example:

• Are there recommended settings for glHeapSize or WebGL optimizations?

• Is there an efficient way to downsample data dynamically (e.g., reducing points at high zoom levels)?

• Are there any known performance limitations with scattergl when handling metadata-rich data points?

Any advice or best practices would be greatly appreciated! Thanks in advance.