/
line_plot.html
85 lines (51 loc) · 7.07 KB
/
line_plot.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Static HTML file</title>
<script type="text/javascript" src="https://cdn.bokeh.org/bokeh/release/bokeh-2.3.3.min.js" integrity="sha384-dM3QQsP+wXdHg42wTqW85BjZQdLNNIXqlPw/BgKoExPmTG7ZLML4EGqLMfqHT6ON" crossorigin="anonymous"></script>
<script type="text/javascript">
Bokeh.set_log_level("info");
</script>
</head>
<body>
<div class="bk-root" id="144043d8-fe09-41c5-b50e-d7e4f98aba94" data-root-id="62657"></div>
<script type="application/json" id="64098">
{"7c7c62d5-5cd7-4bb8-8d25-8051587c180a":{"defs":[],"roots":{"references":[{"attributes":{"below":[{"id":"62668"}],"center":[{"id":"62671"},{"id":"62675"},{"id":"62705"}],"left":[{"id":"62672"}],"renderers":[{"id":"62693"}],"title":{"id":"62658"},"toolbar":{"id":"62683"},"x_range":{"id":"62660"},"x_scale":{"id":"62664"},"y_range":{"id":"62662"},"y_scale":{"id":"62666"}},"id":"62657","subtype":"Figure","type":"Plot"},{"attributes":{"data":{"x":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20],"y":[9,1,3,8,10,14,10,10,14,14,11,14,13,13,12,5,14,12,9,10]},"selected":{"id":"62703"},"selection_policy":{"id":"62702"}},"id":"62690","type":"ColumnDataSource"},{"attributes":{},"id":"62676","type":"PanTool"},{"attributes":{"source":{"id":"62690"}},"id":"62694","type":"CDSView"},{"attributes":{},"id":"62677","type":"WheelZoomTool"},{"attributes":{"axis_label":"Y Values","axis_label_standoff":10,"axis_label_text_color":"#5B5B5B","axis_label_text_font":"Calibri Light","axis_label_text_font_size":"1.15em","axis_label_text_font_style":"bold","axis_line_alpha":1,"axis_line_color":"#5B5B5B","formatter":{"id":"62701"},"major_label_policy":{"id":"62699"},"major_label_text_color":"#5B5B5B","major_label_text_font":"Calibri Light","major_label_text_font_size":"0.95em","major_label_text_font_style":"bold","major_tick_in":0,"major_tick_line_alpha":0.25,"major_tick_line_color":"#5B5B5B","major_tick_out":3,"minor_tick_line_alpha":0.25,"minor_tick_line_color":"#5B5B5B","ticker":{"id":"62673"}},"id":"62672","type":"LinearAxis"},{"attributes":{},"id":"62698","type":"BasicTickFormatter"},{"attributes":{"overlay":{"id":"62682"}},"id":"62678","type":"BoxZoomTool"},{"attributes":{},"id":"62679","type":"SaveTool"},{"attributes":{"label":{"value":"y"},"renderers":[{"id":"62693"}]},"id":"62706","type":"LegendItem"},{"attributes":{"text":"Line Plot x VS y","text_color":"#5B5B5B","text_font":"Calibri Light","text_font_size":"1.25em","text_font_style":"bold"},"id":"62658","type":"Title"},{"attributes":{"active_multi":null,"tools":[{"id":"62676"},{"id":"62677"},{"id":"62678"},{"id":"62679"},{"id":"62680"},{"id":"62681"}]},"id":"62683","type":"Toolbar"},{"attributes":{},"id":"62680","type":"ResetTool"},{"attributes":{},"id":"62660","type":"DataRange1d"},{"attributes":{},"id":"62681","type":"HelpTool"},{"attributes":{},"id":"62699","type":"AllLabels"},{"attributes":{},"id":"62673","type":"BasicTicker"},{"attributes":{"background_fill_alpha":0.25,"border_line_alpha":0,"glyph_width":15,"items":[{"id":"62706"}],"label_standoff":8,"label_text_color":"#5B5B5B","label_text_font":"Calibri Light","label_text_font_size":"0.95em","label_text_font_style":"bold","spacing":8},"id":"62705","type":"Legend"},{"attributes":{},"id":"62662","type":"DataRange1d"},{"attributes":{},"id":"62701","type":"BasicTickFormatter"},{"attributes":{},"id":"62664","type":"LinearScale"},{"attributes":{},"id":"62666","type":"LinearScale"},{"attributes":{},"id":"62703","type":"Selection"},{"attributes":{},"id":"62696","type":"AllLabels"},{"attributes":{"line_color":"#1f77b4","line_width":2,"x":{"field":"x"},"y":{"field":"y"}},"id":"62691","type":"Line"},{"attributes":{"axis_label":"X Values","axis_label_standoff":10,"axis_label_text_color":"#5B5B5B","axis_label_text_font":"Calibri Light","axis_label_text_font_size":"1.15em","axis_label_text_font_style":"bold","axis_line_alpha":1,"axis_line_color":"#5B5B5B","formatter":{"id":"62698"},"major_label_policy":{"id":"62696"},"major_label_text_color":"#5B5B5B","major_label_text_font":"Calibri Light","major_label_text_font_size":"0.95em","major_label_text_font_style":"bold","major_tick_in":0,"major_tick_line_alpha":0.25,"major_tick_line_color":"#5B5B5B","major_tick_out":3,"minor_tick_line_alpha":0.25,"minor_tick_line_color":"#5B5B5B","ticker":{"id":"62669"}},"id":"62668","type":"LinearAxis"},{"attributes":{},"id":"62702","type":"UnionRenderers"},{"attributes":{},"id":"62669","type":"BasicTicker"},{"attributes":{"axis":{"id":"62668"},"ticker":null},"id":"62671","type":"Grid"},{"attributes":{"line_alpha":0.1,"line_color":"#1f77b4","line_width":2,"x":{"field":"x"},"y":{"field":"y"}},"id":"62692","type":"Line"},{"attributes":{"data_source":{"id":"62690"},"glyph":{"id":"62691"},"hover_glyph":null,"muted_glyph":null,"nonselection_glyph":{"id":"62692"},"view":{"id":"62694"}},"id":"62693","type":"GlyphRenderer"},{"attributes":{"bottom_units":"screen","fill_alpha":0.5,"fill_color":"lightgrey","left_units":"screen","level":"overlay","line_alpha":1.0,"line_color":"black","line_dash":[4,4],"line_width":2,"right_units":"screen","syncable":false,"top_units":"screen"},"id":"62682","type":"BoxAnnotation"},{"attributes":{"axis":{"id":"62672"},"dimension":1,"ticker":null},"id":"62675","type":"Grid"}],"root_ids":["62657"]},"title":"Bokeh Application","version":"2.3.3"}}
</script>
<script type="text/javascript">
(function() {
var fn = function() {
Bokeh.safely(function() {
(function(root) {
function embed_document(root) {
var docs_json = document.getElementById('64098').textContent;
var render_items = [{"docid":"7c7c62d5-5cd7-4bb8-8d25-8051587c180a","root_ids":["62657"],"roots":{"62657":"144043d8-fe09-41c5-b50e-d7e4f98aba94"}}];
root.Bokeh.embed.embed_items(docs_json, render_items);
}
if (root.Bokeh !== undefined) {
embed_document(root);
} else {
var attempts = 0;
var timer = setInterval(function(root) {
if (root.Bokeh !== undefined) {
clearInterval(timer);
embed_document(root);
} else {
attempts++;
if (attempts > 100) {
clearInterval(timer);
console.log("Bokeh: ERROR: Unable to run BokehJS code because BokehJS library is missing");
}
}
}, 10, root)
}
})(window);
});
};
if (document.readyState != "loading") fn();
else document.addEventListener("DOMContentLoaded", fn);
})();
</script>
</body>
</html>