From 658b5e01c9f792be73fd984664da923d3e5ce38d Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Tue, 16 Jan 2018 13:49:44 +0100 Subject: Add simple publication year histogram using bokeh --- data/script.js | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'data') 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: ''}); $('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')); }); -- cgit v1.2.3