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 f59614c commit 356d0aeCopy full SHA for 356d0ae
src/components/fields/TraceSelector.js
@@ -75,6 +75,12 @@ class TraceSelector extends Component {
75
}
76
77
componentWillReceiveProps(nextProps, nextContext) {
78
+ if (
79
+ !nextProps.container.type ||
80
+ (nextProps.container.type === 'scatter' && !nextProps.container.mode)
81
+ ) {
82
+ this.updatePlot({type: 'scatter', mode: 'lines+markers'});
83
+ }
84
this.setLocals(nextProps, nextContext);
85
86
src/lib/customTraceType.js
@@ -12,6 +12,8 @@ export function plotlyTraceToCustomTrace(trace) {
12
(!trace.mode || trace.mode === 'lines' || trace.mode === 'lines+markers')
13
) {
14
return 'line';
15
+ } else if (!trace.type) {
16
+ return 'line';
17
18
return trace.type;
19
0 commit comments