-
Notifications
You must be signed in to change notification settings - Fork 0
/
label.html
84 lines (50 loc) · 6.73 KB
/
label.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>label.py example</title>
<script type="text/javascript" src="https://cdn.pydata.org/bokeh/release/bokeh-1.3.4.min.js"></script>
<script type="text/javascript">
Bokeh.set_log_level("info");
</script>
</head>
<body>
<div class="bk-root" id="2cf1e2ed-6df3-47fb-801d-925d675c6735" data-root-id="15313"></div>
<script type="application/json" id="15426">
{"a9fe606f-6e99-48dc-83d8-c48c971d6f8c":{"roots":{"references":[{"attributes":{"active_drag":"auto","active_inspect":"auto","active_multi":null,"active_scroll":"auto","active_tap":"auto","tools":[{"id":"15333","type":"PanTool"},{"id":"15334","type":"WheelZoomTool"},{"id":"15335","type":"BoxZoomTool"},{"id":"15336","type":"SaveTool"},{"id":"15337","type":"ResetTool"},{"id":"15338","type":"HelpTool"}]},"id":"15339","type":"Toolbar"},{"attributes":{"text":"Dist. of 10th Grade Students at Lee High"},"id":"15314","type":"Title"},{"attributes":{},"id":"15333","type":"PanTool"},{"attributes":{"background_fill_color":{"value":"white"},"border_line_color":{"value":"black"},"render_mode":"css","text":"Collected by Luke C. 2016-04-01","x":70,"x_units":"screen","y":70,"y_units":"screen"},"id":"15353","type":"Label"},{"attributes":{"data_source":{"id":"15311","type":"ColumnDataSource"},"glyph":{"id":"15347","type":"Scatter"},"hover_glyph":null,"muted_glyph":null,"nonselection_glyph":{"id":"15348","type":"Scatter"},"selection_glyph":null,"view":{"id":"15350","type":"CDSView"}},"id":"15349","type":"GlyphRenderer"},{"attributes":{"axis_label":"Weight (lbs)","formatter":{"id":"15357","type":"BasicTickFormatter"},"ticker":{"id":"15324","type":"BasicTicker"}},"id":"15323","type":"LinearAxis"},{"attributes":{"source":{"id":"15311","type":"ColumnDataSource"}},"id":"15350","type":"CDSView"},{"attributes":{},"id":"15334","type":"WheelZoomTool"},{"attributes":{},"id":"15355","type":"BasicTickFormatter"},{"attributes":{"callback":null,"end":275,"start":140},"id":"15312","type":"Range1d"},{"attributes":{},"id":"15319","type":"LinearScale"},{"attributes":{"overlay":{"id":"15359","type":"BoxAnnotation"}},"id":"15335","type":"BoxZoomTool"},{"attributes":{},"id":"15324","type":"BasicTicker"},{"attributes":{"below":[{"id":"15323","type":"LinearAxis"}],"center":[{"id":"15327","type":"Grid"},{"id":"15332","type":"Grid"},{"id":"15351","type":"LabelSet"},{"id":"15353","type":"Label"}],"left":[{"id":"15328","type":"LinearAxis"}],"renderers":[{"id":"15349","type":"GlyphRenderer"}],"title":{"id":"15314","type":"Title"},"toolbar":{"id":"15339","type":"Toolbar"},"x_range":{"id":"15312","type":"Range1d"},"x_scale":{"id":"15319","type":"LinearScale"},"y_range":{"id":"15317","type":"DataRange1d"},"y_scale":{"id":"15321","type":"LinearScale"}},"id":"15313","subtype":"Figure","type":"Plot"},{"attributes":{"level":"glyph","source":{"id":"15311","type":"ColumnDataSource"},"text":{"field":"names"},"x":{"field":"weight"},"x_offset":{"value":5},"y":{"field":"height"},"y_offset":{"value":5}},"id":"15351","type":"LabelSet"},{"attributes":{},"id":"15361","type":"Selection"},{"attributes":{"ticker":{"id":"15324","type":"BasicTicker"}},"id":"15327","type":"Grid"},{"attributes":{},"id":"15338","type":"HelpTool"},{"attributes":{"axis_label":"Height (in)","formatter":{"id":"15355","type":"BasicTickFormatter"},"ticker":{"id":"15329","type":"BasicTicker"}},"id":"15328","type":"LinearAxis"},{"attributes":{},"id":"15336","type":"SaveTool"},{"attributes":{},"id":"15337","type":"ResetTool"},{"attributes":{"callback":null},"id":"15317","type":"DataRange1d"},{"attributes":{},"id":"15321","type":"LinearScale"},{"attributes":{},"id":"15329","type":"BasicTicker"},{"attributes":{"fill_alpha":{"value":0.1},"fill_color":{"value":"#1f77b4"},"line_alpha":{"value":0.1},"line_color":{"value":"#1f77b4"},"size":{"units":"screen","value":8},"x":{"field":"weight"},"y":{"field":"height"}},"id":"15348","type":"Scatter"},{"attributes":{},"id":"15360","type":"UnionRenderers"},{"attributes":{"fill_color":{"value":"#1f77b4"},"line_color":{"value":"#1f77b4"},"size":{"units":"screen","value":8},"x":{"field":"weight"},"y":{"field":"height"}},"id":"15347","type":"Scatter"},{"attributes":{"callback":null,"data":{"height":[66,71,72,68,58,62],"names":["Mark","Amir","Matt","Greg","Owen","Juan"],"weight":[165,189,220,141,260,174]},"selected":{"id":"15361","type":"Selection"},"selection_policy":{"id":"15360","type":"UnionRenderers"}},"id":"15311","type":"ColumnDataSource"},{"attributes":{},"id":"15357","type":"BasicTickFormatter"},{"attributes":{"bottom_units":"screen","fill_alpha":{"value":0.5},"fill_color":{"value":"lightgrey"},"left_units":"screen","level":"overlay","line_alpha":{"value":1.0},"line_color":{"value":"black"},"line_dash":[4,4],"line_width":{"value":2},"render_mode":"css","right_units":"screen","top_units":"screen"},"id":"15359","type":"BoxAnnotation"},{"attributes":{"dimension":1,"ticker":{"id":"15329","type":"BasicTicker"}},"id":"15332","type":"Grid"}],"root_ids":["15313"]},"title":"Bokeh Application","version":"1.3.4"}}
</script>
<script type="text/javascript">
(function() {
var fn = function() {
Bokeh.safely(function() {
(function(root) {
function embed_document(root) {
var docs_json = document.getElementById('15426').textContent;
var render_items = [{"docid":"a9fe606f-6e99-48dc-83d8-c48c971d6f8c","roots":{"15313":"2cf1e2ed-6df3-47fb-801d-925d675c6735"}}];
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) {
embed_document(root);
clearInterval(timer);
}
attempts++;
if (attempts > 100) {
console.log("Bokeh: ERROR: Unable to run BokehJS code because BokehJS library is missing");
clearInterval(timer);
}
}, 10, root)
}
})(window);
});
};
if (document.readyState != "loading") fn();
else document.addEventListener("DOMContentLoaded", fn);
})();
</script>
</body>
</html>