plotly / react-chart-editor

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

Rangeslider.js causing lag when selecting Style->Traces #746

Open tlyon3 opened 5 years ago

tlyon3 commented 5 years ago

There is a large amount of lag happening when clicking on Style->Traces. However, this only occurs if there are currently traces defined in the plot.

I've profiled using Chrome tools and the lag spike is coming from Rangeslider.js. Specifically this line.

I've included the Chrome performance profile if that will help shed some light on the issue.

PlotlyReactChartEditorChromeProfile.txt

dmt0 commented 5 years ago

That's interesting, considering we don't pass any format to the slider...