mirror of
https://github.com/UtilitechAS/amsreader-firmware.git
synced 2026-02-06 08:36:15 +00:00
Fixed negative month cost in realtime calculation
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
heightAvailable = height-(config.title ? 20 : 0);
|
||||
let innerWidth = width - (config.padding.left + config.padding.right);
|
||||
barWidth = innerWidth / config.points.length;
|
||||
labelOffset = barWidth < vertSwitch ? 30 : 10;
|
||||
labelOffset = barWidth < vertSwitch ? 30 : 15;
|
||||
|
||||
let yPerUnit = (heightAvailable-config.padding.top-config.padding.bottom)/(config.y.max-config.y.min);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user