From f547fd258d9121f93d27b29ee5743a6b9626f962 Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Mon, 7 Nov 2022 00:53:30 +0000 Subject: [PATCH] Fix squashed charts --- app/public/static/package_charts.js | 14 +++++++------- app/templates/packages/stats.html | 14 ++++++-------- 2 files changed, 13 insertions(+), 15 deletions(-) diff --git a/app/public/static/package_charts.js b/app/public/static/package_charts.js index 2397d158..42b37965 100644 --- a/app/public/static/package_charts.js +++ b/app/public/static/package_charts.js @@ -106,15 +106,15 @@ async function load_data() { type: "doughnut", data: data, options: { - plugins: { - legend: { - position: "right", - labels: { - color: labelColor, + responsive: true, + plugins: { + legend: { + labels: { + color: labelColor, + }, }, }, - }, - } + } }; new Chart(ctx, config); } diff --git a/app/templates/packages/stats.html b/app/templates/packages/stats.html index 13cf1bed..f58495f2 100644 --- a/app/templates/packages/stats.html +++ b/app/templates/packages/stats.html @@ -7,7 +7,7 @@ {% block scriptextra %} - + {% endblock %} {% block content %} @@ -39,15 +39,13 @@ {{ _("No data") }}