-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathsimple_timeseries_plot.html
More file actions
85 lines (51 loc) · 8.72 KB
/
simple_timeseries_plot.html
File metadata and controls
85 lines (51 loc) · 8.72 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.pydata.org/bokeh/release/bokeh-1.4.0.min.js"></script>
<script type="text/javascript">
Bokeh.set_log_level("info");
</script>
</head>
<body>
<div class="bk-root" id="7311d347-e788-430d-96c7-a8e143f34be9" data-root-id="17465"></div>
<script type="application/json" id="18137">
{"59001c9d-76f8-4a4d-9163-c7ba3dab3402":{"roots":{"references":[{"attributes":{"below":[{"id":"17474","type":"DatetimeAxis"}],"center":[{"id":"17478","type":"Grid"},{"id":"17483","type":"Grid"}],"left":[{"id":"17479","type":"LinearAxis"}],"plot_height":1000,"plot_width":1000,"renderers":[{"id":"17500","type":"GlyphRenderer"}],"title":{"id":"17738","type":"Title"},"toolbar":{"id":"17490","type":"Toolbar"},"x_range":{"id":"17466","type":"DataRange1d"},"x_scale":{"id":"17470","type":"LinearScale"},"y_range":{"id":"17468","type":"DataRange1d"},"y_scale":{"id":"17472","type":"LinearScale"}},"id":"17465","subtype":"Figure","type":"Plot"},{"attributes":{"active_drag":"auto","active_inspect":"auto","active_multi":null,"active_scroll":"auto","active_tap":"auto","tools":[{"id":"17484","type":"PanTool"},{"id":"17485","type":"WheelZoomTool"},{"id":"17486","type":"BoxZoomTool"},{"id":"17487","type":"SaveTool"},{"id":"17488","type":"ResetTool"},{"id":"17489","type":"HelpTool"},{"id":"17502","type":"HoverTool"}]},"id":"17490","type":"Toolbar"},{"attributes":{},"id":"17484","type":"PanTool"},{"attributes":{"base":60,"mantissas":[1,2,5,10,15,20,30],"max_interval":1800000.0,"min_interval":1000.0,"num_minor_ticks":0},"id":"17745","type":"AdaptiveTicker"},{"attributes":{"text":""},"id":"17738","type":"Title"},{"attributes":{},"id":"17480","type":"BasicTicker"},{"attributes":{"overlay":{"id":"17758","type":"BoxAnnotation"}},"id":"17486","type":"BoxZoomTool"},{"attributes":{"callback":null,"data":{"count":[16859,21557,21948,43523,32358,25387,22380,23871,24016,46983,25475,28862,26564,24635,20719,23290,43388,60455,72756,52183,29745,24454,36317,34303,30868,26406,69447,114676,142840,192922],"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],"time_period":{"__ndarray__":"AADAXg0Xd0IAAIDEXxd3QgAAQCqyF3dCAAAAkAQYd0IAAMD1Vhh3QgAAgFupGHdCAABAwfsYd0IAAAAnThl3QgAAwIygGXdCAACA8vIZd0IAAEBYRRp3QgAAAL6XGndCAADAI+oad0IAAICJPBt3QgAAQO+OG3dCAAAAVeEbd0IAAMC6Mxx3QgAAgCCGHHdCAABAhtgcd0IAAADsKh13QgAAwFF9HXdCAACAt88dd0IAAEAdIh53QgAAAIN0HndCAADA6MYed0IAAIBOGR93QgAAQLRrH3dCAAAAGr4fd0IAAMB/ECB3QgAAgOViIHdC","dtype":"float64","shape":[30]}},"selected":{"id":"17757","type":"Selection"},"selection_policy":{"id":"17756","type":"UnionRenderers"}},"id":"17464","type":"ColumnDataSource"},{"attributes":{"fill_color":{"value":"red"},"line_color":{"value":"red"},"line_width":{"value":3},"x":{"field":"time_period"},"y":{"field":"count"}},"id":"17498","type":"Circle"},{"attributes":{"callback":null,"end":200000,"start":5000},"id":"17468","type":"DataRange1d"},{"attributes":{"base":24,"mantissas":[1,2,4,6,8,12],"max_interval":43200000.0,"min_interval":3600000.0,"num_minor_ticks":0},"id":"17746","type":"AdaptiveTicker"},{"attributes":{},"id":"17756","type":"UnionRenderers"},{"attributes":{},"id":"17757","type":"Selection"},{"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":"17758","type":"BoxAnnotation"},{"attributes":{"days":[1,8,15,22]},"id":"17749","type":"DaysTicker"},{"attributes":{"days":[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]},"id":"17747","type":"DaysTicker"},{"attributes":{"num_minor_ticks":5,"tickers":[{"id":"17744","type":"AdaptiveTicker"},{"id":"17745","type":"AdaptiveTicker"},{"id":"17746","type":"AdaptiveTicker"},{"id":"17747","type":"DaysTicker"},{"id":"17748","type":"DaysTicker"},{"id":"17749","type":"DaysTicker"},{"id":"17750","type":"DaysTicker"},{"id":"17751","type":"MonthsTicker"},{"id":"17752","type":"MonthsTicker"},{"id":"17753","type":"MonthsTicker"},{"id":"17754","type":"MonthsTicker"},{"id":"17755","type":"YearsTicker"}]},"id":"17475","type":"DatetimeTicker"},{"attributes":{"source":{"id":"17464","type":"ColumnDataSource"}},"id":"17501","type":"CDSView"},{"attributes":{},"id":"17489","type":"HelpTool"},{"attributes":{"days":[1,4,7,10,13,16,19,22,25,28]},"id":"17748","type":"DaysTicker"},{"attributes":{"fill_alpha":{"value":0.1},"fill_color":{"value":"#1f77b4"},"line_alpha":{"value":0.1},"line_color":{"value":"#1f77b4"},"line_width":{"value":3},"x":{"field":"time_period"},"y":{"field":"count"}},"id":"17499","type":"Circle"},{"attributes":{},"id":"17470","type":"LinearScale"},{"attributes":{},"id":"17741","type":"DatetimeTickFormatter"},{"attributes":{"days":[1,15]},"id":"17750","type":"DaysTicker"},{"attributes":{"data_source":{"id":"17464","type":"ColumnDataSource"},"glyph":{"id":"17498","type":"Circle"},"hover_glyph":null,"muted_glyph":null,"nonselection_glyph":{"id":"17499","type":"Circle"},"selection_glyph":null,"view":{"id":"17501","type":"CDSView"}},"id":"17500","type":"GlyphRenderer"},{"attributes":{},"id":"17485","type":"WheelZoomTool"},{"attributes":{"callback":null},"id":"17466","type":"DataRange1d"},{"attributes":{},"id":"17487","type":"SaveTool"},{"attributes":{"months":[0,1,2,3,4,5,6,7,8,9,10,11]},"id":"17751","type":"MonthsTicker"},{"attributes":{},"id":"17472","type":"LinearScale"},{"attributes":{},"id":"17488","type":"ResetTool"},{"attributes":{"mantissas":[1,2,5],"max_interval":500.0,"num_minor_ticks":0},"id":"17744","type":"AdaptiveTicker"},{"attributes":{},"id":"17743","type":"BasicTickFormatter"},{"attributes":{"months":[0,2,4,6,8,10]},"id":"17752","type":"MonthsTicker"},{"attributes":{"formatter":{"id":"17741","type":"DatetimeTickFormatter"},"ticker":{"id":"17475","type":"DatetimeTicker"}},"id":"17474","type":"DatetimeAxis"},{"attributes":{"axis_label":"Tweets per Day","formatter":{"id":"17743","type":"BasicTickFormatter"},"ticker":{"id":"17480","type":"BasicTicker"}},"id":"17479","type":"LinearAxis"},{"attributes":{"months":[0,6]},"id":"17754","type":"MonthsTicker"},{"attributes":{"months":[0,4,8]},"id":"17753","type":"MonthsTicker"},{"attributes":{},"id":"17755","type":"YearsTicker"},{"attributes":{"callback":null,"tooltips":"\n <div>\n <h3>twitter</h3>\n <div><strong>count: </strong>@count</div>\n <div><strong>time_period: </strong>@time_period</div>\n \n \n </div>\n"},"id":"17502","type":"HoverTool"},{"attributes":{"dimension":1,"ticker":{"id":"17480","type":"BasicTicker"}},"id":"17483","type":"Grid"},{"attributes":{"ticker":{"id":"17475","type":"DatetimeTicker"}},"id":"17478","type":"Grid"}],"root_ids":["17465"]},"title":"Bokeh Application","version":"1.4.0"}}
</script>
<script type="text/javascript">
(function() {
var fn = function() {
Bokeh.safely(function() {
(function(root) {
function embed_document(root) {
var docs_json = document.getElementById('18137').textContent;
var render_items = [{"docid":"59001c9d-76f8-4a4d-9163-c7ba3dab3402","roots":{"17465":"7311d347-e788-430d-96c7-a8e143f34be9"}}];
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>