From ac18c49a7b0ad4942947106da79d28844b8895d6 Mon Sep 17 00:00:00 2001 From: Viktor Barzin Date: Sat, 25 Apr 2026 23:31:03 +0000 Subject: [PATCH] monitoring(wealth): fix x-axis label formatting on yearly bars MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The default fieldConfig unit (percent on Yearly investment return %, currencyGBP on Annual change decomposition) was being applied to the "year" string column too — so x-axis labels rendered as "2024%" and "£2,024" respectively. Add field overrides on the "year" column to force unit=string. The earlier "tax_year" panels weren't affected because "2024/25" doesn't parse as a number; "2024" did. --- .../modules/monitoring/dashboards/wealth.json | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/stacks/monitoring/modules/monitoring/dashboards/wealth.json b/stacks/monitoring/modules/monitoring/dashboards/wealth.json index fd969702..a781cc48 100644 --- a/stacks/monitoring/modules/monitoring/dashboards/wealth.json +++ b/stacks/monitoring/modules/monitoring/dashboards/wealth.json @@ -507,7 +507,14 @@ "lineWidth": 1 } }, - "overrides": [] + "overrides": [ + { + "matcher": {"id": "byName", "options": "year"}, + "properties": [ + {"id": "unit", "value": "string"} + ] + } + ] }, "options": { "barRadius": 0, @@ -553,6 +560,12 @@ } }, "overrides": [ + { + "matcher": {"id": "byName", "options": "year"}, + "properties": [ + {"id": "unit", "value": "string"} + ] + }, { "matcher": {"id": "byName", "options": "contributions"}, "properties": [