Skip to content

Wallos: Open-source, self-hostable personal subscription tracker. Visualize your recurring expenses, manage your budget, and save money.

Fix missing label on graphs

ellitec70859e1b07b
diff --git a/scripts/stats.js b/scripts/stats.js
index 478e3ae..98bbc62 100644
--- a/scripts/stats.js
+++ b/scripts/stats.js
@@ -8,7 +8,7 @@ function loadGraph(container, dataPoints, currency, run) {
datasets: [{
data: dataPoints.map(point => point.y),
}],
- labels: dataPoints.map(point => `(${new Intl.NumberFormat(navigator.language, { style: 'currency', currency }).format(point.y)})`),
+ labels: dataPoints.map(point => `${point.label} (${new Intl.NumberFormat(navigator.language, { style: 'currency', currency }).format(point.y)})`),
},
options: {
animation: {