fix power chart ranges
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user