-
Notifications
You must be signed in to change notification settings - Fork 1
/
output.html
43 lines (35 loc) · 1.97 KB
/
output.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<style>
</style>
<div id="fig_el1376822233975560322148700193"></div>
<script>
function mpld3_load_lib(url, callback){
var s = document.createElement('script');
s.src = url;
s.async = true;
s.onreadystatechange = s.onload = callback;
s.onerror = function(){console.warn("failed to load library " + url);};
document.getElementsByTagName("head")[0].appendChild(s);
}
if(typeof(mpld3) !== "undefined" && mpld3._mpld3IsLoaded){
// already loaded: just create the figure
!function(mpld3){
mpld3.draw_figure("fig_el1376822233975560322148700193", {"width": 640.0, "height": 480.0, "axes": [], "data": {}, "id": "el137682223397556032", "plugins": [{"type": "reset"}, {"type": "zoom", "button": true, "enabled": false}, {"type": "boxzoom", "button": true, "enabled": false}]});
}(mpld3);
}else if(typeof define === "function" && define.amd){
// require.js is available: use it to load d3/mpld3
require.config({paths: {d3: "https://d3js.org/d3.v5"}});
require(["d3"], function(d3){
window.d3 = d3;
mpld3_load_lib("https://mpld3.github.io/js/mpld3.v0.5.9.js", function(){
mpld3.draw_figure("fig_el1376822233975560322148700193", {"width": 640.0, "height": 480.0, "axes": [], "data": {}, "id": "el137682223397556032", "plugins": [{"type": "reset"}, {"type": "zoom", "button": true, "enabled": false}, {"type": "boxzoom", "button": true, "enabled": false}]});
});
});
}else{
// require.js not available: dynamically load d3 & mpld3
mpld3_load_lib("https://d3js.org/d3.v5.js", function(){
mpld3_load_lib("https://mpld3.github.io/js/mpld3.v0.5.9.js", function(){
mpld3.draw_figure("fig_el1376822233975560322148700193", {"width": 640.0, "height": 480.0, "axes": [], "data": {}, "id": "el137682223397556032", "plugins": [{"type": "reset"}, {"type": "zoom", "button": true, "enabled": false}, {"type": "boxzoom", "button": true, "enabled": false}]});
})
});
}
</script>