From 9fa4942e9bf081c3f19260e3f334e67deb309754 Mon Sep 17 00:00:00 2001 From: xenofem Date: Sat, 16 Apr 2022 14:46:18 -0400 Subject: [PATCH] make chart adjustments more responsive --- static/poopGraph.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/static/poopGraph.js b/static/poopGraph.js index 6620d13..bd8f63b 100644 --- a/static/poopGraph.js +++ b/static/poopGraph.js @@ -170,6 +170,9 @@ function plot(data) { errorBarWhiskerSize: 5, }, }, + animation: { + duration: 0, + }, }; }; @@ -293,8 +296,10 @@ function plot(data) { const update = () => { updateYMax(); - northChart.update(); - southChart.update(); + setTimeout(() => { + northChart.update(); + southChart.update(); + }, 10); const params = new URLSearchParams(); const start = startInput.value;