Add chart tick width estimation

This commit is contained in:
2024-05-03 00:52:31 +01:00
parent cb5fb93c97
commit 4c2cb0ecec
5 changed files with 11 additions and 5 deletions

View File

@@ -29,6 +29,7 @@ export const Memory = () => {
values: [staticData.total_memory, staticData.total_swap],
labels: ['Total memory', 'Total swap'],
}}
domain={[0, Math.max(staticData.total_memory, staticData.total_swap)]}
formatOptions={{ units: 'B' }}
data={history}
total={2}