plotly / react-chart-editor

Customizable React-based editor panel for Plotly charts
https://plotly.github.io/react-chart-editor/
MIT License
504 stars 105 forks source link

Enable webgl for scatter by default? #1141

Closed oeway closed 3 years ago

oeway commented 3 years ago

Hi, thanks for the nice tool! I really like it. However, when loading data with ~80k points, the scatter plots becomes very slow, and I can barely move my mouse across the plot. I figured the reason is that plotly uses SVG backend by default, once I switch ed to webgl, everything becomes very smooth.

So I am wondering whether it make sense to just switch it on by default? Or at least expose an option for application use the component to switch it on by default?

oeway commented 3 years ago

Just figured out there is already an option for that glByDefault.

<PlotlyEditor
          ...
          glByDefault
          ...
        >

</PlotlyEditor>