fix iob rendering

This commit is contained in:
Milos Kozak 2017-04-24 13:24:16 +02:00
parent a07a8755b1
commit 80305aae3a

View file

@ -1061,7 +1061,7 @@ public class OverviewFragment extends Fragment implements View.OnClickListener,
//maxCobValueFound = Math.max(maxCobValueFound, mealData.mealCOB);
}
}
iobArray.add(iobArray.get(0)); // close the path
iobArray.add(new DataPoint(fromTime, 0)); // close the path
DataPoint[] iobData = new DataPoint[iobArray.size()];
iobData = iobArray.toArray(iobData);
iobSeries = new LineGraphSeries<>(iobData);