fix power chart ranges

This commit is contained in:
Davide Scaini
2026-04-11 09:02:58 +02:00
parent 8219db7bfa
commit 087ef1b776
+2
View File
@@ -101,10 +101,12 @@
label: 'Duration',
tickFormat: (d: number) => formatDuration(d),
grid: true,
domain: [data[0]?.d ?? 1, Math.max(7200, ...data.map(d => d.d))],
},
y: {
label: 'Avg power (W)',
grid: true,
domain: [0, null],
},
color: {
domain: selectedKeys,