feat(show when ready): Show plots when doccument is ready.

This commit is contained in:
walkews 2017-05-23 10:40:01 -05:00
parent 703d40c46c
commit 46b051060c
3 changed files with 3 additions and 3 deletions

View file

@ -131,4 +131,4 @@ def pybokeh(nation):
if __name__ == '__main__': if __name__ == '__main__':
port = int(os.environ.get("PORT", 5000)) port = int(os.environ.get("PORT", 5000))
app.run(debug=True, host='0.0.0.0', port=port) app.run(host='0.0.0.0', port=port)

View file

@ -11,9 +11,9 @@ console.log('updated div/scripts')
}); });
console.log('updated div/scripts')
} }
$( document ).ready(updateChart)
$('#update').on('click', updateChart) $('#update').on('click', updateChart)
$('#nation').on('change', updateChart) $('#nation').on('change', updateChart)

View file

@ -7,5 +7,5 @@ function updateChartSrc(){
} }
$( document ).ready(updateChartSrc)
$("#nation").on('change', updateChartSrc); $("#nation").on('change', updateChartSrc);