mirror of
https://github.com/henrygd/beszel.git
synced 2025-12-17 18:56:17 +01:00
change x axis time format for 1 week chart and add key
This commit is contained in:
@@ -178,7 +178,7 @@ export const chartTimeData: ChartTimeData = {
|
||||
expectedInterval: 60_000 * 120,
|
||||
label: '1 week',
|
||||
ticks: 7,
|
||||
format: (timestamp: string) => formatShortDate(timestamp),
|
||||
format: (timestamp: string) => formatDay(timestamp),
|
||||
getOffset: (endTime: Date) => timeDay.offset(endTime, -7),
|
||||
},
|
||||
'30d': {
|
||||
|
||||
Reference in New Issue
Block a user