Skip to content

Commit eada18f

Browse files
committed
Adjust starting plots
1 parent b602567 commit eada18f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/simple/src/App.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class App extends Component {
2424
// overwritten with a full DOM node that contains data, layout, _fullData,
2525
// _fullLayout etc in handlePlotUpdate()
2626
const graphDiv = {
27-
data: [{type: 'scatter', xsrc: 'col1', ysrc: 'col2'}],
27+
data: [{type: 'scatter', xsrc: 'col1', ysrc: 'col2', mode: 'markers'}],
2828
layout: {title: 'Room readings'},
2929
};
3030

src/PlotlyEditor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ class PlotlyEditor extends Component {
9393
if (this.props.onAddTrace) {
9494
this.props.onAddTrace(payload);
9595
}
96-
graphDiv.data.push({x: [], y: []});
96+
graphDiv.data.push({x: [], y: [], type: 'scatter', mode: 'markers'});
9797
if (this.props.onUpdate) {
9898
this.props.onUpdate();
9999
}

0 commit comments

Comments
 (0)