diff options
author | Lars-Dominik Braun <lars@6xq.net> | 2018-01-16 13:49:44 +0100 |
---|---|---|
committer | Lars-Dominik Braun <lars@6xq.net> | 2018-01-16 13:49:44 +0100 |
commit | 658b5e01c9f792be73fd984664da923d3e5ce38d (patch) | |
tree | d1d9255902b82dadc5c966b3019631703bd7daf2 /data | |
parent | 1865c5bbda6fe1d29a63c5cdae68bd054fb73a9f (diff) | |
download | comatose-658b5e01c9f792be73fd984664da923d3e5ce38d.tar.gz comatose-658b5e01c9f792be73fd984664da923d3e5ce38d.tar.bz2 comatose-658b5e01c9f792be73fd984664da923d3e5ce38d.zip |
Add simple publication year histogram using bokeh
Diffstat (limited to 'data')
-rw-r--r-- | data/script.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/data/script.js b/data/script.js index 0884ee6..5bf4480 100644 --- a/data/script.js +++ b/data/script.js @@ -98,5 +98,14 @@ $(document).ready (function () { $('[data-toggle="popover"]').popover({template: '<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-header"></h3><textarea readonly rows="5" class="popover-body"></textarea></div>'}); $('select').selectize({create: true}); + + var plt = Bokeh.Plotting; + + var p3 = Bokeh.Charts.bar (yearHistData, { + axis_number_format: "0.[00]a", + orientation: "vertical" + }); + + plt.show (p3, document.getElementById ('pubHistogram')); }); |