From 04e8135cf007c6ce545b9a19c024840857e04478 Mon Sep 17 00:00:00 2001 From: Walker Waylon Scott Date: Thu, 13 Jul 2017 13:06:45 -0500 Subject: [PATCH] update_ts() function now flows data to the score_timeseries chart when the chart is ready. Prior this was causing formatting/zoom issues --- src/static/js/enthusiast.js | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/static/js/enthusiast.js b/src/static/js/enthusiast.js index 84e7094..2dad2f8 100644 --- a/src/static/js/enthusiast.js +++ b/src/static/js/enthusiast.js @@ -138,18 +138,22 @@ function url_params(base) } function update_ts() +{ + score_timeseries.flow({'done': load_ts()}) + +} + +function load_ts() { url = url_params('/api/score_timeseries?') - score_timeseries.unload() var updatedData = $.get(url); updatedData.done(function(results) { score_timeseries.load(updatedData.responseJSON) - }); - + }) + } - function update_words() { url = url_params('/api/keywords?')