From c70859e1b07bed2c79e8d09bf3a04487267f8ffe Mon Sep 17 00:00:00 2001 From: ellite Date: Thu, 16 Nov 2023 23:39:32 +0100 Subject: [PATCH] Fix missing label on graphs --- scripts/stats.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: {