mirror of
https://github.com/samsonjs/spirit-tracker.git
synced 2026-03-25 09:25:51 +00:00
UX Improvements
This commit is contained in:
parent
1216ec7fe0
commit
ae1d98612a
1 changed files with 1 additions and 0 deletions
|
|
@ -773,6 +773,7 @@ export async function renderStats($app) {
|
||||||
max: yBounds?.max,
|
max: yBounds?.max,
|
||||||
title: { display: true, text: "Avg % vs per-SKU median" },
|
title: { display: true, text: "Avg % vs per-SKU median" },
|
||||||
ticks: {
|
ticks: {
|
||||||
|
stepSize: 1, // <- minimum 1% between ticks
|
||||||
callback: (v) => `${Number(v).toFixed(0)}%`,
|
callback: (v) => `${Number(v).toFixed(0)}%`,
|
||||||
maxTicksLimit: 12,
|
maxTicksLimit: 12,
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue