Skip to content

Commit

Permalink
fix(ArtifWaterfallChart): make desartif positif
Browse files Browse the repository at this point in the history
  • Loading branch information
alexisig authored and smdsgn committed Jul 15, 2024
1 parent 75a977b commit f39a750
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions project/charts/ArtifWaterfallChart.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 []
Expand Down

0 comments on commit f39a750

Please sign in to comment.