-
Notifications
You must be signed in to change notification settings - Fork 0
/
plot2.html
43 lines (35 loc) · 11.1 KB
/
plot2.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_el52882859448801117266704"></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_el52882859448801117266704", {"width": 640.0, "height": 480.0, "axes": [{"bbox": [0.125, 0.10999999999999999, 0.775, 0.77], "xlim": [186.9, 255.1], "ylim": [153.16000415, 183.08000085], "xdomain": [186.9, 255.1], "ydomain": [153.16000415, 183.08000085], "xscale": "linear", "yscale": "linear", "axes": [{"position": "bottom", "nticks": 9, "tickvalues": null, "tickformat": null, "scale": "linear", "fontsize": 10.0, "grid": {"gridOn": true, "color": "#B0B0B0", "dasharray": "none", "alpha": 1.0}, "visible": true}, {"position": "left", "nticks": 8, "tickvalues": null, "tickformat": null, "scale": "linear", "fontsize": 10.0, "grid": {"gridOn": true, "color": "#B0B0B0", "dasharray": "none", "alpha": 1.0}, "visible": true}], "axesbg": "#FFFFFF", "axesbgalpha": null, "zoomable": true, "id": "el5288286268688", "lines": [{"data": "data01", "xindex": 0, "yindex": 1, "coordinates": "data", "id": "el5288288751696", "color": "#1F77B4", "linewidth": 1.5, "dasharray": "none", "alpha": 1, "zorder": 2, "drawstyle": "default"}], "paths": [], "markers": [], "texts": [{"text": "Days", "position": [0.5, -0.07921476671476674], "coordinates": "axes", "h_anchor": "middle", "v_baseline": "hanging", "rotation": -0.0, "fontsize": 10.0, "color": "#000000", "alpha": 1, "zorder": 3, "id": "el5288286306992"}, {"text": "Stock value", "position": [-0.08448140681003585, 0.5], "coordinates": "axes", "h_anchor": "middle", "v_baseline": "auto", "rotation": -90.0, "fontsize": 10.0, "color": "#000000", "alpha": 1, "zorder": 3, "id": "el5288286309776"}, {"text": "Last 3 month stock value of Apple Inc.", "position": [0.5, 1.0225468975468974], "coordinates": "axes", "h_anchor": "middle", "v_baseline": "auto", "rotation": -0.0, "fontsize": 18.0, "color": "#000000", "alpha": 1, "zorder": 3, "id": "el5288288669392"}], "collections": [], "images": [], "sharex": [], "sharey": []}], "data": {"data01": [[190.0, 176.281281], [191.0, 176.321106], [192.0, 173.512573], [193.0, 170.415192], [194.0, 170.813568], [195.0, 167.278], [196.0, 166.292007], [197.0, 166.75013700000005], [198.0, 167.098724], [199.0, 159.848282], [200.0, 155.854568], [201.0, 162.36801100000002], [202.0, 158.892166], [203.0, 154.520004], [204.0, 156.410004], [205.0, 162.71000700000005], [206.0, 164.339996], [207.0, 167.369995], [208.0, 172.990005], [209.0, 172.429993], [210.0, 171.850006], [211.0, 171.070007], [212.0, 172.5], [213.0, 175.5], [214.0, 178.970001], [215.0, 178.389999], [216.0, 178.119995], [217.0, 175.0], [218.0, 176.21000700000005], [219.0, 176.820007], [220.0, 176.669998], [221.0, 175.029999], [222.0, 176.940002], [223.0, 179.979996], [224.0, 181.720001], [225.0, 179.970001], [226.0, 178.440002], [227.0, 178.649994], [228.0, 178.020004], [229.0, 175.300003], [230.0, 175.240005], [231.0, 171.270004], [232.0, 168.850006], [233.0, 164.940002], [234.0, 172.770004], [235.0, 168.339996], [236.0, 166.479996], [237.0, 167.779999], [238.0, 166.679993], [239.0, 168.389999], [240.0, 171.610001], [241.0, 172.800003], [242.0, 168.380005], [243.0, 170.050003], [244.0, 173.25], [245.0, 172.440002], [246.0, 174.139999], [247.0, 174.729996], [248.0, 175.820007], [249.0, 178.240005], [250.0, 177.839996], [251.0, 172.800003], [252.0, 165.720001]]}, "id": "el5288285944880", "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://mpld3.github.io/js/d3.v3.min"}});
require(["d3"], function(d3){
window.d3 = d3;
mpld3_load_lib("https://mpld3.github.io/js/mpld3.v0.3.js", function(){
mpld3.draw_figure("fig_el52882859448801117266704", {"width": 640.0, "height": 480.0, "axes": [{"bbox": [0.125, 0.10999999999999999, 0.775, 0.77], "xlim": [186.9, 255.1], "ylim": [153.16000415, 183.08000085], "xdomain": [186.9, 255.1], "ydomain": [153.16000415, 183.08000085], "xscale": "linear", "yscale": "linear", "axes": [{"position": "bottom", "nticks": 9, "tickvalues": null, "tickformat": null, "scale": "linear", "fontsize": 10.0, "grid": {"gridOn": true, "color": "#B0B0B0", "dasharray": "none", "alpha": 1.0}, "visible": true}, {"position": "left", "nticks": 8, "tickvalues": null, "tickformat": null, "scale": "linear", "fontsize": 10.0, "grid": {"gridOn": true, "color": "#B0B0B0", "dasharray": "none", "alpha": 1.0}, "visible": true}], "axesbg": "#FFFFFF", "axesbgalpha": null, "zoomable": true, "id": "el5288286268688", "lines": [{"data": "data01", "xindex": 0, "yindex": 1, "coordinates": "data", "id": "el5288288751696", "color": "#1F77B4", "linewidth": 1.5, "dasharray": "none", "alpha": 1, "zorder": 2, "drawstyle": "default"}], "paths": [], "markers": [], "texts": [{"text": "Days", "position": [0.5, -0.07921476671476674], "coordinates": "axes", "h_anchor": "middle", "v_baseline": "hanging", "rotation": -0.0, "fontsize": 10.0, "color": "#000000", "alpha": 1, "zorder": 3, "id": "el5288286306992"}, {"text": "Stock value", "position": [-0.08448140681003585, 0.5], "coordinates": "axes", "h_anchor": "middle", "v_baseline": "auto", "rotation": -90.0, "fontsize": 10.0, "color": "#000000", "alpha": 1, "zorder": 3, "id": "el5288286309776"}, {"text": "Last 3 month stock value of Apple Inc.", "position": [0.5, 1.0225468975468974], "coordinates": "axes", "h_anchor": "middle", "v_baseline": "auto", "rotation": -0.0, "fontsize": 18.0, "color": "#000000", "alpha": 1, "zorder": 3, "id": "el5288288669392"}], "collections": [], "images": [], "sharex": [], "sharey": []}], "data": {"data01": [[190.0, 176.281281], [191.0, 176.321106], [192.0, 173.512573], [193.0, 170.415192], [194.0, 170.813568], [195.0, 167.278], [196.0, 166.292007], [197.0, 166.75013700000005], [198.0, 167.098724], [199.0, 159.848282], [200.0, 155.854568], [201.0, 162.36801100000002], [202.0, 158.892166], [203.0, 154.520004], [204.0, 156.410004], [205.0, 162.71000700000005], [206.0, 164.339996], [207.0, 167.369995], [208.0, 172.990005], [209.0, 172.429993], [210.0, 171.850006], [211.0, 171.070007], [212.0, 172.5], [213.0, 175.5], [214.0, 178.970001], [215.0, 178.389999], [216.0, 178.119995], [217.0, 175.0], [218.0, 176.21000700000005], [219.0, 176.820007], [220.0, 176.669998], [221.0, 175.029999], [222.0, 176.940002], [223.0, 179.979996], [224.0, 181.720001], [225.0, 179.970001], [226.0, 178.440002], [227.0, 178.649994], [228.0, 178.020004], [229.0, 175.300003], [230.0, 175.240005], [231.0, 171.270004], [232.0, 168.850006], [233.0, 164.940002], [234.0, 172.770004], [235.0, 168.339996], [236.0, 166.479996], [237.0, 167.779999], [238.0, 166.679993], [239.0, 168.389999], [240.0, 171.610001], [241.0, 172.800003], [242.0, 168.380005], [243.0, 170.050003], [244.0, 173.25], [245.0, 172.440002], [246.0, 174.139999], [247.0, 174.729996], [248.0, 175.820007], [249.0, 178.240005], [250.0, 177.839996], [251.0, 172.800003], [252.0, 165.720001]]}, "id": "el5288285944880", "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://mpld3.github.io/js/d3.v3.min.js", function(){
mpld3_load_lib("https://mpld3.github.io/js/mpld3.v0.3.js", function(){
mpld3.draw_figure("fig_el52882859448801117266704", {"width": 640.0, "height": 480.0, "axes": [{"bbox": [0.125, 0.10999999999999999, 0.775, 0.77], "xlim": [186.9, 255.1], "ylim": [153.16000415, 183.08000085], "xdomain": [186.9, 255.1], "ydomain": [153.16000415, 183.08000085], "xscale": "linear", "yscale": "linear", "axes": [{"position": "bottom", "nticks": 9, "tickvalues": null, "tickformat": null, "scale": "linear", "fontsize": 10.0, "grid": {"gridOn": true, "color": "#B0B0B0", "dasharray": "none", "alpha": 1.0}, "visible": true}, {"position": "left", "nticks": 8, "tickvalues": null, "tickformat": null, "scale": "linear", "fontsize": 10.0, "grid": {"gridOn": true, "color": "#B0B0B0", "dasharray": "none", "alpha": 1.0}, "visible": true}], "axesbg": "#FFFFFF", "axesbgalpha": null, "zoomable": true, "id": "el5288286268688", "lines": [{"data": "data01", "xindex": 0, "yindex": 1, "coordinates": "data", "id": "el5288288751696", "color": "#1F77B4", "linewidth": 1.5, "dasharray": "none", "alpha": 1, "zorder": 2, "drawstyle": "default"}], "paths": [], "markers": [], "texts": [{"text": "Days", "position": [0.5, -0.07921476671476674], "coordinates": "axes", "h_anchor": "middle", "v_baseline": "hanging", "rotation": -0.0, "fontsize": 10.0, "color": "#000000", "alpha": 1, "zorder": 3, "id": "el5288286306992"}, {"text": "Stock value", "position": [-0.08448140681003585, 0.5], "coordinates": "axes", "h_anchor": "middle", "v_baseline": "auto", "rotation": -90.0, "fontsize": 10.0, "color": "#000000", "alpha": 1, "zorder": 3, "id": "el5288286309776"}, {"text": "Last 3 month stock value of Apple Inc.", "position": [0.5, 1.0225468975468974], "coordinates": "axes", "h_anchor": "middle", "v_baseline": "auto", "rotation": -0.0, "fontsize": 18.0, "color": "#000000", "alpha": 1, "zorder": 3, "id": "el5288288669392"}], "collections": [], "images": [], "sharex": [], "sharey": []}], "data": {"data01": [[190.0, 176.281281], [191.0, 176.321106], [192.0, 173.512573], [193.0, 170.415192], [194.0, 170.813568], [195.0, 167.278], [196.0, 166.292007], [197.0, 166.75013700000005], [198.0, 167.098724], [199.0, 159.848282], [200.0, 155.854568], [201.0, 162.36801100000002], [202.0, 158.892166], [203.0, 154.520004], [204.0, 156.410004], [205.0, 162.71000700000005], [206.0, 164.339996], [207.0, 167.369995], [208.0, 172.990005], [209.0, 172.429993], [210.0, 171.850006], [211.0, 171.070007], [212.0, 172.5], [213.0, 175.5], [214.0, 178.970001], [215.0, 178.389999], [216.0, 178.119995], [217.0, 175.0], [218.0, 176.21000700000005], [219.0, 176.820007], [220.0, 176.669998], [221.0, 175.029999], [222.0, 176.940002], [223.0, 179.979996], [224.0, 181.720001], [225.0, 179.970001], [226.0, 178.440002], [227.0, 178.649994], [228.0, 178.020004], [229.0, 175.300003], [230.0, 175.240005], [231.0, 171.270004], [232.0, 168.850006], [233.0, 164.940002], [234.0, 172.770004], [235.0, 168.339996], [236.0, 166.479996], [237.0, 167.779999], [238.0, 166.679993], [239.0, 168.389999], [240.0, 171.610001], [241.0, 172.800003], [242.0, 168.380005], [243.0, 170.050003], [244.0, 173.25], [245.0, 172.440002], [246.0, 174.139999], [247.0, 174.729996], [248.0, 175.820007], [249.0, 178.240005], [250.0, 177.839996], [251.0, 172.800003], [252.0, 165.720001]]}, "id": "el5288285944880", "plugins": [{"type": "reset"}, {"type": "zoom", "button": true, "enabled": false}, {"type": "boxzoom", "button": true, "enabled": false}]});
})
});
}
</script>