feat(bokeh) Added /bokeh tab
This commit is contained in:
parent
890df24abd
commit
703d40c46c
6 changed files with 687 additions and 20 deletions
19
app/templates/bokeh.js
Normal file
19
app/templates/bokeh.js
Normal 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)
|
||||
Loading…
Add table
Add a link
Reference in a new issue