From e5254d253900d830f8e9f5011266811c356d4323 Mon Sep 17 00:00:00 2001 From: user Date: Sun, 24 Mar 2024 01:44:41 +0100 Subject: chart responsive --- src/static/histogram.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/static') diff --git a/src/static/histogram.js b/src/static/histogram.js index 6046766..d76fc60 100644 --- a/src/static/histogram.js +++ b/src/static/histogram.js @@ -10,6 +10,9 @@ var myChart = new Chart(ctx, { datasets: datasets }, options: { + responsive: true, + maintainAspectRatio: false, + scales: { y: { stacked: true, -- cgit v1.2.3