feat(bokeh) Added /bokeh tab

This commit is contained in:
walkews 2017-05-23 10:25:24 -05:00
parent 890df24abd
commit 703d40c46c
6 changed files with 687 additions and 20 deletions

19
app/templates/bokeh.js Normal file
View file

@ -0,0 +1,19 @@
function updateChart(){
console.log('updated div/scripts')
var nation = $("#nation option:selected").text()
var updatedData = $.get('/pybokeh/'.concat(nation));
updatedData.done(function(results){
$("#bokeh-pop-plot").html(results.div);
$("#bokeh-pop-script").html(results.script);
});
console.log('updated div/scripts')
}
$('#update').on('click', updateChart)
$('#nation').on('change', updateChart)