Fix graph scale with no data
This commit is contained in:
parent
94d96cbc80
commit
86b494229e
|
@ -78,6 +78,8 @@ public class GraphData {
|
|||
if (bgReadingsArray == null || bgReadingsArray.size() == 0) {
|
||||
if (L.isEnabled(L.OVERVIEW))
|
||||
log.debug("No BG data.");
|
||||
maxY = 10;
|
||||
minY = 0;
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue