Always add last data point to dps over time graph

This commit is contained in:
DarkPhoenix
2019-05-28 16:33:30 +03:00
parent f41d6dd2c1
commit a8a5fabce7

View File

@@ -34,6 +34,7 @@ class FitDpsVsTimeGraph(Graph):
if fit.ID not in self._cache:
self.__generateCache(fit, maxX)
currentY = None
prevY = None
xs = []
ys = []
cache = self._cache[fit.ID]
@@ -70,6 +71,9 @@ class FitDpsVsTimeGraph(Graph):
ys.append(prevY)
xs.append(currentX)
ys.append(currentY)
if max(xs) < maxX:
xs.append(maxX)
ys.append(currentY or 0)
return xs, ys
def getYForX(self, fit, extraData, x):