Default unit on volume labels to kg

Closes #100
This commit is contained in:
Brandon Presley 2022-10-26 18:04:33 +13:00
parent b19033b814
commit 3be82e0b36
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@ export default function ViewBest() {
yData={volumes.map(v => v.value)} yData={volumes.map(v => v.value)}
yFormat={(value: number) => yFormat={(value: number) =>
`${value.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ',')}${ `${value.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ',')}${
volumes[0].unit volumes[0].unit || 'kg'
}` }`
} }
xData={weights} xData={weights}