feat(matplotlib) Added matplotlib page
This commit is contained in:
parent
129e98b383
commit
6bec8d8f25
5 changed files with 494 additions and 8 deletions
11
app/templates/matplotlib.js
Normal file
11
app/templates/matplotlib.js
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
function updateChartSrc(){
|
||||
var nation = $("#nation option:selected").text()
|
||||
var updatedData = $.get('/mpl/'.concat(nation));
|
||||
updatedData.done(function(results){
|
||||
$("img[name=population]").attr("src", results.src)
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
|
||||
$("#nation").on('change', updateChartSrc);
|
||||
Loading…
Add table
Add a link
Reference in a new issue