mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2024-12-26 05:19:05 +01:00
Fix x-axis order for relative timestamps
- WIP: Will change to full times, as tick location is incorrect
This commit is contained in:
parent
284a7079d6
commit
1921be661b
@ -131,7 +131,13 @@
|
||||
scale: 'x',
|
||||
space: 35,
|
||||
incrs: timeIncrs(timestep, maxX),
|
||||
values: (_, vals) => forNode ? vals.reverse().map(v => formatTime(v, forNode)) : vals.map(v => formatTime(v))
|
||||
values: (_, vals) => {
|
||||
if (forNode === true) {
|
||||
return vals.map(v => formatTime(v, forNode)).reverse()
|
||||
} else {
|
||||
return vals.map(v => formatTime(v))
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
scale: 'y',
|
||||
|
Loading…
Reference in New Issue
Block a user