-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathd3test.html
43 lines (35 loc) · 13.2 KB
/
d3test.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_el141544723900321356426190"></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_el141544723900321356426190", {"axes": [{"xlim": [1.0, 8.0], "yscale": "linear", "axesbg": "#FFFFFF", "texts": [], "zoomable": true, "images": [], "xdomain": [1.0, 8.0], "ylim": [0.0, 4.0], "paths": [{"edgecolor": "#000000", "facecolor": "#0000FF", "edgewidth": 1.0, "pathcodes": ["M", "L", "L", "L", "Z"], "yindex": 1, "coordinates": "data", "dasharray": "10,0", "zorder": 1, "alpha": 1, "xindex": 0, "data": "data01", "id": "el14154472334160"}, {"edgecolor": "#000000", "facecolor": "#0000FF", "edgewidth": 1.0, "pathcodes": ["M", "L", "L", "L", "Z"], "yindex": 1, "coordinates": "data", "dasharray": "10,0", "zorder": 1, "alpha": 1, "xindex": 0, "data": "data02", "id": "el14154470905104"}, {"edgecolor": "#000000", "facecolor": "#0000FF", "edgewidth": 1.0, "pathcodes": ["M", "L", "L", "L", "Z"], "yindex": 1, "coordinates": "data", "dasharray": "10,0", "zorder": 1, "alpha": 1, "xindex": 0, "data": "data03", "id": "el14154470906448"}, {"edgecolor": "#000000", "facecolor": "#0000FF", "edgewidth": 1.0, "pathcodes": ["M", "L", "L", "L", "Z"], "yindex": 1, "coordinates": "data", "dasharray": "10,0", "zorder": 1, "alpha": 1, "xindex": 0, "data": "data04", "id": "el14154436960656"}, {"edgecolor": "#000000", "facecolor": "#0000FF", "edgewidth": 1.0, "pathcodes": ["M", "L", "L", "L", "Z"], "yindex": 1, "coordinates": "data", "dasharray": "10,0", "zorder": 1, "alpha": 1, "xindex": 2, "data": "data04", "id": "el14154472792848"}, {"edgecolor": "#000000", "facecolor": "#0000FF", "edgewidth": 1.0, "pathcodes": ["M", "L", "L", "L", "Z"], "yindex": 1, "coordinates": "data", "dasharray": "10,0", "zorder": 1, "alpha": 1, "xindex": 0, "data": "data05", "id": "el14154471148880"}, {"edgecolor": "#000000", "facecolor": "#0000FF", "edgewidth": 1.0, "pathcodes": ["M", "L", "L", "L", "Z"], "yindex": 1, "coordinates": "data", "dasharray": "10,0", "zorder": 1, "alpha": 1, "xindex": 3, "data": "data04", "id": "el14154471152464"}, {"edgecolor": "#000000", "facecolor": "#0000FF", "edgewidth": 1.0, "pathcodes": ["M", "L", "L", "L", "Z"], "yindex": 1, "coordinates": "data", "dasharray": "10,0", "zorder": 1, "alpha": 1, "xindex": 2, "data": "data05", "id": "el14154473658960"}, {"edgecolor": "#000000", "facecolor": "#0000FF", "edgewidth": 1.0, "pathcodes": ["M", "L", "L", "L", "Z"], "yindex": 1, "coordinates": "data", "dasharray": "10,0", "zorder": 1, "alpha": 1, "xindex": 4, "data": "data04", "id": "el14154473657168"}, {"edgecolor": "#000000", "facecolor": "#0000FF", "edgewidth": 1.0, "pathcodes": ["M", "L", "L", "L", "Z"], "yindex": 1, "coordinates": "data", "dasharray": "10,0", "zorder": 1, "alpha": 1, "xindex": 3, "data": "data05", "id": "el14154470986192"}], "sharey": [], "sharex": [], "axesbgalpha": null, "axes": [{"scale": "linear", "tickformat": null, "grid": {"gridOn": false}, "fontsize": 10.0, "position": "bottom", "nticks": 8, "tickvalues": null}, {"scale": "linear", "tickformat": null, "grid": {"gridOn": false}, "fontsize": 10.0, "position": "left", "nticks": 9, "tickvalues": null}], "lines": [], "markers": [], "id": "el14154472480400", "ydomain": [0.0, 4.0], "collections": [], "xscale": "linear", "bbox": [0.125, 0.125, 0.77500000000000002, 0.77500000000000002]}], "height": 320.0, "width": 480.0, "plugins": [{"type": "reset"}, {"enabled": false, "button": true, "type": "zoom"}, {"enabled": false, "button": true, "type": "boxzoom"}], "data": {"data04": [[3.0999999999999996, 0.0, 3.8000000000000003, 5.199999999999999, 6.6], [3.8, 0.0, 4.5, 5.8999999999999995, 7.3], [3.8, 0.0, 4.5, 5.8999999999999995, 7.3], [3.0999999999999996, 0.0, 3.8000000000000003, 5.199999999999999, 6.6]], "data05": [[4.5, 0.0, 5.9, 7.300000000000001], [5.199999999999999, 0.0, 6.6000000000000005, 8.0], [5.199999999999999, 1.0, 6.6000000000000005, 8.0], [4.5, 1.0, 5.9, 7.300000000000001]], "data02": [[1.6999999999999997, 0.0], [2.3999999999999995, 0.0], [2.3999999999999995, 3.0], [1.6999999999999997, 3.0]], "data03": [[2.4000000000000004, 0.0], [3.1, 0.0], [3.1, 2.0], [2.4000000000000004, 2.0]], "data01": [[1.0, 0.0], [1.7, 0.0], [1.7, 4.0], [1.0, 4.0]]}, "id": "el14154472390032"});
}(mpld3);
}else if(typeof define === "function" && define.amd){
// require.js is available: use it to load d3/mpld3
require.config({paths: {d3: "https://mpld3.github.io/js/d3.v3.min"}});
require(["d3"], function(d3){
window.d3 = d3;
mpld3_load_lib("https://mpld3.github.io/js/mpld3.v0.2.js", function(){
mpld3.draw_figure("fig_el141544723900321356426190", {"axes": [{"xlim": [1.0, 8.0], "yscale": "linear", "axesbg": "#FFFFFF", "texts": [], "zoomable": true, "images": [], "xdomain": [1.0, 8.0], "ylim": [0.0, 4.0], "paths": [{"edgecolor": "#000000", "facecolor": "#0000FF", "edgewidth": 1.0, "pathcodes": ["M", "L", "L", "L", "Z"], "yindex": 1, "coordinates": "data", "dasharray": "10,0", "zorder": 1, "alpha": 1, "xindex": 0, "data": "data01", "id": "el14154472334160"}, {"edgecolor": "#000000", "facecolor": "#0000FF", "edgewidth": 1.0, "pathcodes": ["M", "L", "L", "L", "Z"], "yindex": 1, "coordinates": "data", "dasharray": "10,0", "zorder": 1, "alpha": 1, "xindex": 0, "data": "data02", "id": "el14154470905104"}, {"edgecolor": "#000000", "facecolor": "#0000FF", "edgewidth": 1.0, "pathcodes": ["M", "L", "L", "L", "Z"], "yindex": 1, "coordinates": "data", "dasharray": "10,0", "zorder": 1, "alpha": 1, "xindex": 0, "data": "data03", "id": "el14154470906448"}, {"edgecolor": "#000000", "facecolor": "#0000FF", "edgewidth": 1.0, "pathcodes": ["M", "L", "L", "L", "Z"], "yindex": 1, "coordinates": "data", "dasharray": "10,0", "zorder": 1, "alpha": 1, "xindex": 0, "data": "data04", "id": "el14154436960656"}, {"edgecolor": "#000000", "facecolor": "#0000FF", "edgewidth": 1.0, "pathcodes": ["M", "L", "L", "L", "Z"], "yindex": 1, "coordinates": "data", "dasharray": "10,0", "zorder": 1, "alpha": 1, "xindex": 2, "data": "data04", "id": "el14154472792848"}, {"edgecolor": "#000000", "facecolor": "#0000FF", "edgewidth": 1.0, "pathcodes": ["M", "L", "L", "L", "Z"], "yindex": 1, "coordinates": "data", "dasharray": "10,0", "zorder": 1, "alpha": 1, "xindex": 0, "data": "data05", "id": "el14154471148880"}, {"edgecolor": "#000000", "facecolor": "#0000FF", "edgewidth": 1.0, "pathcodes": ["M", "L", "L", "L", "Z"], "yindex": 1, "coordinates": "data", "dasharray": "10,0", "zorder": 1, "alpha": 1, "xindex": 3, "data": "data04", "id": "el14154471152464"}, {"edgecolor": "#000000", "facecolor": "#0000FF", "edgewidth": 1.0, "pathcodes": ["M", "L", "L", "L", "Z"], "yindex": 1, "coordinates": "data", "dasharray": "10,0", "zorder": 1, "alpha": 1, "xindex": 2, "data": "data05", "id": "el14154473658960"}, {"edgecolor": "#000000", "facecolor": "#0000FF", "edgewidth": 1.0, "pathcodes": ["M", "L", "L", "L", "Z"], "yindex": 1, "coordinates": "data", "dasharray": "10,0", "zorder": 1, "alpha": 1, "xindex": 4, "data": "data04", "id": "el14154473657168"}, {"edgecolor": "#000000", "facecolor": "#0000FF", "edgewidth": 1.0, "pathcodes": ["M", "L", "L", "L", "Z"], "yindex": 1, "coordinates": "data", "dasharray": "10,0", "zorder": 1, "alpha": 1, "xindex": 3, "data": "data05", "id": "el14154470986192"}], "sharey": [], "sharex": [], "axesbgalpha": null, "axes": [{"scale": "linear", "tickformat": null, "grid": {"gridOn": false}, "fontsize": 10.0, "position": "bottom", "nticks": 8, "tickvalues": null}, {"scale": "linear", "tickformat": null, "grid": {"gridOn": false}, "fontsize": 10.0, "position": "left", "nticks": 9, "tickvalues": null}], "lines": [], "markers": [], "id": "el14154472480400", "ydomain": [0.0, 4.0], "collections": [], "xscale": "linear", "bbox": [0.125, 0.125, 0.77500000000000002, 0.77500000000000002]}], "height": 320.0, "width": 480.0, "plugins": [{"type": "reset"}, {"enabled": false, "button": true, "type": "zoom"}, {"enabled": false, "button": true, "type": "boxzoom"}], "data": {"data04": [[3.0999999999999996, 0.0, 3.8000000000000003, 5.199999999999999, 6.6], [3.8, 0.0, 4.5, 5.8999999999999995, 7.3], [3.8, 0.0, 4.5, 5.8999999999999995, 7.3], [3.0999999999999996, 0.0, 3.8000000000000003, 5.199999999999999, 6.6]], "data05": [[4.5, 0.0, 5.9, 7.300000000000001], [5.199999999999999, 0.0, 6.6000000000000005, 8.0], [5.199999999999999, 1.0, 6.6000000000000005, 8.0], [4.5, 1.0, 5.9, 7.300000000000001]], "data02": [[1.6999999999999997, 0.0], [2.3999999999999995, 0.0], [2.3999999999999995, 3.0], [1.6999999999999997, 3.0]], "data03": [[2.4000000000000004, 0.0], [3.1, 0.0], [3.1, 2.0], [2.4000000000000004, 2.0]], "data01": [[1.0, 0.0], [1.7, 0.0], [1.7, 4.0], [1.0, 4.0]]}, "id": "el14154472390032"});
});
});
}else{
// require.js not available: dynamically load d3 & mpld3
mpld3_load_lib("https://mpld3.github.io/js/d3.v3.min.js", function(){
mpld3_load_lib("https://mpld3.github.io/js/mpld3.v0.2.js", function(){
mpld3.draw_figure("fig_el141544723900321356426190", {"axes": [{"xlim": [1.0, 8.0], "yscale": "linear", "axesbg": "#FFFFFF", "texts": [], "zoomable": true, "images": [], "xdomain": [1.0, 8.0], "ylim": [0.0, 4.0], "paths": [{"edgecolor": "#000000", "facecolor": "#0000FF", "edgewidth": 1.0, "pathcodes": ["M", "L", "L", "L", "Z"], "yindex": 1, "coordinates": "data", "dasharray": "10,0", "zorder": 1, "alpha": 1, "xindex": 0, "data": "data01", "id": "el14154472334160"}, {"edgecolor": "#000000", "facecolor": "#0000FF", "edgewidth": 1.0, "pathcodes": ["M", "L", "L", "L", "Z"], "yindex": 1, "coordinates": "data", "dasharray": "10,0", "zorder": 1, "alpha": 1, "xindex": 0, "data": "data02", "id": "el14154470905104"}, {"edgecolor": "#000000", "facecolor": "#0000FF", "edgewidth": 1.0, "pathcodes": ["M", "L", "L", "L", "Z"], "yindex": 1, "coordinates": "data", "dasharray": "10,0", "zorder": 1, "alpha": 1, "xindex": 0, "data": "data03", "id": "el14154470906448"}, {"edgecolor": "#000000", "facecolor": "#0000FF", "edgewidth": 1.0, "pathcodes": ["M", "L", "L", "L", "Z"], "yindex": 1, "coordinates": "data", "dasharray": "10,0", "zorder": 1, "alpha": 1, "xindex": 0, "data": "data04", "id": "el14154436960656"}, {"edgecolor": "#000000", "facecolor": "#0000FF", "edgewidth": 1.0, "pathcodes": ["M", "L", "L", "L", "Z"], "yindex": 1, "coordinates": "data", "dasharray": "10,0", "zorder": 1, "alpha": 1, "xindex": 2, "data": "data04", "id": "el14154472792848"}, {"edgecolor": "#000000", "facecolor": "#0000FF", "edgewidth": 1.0, "pathcodes": ["M", "L", "L", "L", "Z"], "yindex": 1, "coordinates": "data", "dasharray": "10,0", "zorder": 1, "alpha": 1, "xindex": 0, "data": "data05", "id": "el14154471148880"}, {"edgecolor": "#000000", "facecolor": "#0000FF", "edgewidth": 1.0, "pathcodes": ["M", "L", "L", "L", "Z"], "yindex": 1, "coordinates": "data", "dasharray": "10,0", "zorder": 1, "alpha": 1, "xindex": 3, "data": "data04", "id": "el14154471152464"}, {"edgecolor": "#000000", "facecolor": "#0000FF", "edgewidth": 1.0, "pathcodes": ["M", "L", "L", "L", "Z"], "yindex": 1, "coordinates": "data", "dasharray": "10,0", "zorder": 1, "alpha": 1, "xindex": 2, "data": "data05", "id": "el14154473658960"}, {"edgecolor": "#000000", "facecolor": "#0000FF", "edgewidth": 1.0, "pathcodes": ["M", "L", "L", "L", "Z"], "yindex": 1, "coordinates": "data", "dasharray": "10,0", "zorder": 1, "alpha": 1, "xindex": 4, "data": "data04", "id": "el14154473657168"}, {"edgecolor": "#000000", "facecolor": "#0000FF", "edgewidth": 1.0, "pathcodes": ["M", "L", "L", "L", "Z"], "yindex": 1, "coordinates": "data", "dasharray": "10,0", "zorder": 1, "alpha": 1, "xindex": 3, "data": "data05", "id": "el14154470986192"}], "sharey": [], "sharex": [], "axesbgalpha": null, "axes": [{"scale": "linear", "tickformat": null, "grid": {"gridOn": false}, "fontsize": 10.0, "position": "bottom", "nticks": 8, "tickvalues": null}, {"scale": "linear", "tickformat": null, "grid": {"gridOn": false}, "fontsize": 10.0, "position": "left", "nticks": 9, "tickvalues": null}], "lines": [], "markers": [], "id": "el14154472480400", "ydomain": [0.0, 4.0], "collections": [], "xscale": "linear", "bbox": [0.125, 0.125, 0.77500000000000002, 0.77500000000000002]}], "height": 320.0, "width": 480.0, "plugins": [{"type": "reset"}, {"enabled": false, "button": true, "type": "zoom"}, {"enabled": false, "button": true, "type": "boxzoom"}], "data": {"data04": [[3.0999999999999996, 0.0, 3.8000000000000003, 5.199999999999999, 6.6], [3.8, 0.0, 4.5, 5.8999999999999995, 7.3], [3.8, 0.0, 4.5, 5.8999999999999995, 7.3], [3.0999999999999996, 0.0, 3.8000000000000003, 5.199999999999999, 6.6]], "data05": [[4.5, 0.0, 5.9, 7.300000000000001], [5.199999999999999, 0.0, 6.6000000000000005, 8.0], [5.199999999999999, 1.0, 6.6000000000000005, 8.0], [4.5, 1.0, 5.9, 7.300000000000001]], "data02": [[1.6999999999999997, 0.0], [2.3999999999999995, 0.0], [2.3999999999999995, 3.0], [1.6999999999999997, 3.0]], "data03": [[2.4000000000000004, 0.0], [3.1, 0.0], [3.1, 2.0], [2.4000000000000004, 2.0]], "data01": [[1.0, 0.0], [1.7, 0.0], [1.7, 4.0], [1.0, 4.0]]}, "id": "el14154472390032"});
})
});
}
</script>