forked from Zipcoder/Week9-ResearchProjects
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
84 lines (50 loc) · 9.69 KB
/
index.html
File metadata and controls
84 lines (50 loc) · 9.69 KB
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>Bokeh Plot</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="0739204b-ecbc-424d-9930-693b9e9694d7" data-root-id="1749"></div>
<script type="application/json" id="1957">
{"ceae18f0-3129-41d0-a177-843f265245f5":{"roots":{"references":[{"attributes":{"below":[{"id":"1760","type":"LinearAxis"}],"center":[{"id":"1764","type":"Grid"},{"id":"1768","type":"Grid"},{"id":"1794","type":"Legend"}],"left":[{"id":"1765","type":"CategoricalAxis"}],"renderers":[{"id":"1786","type":"GlyphRenderer"}],"title":{"id":"1750","type":"Title"},"toolbar":{"id":"1775","type":"Toolbar"},"x_range":{"id":"1752","type":"DataRange1d"},"x_scale":{"id":"1756","type":"LinearScale"},"y_range":{"id":"1754","type":"FactorRange"},"y_scale":{"id":"1758","type":"CategoricalScale"}},"id":"1749","subtype":"Figure","type":"Plot"},{"attributes":{"axis_label":"total_litres_of_pure_alcohol","formatter":{"id":"1789","type":"BasicTickFormatter"},"ticker":{"id":"1761","type":"BasicTicker"}},"id":"1760","type":"LinearAxis"},{"attributes":{"dimension":1,"ticker":{"id":"1766","type":"CategoricalTicker"}},"id":"1768","type":"Grid"},{"attributes":{"callback":null,"factors":["Italy","Uruguay","Iceland","Malta","Dominica","Sierra Leone","Norway","Kazakhstan","Namibia","Rwanda","Belize","Palau","Niue","Japan","Guyana","Panama","Brazil","Sweden","Paraguay","Chile","St. Kitts & Nevis","Venezuela","Cyprus","South Africa","Canada","Argentina","Greece","Uganda","USA","Gabon","Ukraine","Nigeria","New Zealand","Netherlands","Estonia","Serbia","Austria","South Korea"]},"id":"1754","type":"FactorRange"},{"attributes":{},"id":"1756","type":"LinearScale"},{"attributes":{},"id":"1769","type":"PanTool"},{"attributes":{"fill_alpha":{"value":0.1},"fill_color":{"value":"#1f77b4"},"height":{"value":0.2},"line_alpha":{"value":0.1},"line_color":{"value":"#1f77b4"},"right":{"field":"total_litres_of_pure_alcohol"},"y":{"field":"country"}},"id":"1785","type":"HBar"},{"attributes":{"factors":["Italy","Uruguay","Iceland","Malta","Dominica","Sierra Leone","Norway","Kazakhstan","Namibia","Rwanda","Belize","Palau","Niue","Japan","Guyana","Panama","Brazil","Sweden","Paraguay","Chile","St. Kitts & Nevis","Venezuela","Cyprus","South Africa","Canada","Argentina","Greece","Uganda","USA","Gabon","Ukraine","Nigeria","New Zealand","Netherlands","Estonia","Serbia","Austria","South Korea"],"palette":["#440154","#46095C","#471466","#481D6F","#472676","#462F7C","#443781","#424085","#3E4888","#3B508A","#38568B","#355D8C","#31648D","#2E6B8E","#2C728E","#29798E","#267F8E","#24868D","#218C8D","#1F928C","#1E998A","#1E9F88","#21A685","#26AC81","#2EB27C","#38B976","#44BE70","#51C468","#5EC961","#6DCE58","#7ED24E","#90D643","#A2DA37","#B5DD2B","#C7E01F","#DAE218","#ECE41A","#FDE724"]},"id":"1782","type":"CategoricalColorMapper"},{"attributes":{},"id":"1791","type":"CategoricalTickFormatter"},{"attributes":{},"id":"1761","type":"BasicTicker"},{"attributes":{},"id":"1771","type":"ZoomInTool"},{"attributes":{"callback":null},"id":"1752","type":"DataRange1d"},{"attributes":{"fill_alpha":{"value":0.9},"fill_color":{"field":"country","transform":{"id":"1782","type":"CategoricalColorMapper"}},"height":{"value":0.2},"line_color":{"value":"#1f77b4"},"right":{"field":"total_litres_of_pure_alcohol"},"y":{"field":"country"}},"id":"1784","type":"HBar"},{"attributes":{},"id":"1835","type":"Selection"},{"attributes":{"source":{"id":"1748","type":"ColumnDataSource"}},"id":"1787","type":"CDSView"},{"attributes":{},"id":"1789","type":"BasicTickFormatter"},{"attributes":{},"id":"1772","type":"ZoomOutTool"},{"attributes":{"ticker":{"id":"1761","type":"BasicTicker"}},"id":"1764","type":"Grid"},{"attributes":{"label":{"field":"country"},"renderers":[{"id":"1786","type":"GlyphRenderer"}]},"id":"1795","type":"LegendItem"},{"attributes":{},"id":"1773","type":"SaveTool"},{"attributes":{},"id":"1766","type":"CategoricalTicker"},{"attributes":{"data_source":{"id":"1748","type":"ColumnDataSource"},"glyph":{"id":"1784","type":"HBar"},"hover_glyph":null,"muted_glyph":null,"nonselection_glyph":{"id":"1785","type":"HBar"},"selection_glyph":null,"view":{"id":"1787","type":"CDSView"}},"id":"1786","type":"GlyphRenderer"},{"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":"1793","type":"BoxAnnotation"},{"attributes":{"callback":null,"tooltips":"\n <div>\n <h3>@country</h3>\n <div><strong>tot: </strong>@total_litres_of_pure_alcohol</div>\n <div><strong>spirit_servings: </strong>@spirit_servings</div>\n <div><strong>beer_servings: </strong>@beer_servings</div>\n <div><strong>wine_servings: </strong>@wine_servings</div>\n </div>\n"},"id":"1796","type":"HoverTool"},{"attributes":{"active_drag":"auto","active_inspect":"auto","active_multi":null,"active_scroll":"auto","active_tap":"auto","tools":[{"id":"1769","type":"PanTool"},{"id":"1770","type":"BoxSelectTool"},{"id":"1771","type":"ZoomInTool"},{"id":"1772","type":"ZoomOutTool"},{"id":"1773","type":"SaveTool"},{"id":"1774","type":"ResetTool"},{"id":"1796","type":"HoverTool"}]},"id":"1775","type":"Toolbar"},{"attributes":{"items":[{"id":"1795","type":"LegendItem"}],"label_text_font_size":{"value":"6px"},"location":"bottom_right"},"id":"1794","type":"Legend"},{"attributes":{"callback":null,"data":{"beer_servings":[85,115,233,149,52,25,169,124,376,43,263,306,188,77,93,285,245,152,213,130,194,333,192,225,240,193,133,45,249,347,206,42,203,251,224,283,279,140],"country":["Italy","Uruguay","Iceland","Malta","Dominica","Sierra Leone","Norway","Kazakhstan","Namibia","Rwanda","Belize","Palau","Niue","Japan","Guyana","Panama","Brazil","Sweden","Paraguay","Chile","St. Kitts & Nevis","Venezuela","Cyprus","South Africa","Canada","Argentina","Greece","Uganda","USA","Gabon","Ukraine","Nigeria","New Zealand","Netherlands","Estonia","Serbia","Austria","South Korea"],"index":[0,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],"spirit_servings":[42,35,61,100,286,3,71,246,3,2,114,63,200,202,302,104,145,60,117,124,205,100,154,76,122,25,112,9,158,98,237,5,79,88,194,131,75,16],"total_litres_of_pure_alcohol":{"__ndarray__":"AAAAAAAAGkBmZmZmZmYaQGZmZmZmZhpAZmZmZmZmGkBmZmZmZmYaQM3MzMzMzBpAzczMzMzMGkAzMzMzMzMbQDMzMzMzMxtAMzMzMzMzG0AzMzMzMzMbQJqZmZmZmRtAAAAAAAAAHEAAAAAAAAAcQGZmZmZmZhxAzczMzMzMHEDNzMzMzMwcQM3MzMzMzBxAMzMzMzMzHUBmZmZmZmYeQM3MzMzMzB5AzczMzMzMHkBmZmZmZmYgQGZmZmZmZiBAZmZmZmZmIECamZmZmZkgQJqZmZmZmSBAmpmZmZmZIEBmZmZmZmYhQM3MzMzMzCFAzczMzMzMIUAzMzMzMzMiQJqZmZmZmSJAzczMzMzMIkAAAAAAAAAjQDMzMzMzMyNAZmZmZmZmI0CamZmZmZkjQA==","dtype":"float64","shape":[38]},"wine_servings":[237,220,78,120,26,2,129,12,1,0,8,23,7,16,1,18,16,186,74,172,32,3,113,81,100,221,218,0,84,59,45,2,175,190,59,127,191,9]},"selected":{"id":"1835","type":"Selection"},"selection_policy":{"id":"1836","type":"UnionRenderers"}},"id":"1748","type":"ColumnDataSource"},{"attributes":{},"id":"1758","type":"CategoricalScale"},{"attributes":{},"id":"1774","type":"ResetTool"},{"attributes":{"text":"total alcohol consumption per country(6.5-10)"},"id":"1750","type":"Title"},{"attributes":{"formatter":{"id":"1791","type":"CategoricalTickFormatter"},"ticker":{"id":"1766","type":"CategoricalTicker"}},"id":"1765","type":"CategoricalAxis"},{"attributes":{"callback":null,"overlay":{"id":"1793","type":"BoxAnnotation"}},"id":"1770","type":"BoxSelectTool"},{"attributes":{},"id":"1836","type":"UnionRenderers"}],"root_ids":["1749"]},"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('1957').textContent;
var render_items = [{"docid":"ceae18f0-3129-41d0-a177-843f265245f5","roots":{"1749":"0739204b-ecbc-424d-9930-693b9e9694d7"}}];
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>