fix power chart ranges
This commit is contained in:
@@ -101,10 +101,12 @@
|
|||||||
label: 'Duration',
|
label: 'Duration',
|
||||||
tickFormat: (d: number) => formatDuration(d),
|
tickFormat: (d: number) => formatDuration(d),
|
||||||
grid: true,
|
grid: true,
|
||||||
|
domain: [data[0]?.d ?? 1, Math.max(7200, ...data.map(d => d.d))],
|
||||||
},
|
},
|
||||||
y: {
|
y: {
|
||||||
label: 'Avg power (W)',
|
label: 'Avg power (W)',
|
||||||
grid: true,
|
grid: true,
|
||||||
|
domain: [0, null],
|
||||||
},
|
},
|
||||||
color: {
|
color: {
|
||||||
domain: selectedKeys,
|
domain: selectedKeys,
|
||||||
|
|||||||
Reference in New Issue
Block a user