visual for total spend fixed,

This commit is contained in:
Jake
2025-04-13 11:02:57 +01:00
parent 7668f790aa
commit cb5c03ab74
5 changed files with 153 additions and 147 deletions
+4 -2
View File
@@ -2,7 +2,6 @@ import polars as pl
import plotly.express as px
import pandas as pd
import logging
import sys
import config.exit_codes as ec
# import datetime
@@ -115,10 +114,13 @@ class data_components():
font_color='white'
)
total_spend_line = f"### £{total_spend:,.2f}"
data = {"spend_per_day_line": spend_per_day_line,
"spend_per_category_bar": spend_per_category_bar,
"spend_per_payee_bar": spend_per_payee_bar,
"total_spend": total_spend}
"total_spend": total_spend_line}
if callback == 0:
return data
else: