[monitoring] uk-payslip Panel 13: stacked bars + sum-in-legend
"Monthly cash flow — tax impact (RSU excluded)" was already stacking group A in normal mode but rendered as 70%-opacity filled lines — the overlap made the total-per-month figure visually inaccessible. Switch drawStyle to bars (100% fill, 0-width lineWidth, no per-point markers) so each month reads as a single stacked bar whose top edge is the total cash-side deduction. Add "sum" to legend.calcs so the tax-year totals per series show in the legend table alongside last and max. Panel 11 (Tax & pension — monthly, RSU-inclusive) retains the line/ area style so the two panels remain visually distinct.
This commit is contained in:
parent
2224a6b2cc
commit
68a10905e0
1 changed files with 6 additions and 5 deletions
|
|
@ -921,20 +921,20 @@
|
||||||
"unit": "currencyGBP",
|
"unit": "currencyGBP",
|
||||||
"custom": {
|
"custom": {
|
||||||
"axisPlacement": "auto",
|
"axisPlacement": "auto",
|
||||||
"drawStyle": "line",
|
"drawStyle": "bars",
|
||||||
"fillOpacity": 70,
|
"fillOpacity": 100,
|
||||||
"gradientMode": "none",
|
"gradientMode": "none",
|
||||||
"hideFrom": {
|
"hideFrom": {
|
||||||
"legend": false,
|
"legend": false,
|
||||||
"tooltip": false,
|
"tooltip": false,
|
||||||
"viz": false
|
"viz": false
|
||||||
},
|
},
|
||||||
"lineWidth": 1,
|
"lineWidth": 0,
|
||||||
"pointSize": 4,
|
"pointSize": 4,
|
||||||
"scaleDistribution": {
|
"scaleDistribution": {
|
||||||
"type": "linear"
|
"type": "linear"
|
||||||
},
|
},
|
||||||
"showPoints": "auto",
|
"showPoints": "never",
|
||||||
"spanNulls": false,
|
"spanNulls": false,
|
||||||
"stacking": {
|
"stacking": {
|
||||||
"group": "A",
|
"group": "A",
|
||||||
|
|
@ -1028,7 +1028,8 @@
|
||||||
"legend": {
|
"legend": {
|
||||||
"calcs": [
|
"calcs": [
|
||||||
"last",
|
"last",
|
||||||
"max"
|
"max",
|
||||||
|
"sum"
|
||||||
],
|
],
|
||||||
"displayMode": "table",
|
"displayMode": "table",
|
||||||
"placement": "bottom"
|
"placement": "bottom"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue