monitoring(wealth): fix x-axis label formatting on yearly bars
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.
This commit is contained in:
parent
77bed10a51
commit
ac18c49a7b
1 changed files with 14 additions and 1 deletions
|
|
@ -507,7 +507,14 @@
|
||||||
"lineWidth": 1
|
"lineWidth": 1
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"overrides": []
|
"overrides": [
|
||||||
|
{
|
||||||
|
"matcher": {"id": "byName", "options": "year"},
|
||||||
|
"properties": [
|
||||||
|
{"id": "unit", "value": "string"}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"options": {
|
"options": {
|
||||||
"barRadius": 0,
|
"barRadius": 0,
|
||||||
|
|
@ -553,6 +560,12 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"overrides": [
|
"overrides": [
|
||||||
|
{
|
||||||
|
"matcher": {"id": "byName", "options": "year"},
|
||||||
|
"properties": [
|
||||||
|
{"id": "unit", "value": "string"}
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"matcher": {"id": "byName", "options": "contributions"},
|
"matcher": {"id": "byName", "options": "contributions"},
|
||||||
"properties": [
|
"properties": [
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue