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 b11c365 commit 621fbd3Copy full SHA for 621fbd3
devtools/test_dashboard/buttons.js
@@ -1,5 +1,7 @@
1
/* global Plotly:false Tabs:false */
2
3
+var Lib = require('@src/lib');
4
+
5
var plotlist = document.getElementById('plot-list');
6
var anchor = document.getElementById('embedded-graph');
7
var image = document.getElementById('embedded-image');
@@ -40,9 +42,10 @@ function plotButtons(plots, figDir) {
40
42
anchor.appendChild(gd);
41
43
44
var plot = plots[plotname];
- Plotly.plot(gd, plot.data, plot.layout);
-
45
+ var data = Lib.extendDeep([], plot.data);
46
+ var layout = Lib.extendDeep({}, plot.layout);
47
48
+ Plotly.plot(gd, data, layout);
49
});
50
51
0 commit comments