Thanks to visit codestin.com Credit goes to github.com
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 621fbd3 commit c1a22fbCopy full SHA for c1a22fb
devtools/test_dashboard/index.html
@@ -21,6 +21,8 @@
21
22
<!-- helper functions to manipulate the graph div -->
23
<script>
24
+ var d3 = Plotly.d3;
25
+
26
var Tabs = {
27
getGraph: function() {
28
return document.getElementById('embedded-graph').children[0];
@@ -34,10 +36,15 @@
34
36
anchor.appendChild(graphDiv);
35
37
38
return graphDiv;
39
+ },
40
+ plotMock: function(mockName) {
41
+ var mockURL = '../../test/image/mocks/' + mockName + '.json';
42
43
+ d3.json(mockURL, function(err, fig) {
44
+ Plotly.plot(Tabs.fresh(), fig.data, fig.layout);
45
+ });
46
}
47
};
-
- var d3 = Plotly.d3;
48
</script>
49
50
</body>
0 commit comments