Skip to content

Commit 7faae6e

Browse files
Using layout
1 parent 0a9d138 commit 7faae6e

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/components/Ploty.vue

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,11 @@ export default {
2323
},
2424
data() {
2525
return {
26-
internalLayout: { ...this.layout },
2726
scheduled: null
2827
};
2928
},
3029
mounted() {
31-
Plotly.newPlot(this.$el, this.data, this.internalLayout, this.$attrs);
30+
Plotly.newPlot(this.$el, this.data, this.layout, this.$attrs);
3231
events.forEach(evt => {
3332
this.$el.on(evt.completeName, evt.handler(this));
3433
});
@@ -97,10 +96,10 @@ export default {
9796
};
9897
},
9998
plot() {
100-
return Plotly.plot(this.$el, this.data, this.internalLayout, this.$attrs);
99+
return Plotly.plot(this.$el, this.data, this.layout, this.$attrs);
101100
},
102101
newPlot() {
103-
Plotly.react(this.$el, this.data, this.internalLayout, this.$attrs);
102+
Plotly.react(this.$el, this.data, this.layout, this.$attrs);
104103
}
105104
}
106105
};

0 commit comments

Comments
 (0)