File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change 1
1
<template >
2
- <div :id =" id" v-resize:debounce.100 =" onResize" />
2
+ <div
3
+ :id =" id"
4
+ v-resize:debounce.100 =" onResize"
5
+ />
3
6
</template >
4
7
<script >
5
8
import Plotly from " plotly.js" ;
@@ -56,7 +59,8 @@ export default {
56
59
},
57
60
deep: true
58
61
},
59
- layout () {
62
+ layout (layout ) {
63
+ this .innerLayout = { ... layout };
60
64
this .schedule ({ relayout: true });
61
65
}
62
66
},
@@ -92,7 +96,7 @@ export default {
92
96
} = this ;
93
97
this .scheduled = null ;
94
98
if (replot) {
95
- this .react (relayout ? this . layout : this . innerLayout );
99
+ this .react ();
96
100
return ;
97
101
}
98
102
this .relayout (this .layout );
@@ -120,7 +124,7 @@ export default {
120
124
};
121
125
},
122
126
react (layout ) {
123
- Plotly .react (this .$el , this .data , layout , this .options );
127
+ Plotly .react (this .$el , this .data , this . innerLayout , this .options );
124
128
}
125
129
}
126
130
};
You can’t perform that action at this time.
0 commit comments