-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathchart.html
More file actions
85 lines (51 loc) · 5.48 KB
/
Copy pathchart.html
File metadata and controls
85 lines (51 loc) · 5.48 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
85
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Bokeh Plot</title>
<script type="text/javascript" src="https://cdn.bokeh.org/bokeh/release/bokeh-2.1.1.min.js" integrity="sha384-kLr4fYcqcSpbuI95brIH3vnnYCquzzSxHPU6XGQCIkQRGJwhg0StNbj1eegrHs12" crossorigin="anonymous"></script>
<script type="text/javascript">
Bokeh.set_log_level("info");
</script>
</head>
<body>
<div class="bk-root" id="04901cd0-ce11-4871-a29b-3341826b29e4" data-root-id="1002"></div>
<script type="application/json" id="1140">
{"17d346d8-406e-4d70-b898-6254ba7bc150":{"roots":{"references":[{"attributes":{"data":{"Country":["South Korea","Italy","Germany","Russia","United Arab Emirates"],"Tests":[316664,206886,167000,143519,125000]},"selected":{"id":"1037"},"selection_policy":{"id":"1036"}},"id":"1001","type":"ColumnDataSource"},{"attributes":{"formatter":{"id":"1034"},"major_label_orientation":1.2,"ticker":{"id":"1012"}},"id":"1011","type":"CategoricalAxis"},{"attributes":{},"id":"1012","type":"CategoricalTicker"},{"attributes":{},"id":"1009","type":"LinearScale"},{"attributes":{"axis_label":"Total Tests","axis_label_text_color":"#000000","axis_label_text_font_size":"20px","axis_label_text_font_style":"normal","formatter":{"id":"1032"},"ticker":{"id":"1015"}},"id":"1014","type":"LinearAxis"},{"attributes":{"source":{"id":"1001"}},"id":"1029","type":"CDSView"},{"attributes":{"fill_color":{"value":"darkturquoise"},"line_color":{"value":"darkturquoise"},"top":{"field":"Tests"},"width":{"value":0.7},"x":{"field":"Country"}},"id":"1026","type":"VBar"},{"attributes":{"axis":{"id":"1014"},"dimension":1,"ticker":null},"id":"1017","type":"Grid"},{"attributes":{"active_drag":"auto","active_inspect":"auto","active_multi":null,"active_scroll":"auto","active_tap":"auto","tools":[{"id":"1018"},{"id":"1019"},{"id":"1020"}]},"id":"1021","type":"Toolbar"},{"attributes":{"below":[{"id":"1011"}],"center":[{"id":"1013"},{"id":"1017"}],"left":[{"id":"1014"}],"plot_width":800,"renderers":[{"id":"1028"}],"title":{"id":"1030"},"toolbar":{"id":"1021"},"x_range":{"id":"1003"},"x_scale":{"id":"1007"},"y_range":{"id":"1005"},"y_scale":{"id":"1009"}},"id":"1002","subtype":"Figure","type":"Plot"},{"attributes":{},"id":"1032","type":"BasicTickFormatter"},{"attributes":{"data_source":{"id":"1001"},"glyph":{"id":"1026"},"hover_glyph":null,"muted_glyph":null,"nonselection_glyph":{"id":"1027"},"selection_glyph":null,"view":{"id":"1029"}},"id":"1028","type":"GlyphRenderer"},{"attributes":{"fill_alpha":{"value":0.1},"fill_color":{"value":"darkturquoise"},"line_alpha":{"value":0.1},"line_color":{"value":"darkturquoise"},"top":{"field":"Tests"},"width":{"value":0.7},"x":{"field":"Country"}},"id":"1027","type":"VBar"},{"attributes":{},"id":"1034","type":"CategoricalTickFormatter"},{"attributes":{},"id":"1007","type":"CategoricalScale"},{"attributes":{"callback":null,"tooltips":[["Country","@Country"],["Tests","@Tests{0}"]]},"id":"1020","type":"HoverTool"},{"attributes":{"factors":["South Korea","Italy","Germany","Russia","United Arab Emirates"]},"id":"1003","type":"FactorRange"},{"attributes":{},"id":"1036","type":"UnionRenderers"},{"attributes":{},"id":"1015","type":"BasicTicker"},{"attributes":{"align":"center","text":"Top 5 countries ","text_color":{"value":"#000000"},"text_font_size":{"value":"20px"},"text_font_style":"normal"},"id":"1030","type":"Title"},{"attributes":{},"id":"1037","type":"Selection"},{"attributes":{"axis":{"id":"1011"},"ticker":null},"id":"1013","type":"Grid"},{"attributes":{},"id":"1018","type":"PanTool"},{"attributes":{},"id":"1019","type":"SaveTool"},{"attributes":{},"id":"1005","type":"DataRange1d"}],"root_ids":["1002"]},"title":"Bokeh Application","version":"2.1.1"}}
</script>
<script type="text/javascript">
(function() {
var fn = function() {
Bokeh.safely(function() {
(function(root) {
function embed_document(root) {
var docs_json = document.getElementById('1140').textContent;
var render_items = [{"docid":"17d346d8-406e-4d70-b898-6254ba7bc150","root_ids":["1002"],"roots":{"1002":"04901cd0-ce11-4871-a29b-3341826b29e4"}}];
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>