Add graph animation; support for line graphs
[harbour-pedalo.git] / src / statsweekdaycongestion.cpp
index c4842b3..3e19192 100644 (file)
@@ -16,7 +16,7 @@ void StatsWeekdayCongestion::update() {
     int pos;
 
     qDebug() << "Calculating values";
-    values.clear();
+    barvalues.clear();
 
     for (pos = 0; pos < 7; pos++) {
         passed[pos] = 0u;
@@ -42,7 +42,7 @@ void StatsWeekdayCongestion::update() {
         if (result > maxval) {
             maxval = result;
         }
-        values << result;
+        barvalues << result;
     }
 
     step = maxval > 5.0 ? qRound(maxval / 5.0) : (maxval / 5.0);