Adjusted x-labels on realtime plot

This commit is contained in:
Gunnar Skjold
2024-04-02 13:01:00 +02:00
parent 37f90cb267
commit bdd2ec10cd
2 changed files with 2 additions and 2 deletions

File diff suppressed because one or more lines are too long

View File

@@ -89,7 +89,7 @@
}
xTicks = [];
for(let i = 0; i < realtime.size; i+=Math.round(realtime.size/Math.round(barWidth * 3))) {
for(let i = 0; i < realtime.size; i+=Math.round(realtime.size/Math.round(widthAvailable / 120))) {
xTicks.push({
value: i,
label: '-'+Math.round((realtime.size - i) / 6)+' min'