plotly / react-chart-editor

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

Default fold state should be customizable #991

Open perdodi opened 4 years ago

perdodi commented 4 years ago

Users might be overwhelmed with the many features for first sight. Better to make fold state customizable / collapsed, where there are many, and open the first only.

E.g. in src/components/containers/PlotlyPanel.js:

const newFoldStates = new Array(numFolds).fill(this.props.collapseByDefault); // instead of merely .fill(false)