We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc35be0 commit ea2d775Copy full SHA for ea2d775
src/EditorControls.js
@@ -119,11 +119,7 @@ class EditorControls extends Component {
119
this.props.beforeAddTrace(payload);
120
}
121
122
- graphDiv.data.push(
123
- this.props.useAsDefaultTrace
124
- ? this.props.useAsDefaultTrace
125
- : {type: 'scatter', mode: 'markers'}
126
- );
+ graphDiv.data.push(this.props.useAsDefaultTrace);
127
128
if (this.props.afterAddTrace) {
129
this.props.afterAddTrace(payload);
@@ -315,6 +311,7 @@ EditorControls.defaultProps = {
315
311
traces: _ => traceTypes(_),
316
312
complex: true,
317
313
},
314
+ useAsDefaultTrace: {type: 'scatter', mode: 'markers'},
318
};
319
320
EditorControls.childContextTypes = {
0 commit comments