From d696b52fdc7c051efbb17511571809367fefb1a6 Mon Sep 17 00:00:00 2001 From: Gertjan van den Burg Date: Fri, 30 Aug 2019 12:51:40 +0100 Subject: Add note on not resizing the graph to the window size --- app/static/js/makeChart.js | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'app/static/js/makeChart.js') diff --git a/app/static/js/makeChart.js b/app/static/js/makeChart.js index b6e3de2..9b074f1 100644 --- a/app/static/js/makeChart.js +++ b/app/static/js/makeChart.js @@ -59,6 +59,14 @@ function baseChart( divWidth, divHeight ) { + /* Note: + * It may be tempting to scale the width/height of the div to be + * proportional to the size of the window. However this may cause some + * users with wide screens to perceive changes in the time series + * differently than others because the horizontal axis is more + * stretched out. It is therefore better to keep the size of the graph + * the same for all users. + */ if (divWidth === null || typeof divWidth === 'undefined') divWidth = 1000; if (divHeight === null || typeof divHeight === 'undefined') -- cgit v1.2.3