From 4318646514dd6c09b1542733df1096e0f4552bf2 Mon Sep 17 00:00:00 2001 From: Mike Smullin Date: Tue, 8 Aug 2023 03:22:11 -0600 Subject: [PATCH] animations should be off by default, when updating via typing. otherwise they go crazy! --- charts-render.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/charts-render.js b/charts-render.js index 003ed11..f8d66e6 100644 --- a/charts-render.js +++ b/charts-render.js @@ -1,4 +1,7 @@ function contentLoaded() { + // turn off animations as they can become annoying during typing + //Chart.defaults = { animation: { duration: 0 } }; // 2.x + Chart.defaults.animation.duration = 0; // 4.x var chartElements = document.getElementsByClassName("chartjs");