From f39a7501c3dfb80d699de13c06c26eb03cfe1db4 Mon Sep 17 00:00:00 2001 From: "Alexis A." Date: Mon, 15 Jul 2024 15:56:09 +0200 Subject: [PATCH] fix(ArtifWaterfallChart): make desartif positif --- project/charts/ArtifWaterfallChart.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/project/charts/ArtifWaterfallChart.py b/project/charts/ArtifWaterfallChart.py index 5f9838263..367245f35 100644 --- a/project/charts/ArtifWaterfallChart.py +++ b/project/charts/ArtifWaterfallChart.py @@ -47,8 +47,8 @@ def add_series(self): years_str = f"{self.project.first_year_ocsge} - {self.project.last_year_ocsge}" new_artif = series["new_artif"] - new_desartif = series["new_natural"] * -1 - artif_nette = new_artif + new_desartif + new_desartif = series["new_natural"] + artif_nette = new_artif - new_desartif total_artif_data = [{"name": years_str, "y": new_artif}] if new_artif != 0 else [] total_desartif_data = [{"name": years_str, "y": new_desartif}] if new_desartif != 0 else [] artif_nette_data = [{"name": years_str, "y": artif_nette}] if artif_nette != 0 else []