From 2f4b9455b22581b36eff6cdaaf085839449e8571 Mon Sep 17 00:00:00 2001 From: Xavier-Do Date: Thu, 8 Feb 2024 16:36:45 +0100 Subject: [PATCH] [FIX] runbot: hide legend in new charjs version The option namespace for label changed in version 3.0 See https://www.chartjs.org/docs/3.0.2/configuration/legend.html --- runbot/static/src/js/stats.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/runbot/static/src/js/stats.js b/runbot/static/src/js/stats.js index 2cc43f8a..ea341533 100644 --- a/runbot/static/src/js/stats.js +++ b/runbot/static/src/js/stats.js @@ -6,8 +6,10 @@ var config = { animation: { duration: 0 }, - legend: { - display: false, + plugins: { + legend: { + display: false + } }, responsive: true, tooltips: {