Commits

Daniel Nadeau committed 0d4b0e0

Fixed bar graph height... whoops!

  • Participants
  • Parent commits 1113221

Comments (0)

Files changed (1)

HoloGraphLibrary/src/com/echo/holographlibrary/BarGraph.java

 
             // Maximum y value = sum of all values.
             for (Bar p : points) {
-                maxValue += p.getValue();
+                if (p.getValue() > maxValue) {
+                    maxValue = p.getValue();
+                }
             }
             
             r = new Rect();