From b9e3bc040e406dff849ff06833d1fdda96793908 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?R=C3=A9mi=20-=20Le=20Filament?= <remi@le-filament.com>
Date: Mon, 26 Feb 2024 16:58:19 +0100
Subject: [PATCH] [UPD] remove extra line on pie chart title

---
 static/src/js/operation_chart.js | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/static/src/js/operation_chart.js b/static/src/js/operation_chart.js
index cb4cd42..bd87a82 100644
--- a/static/src/js/operation_chart.js
+++ b/static/src/js/operation_chart.js
@@ -426,10 +426,7 @@ odoo.define("oacc_portal_overview_cdc.operation_chart", function (require) {
             data.datasets[0].data.forEach((num) => {
                 tot += num;
             });
-            var title = [
-                "Total : " + tot + " kWh",
-                "(sur la période sélectionnée)",
-            ];
+            var title = "Total : " + tot + " kWh";
             return {
                 type: "pie",
                 data: data,
@@ -690,7 +687,7 @@ odoo.define("oacc_portal_overview_cdc.operation_chart", function (require) {
             data.datasets[0].data.forEach((num) => {
                 tot += num;
             });
-            return ["Total : " + tot + " kWh", "(sur la période sélectionnée)"];
+            return "Total : " + tot + " kWh";
         },
 
         _updateDataTemplate: function (data) {
-- 
GitLab