mirror of
https://github.com/UtilitechAS/amsreader-firmware.git
synced 2026-03-06 03:28:58 +00:00
Adjusted x-labels on realtime plot
This commit is contained in:
2
lib/SvelteUi/app/dist/index.js
vendored
2
lib/SvelteUi/app/dist/index.js
vendored
File diff suppressed because one or more lines are too long
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user