From a9e7260c9219593257aec8ca7ac5ef8a211668cd Mon Sep 17 00:00:00 2001 From: Rsl1122 Date: Mon, 12 Mar 2018 12:33:00 +0200 Subject: [PATCH] Made AbstractLineGraph support missing points --- .../plan/utilities/html/graphs/line/AbstractLineGraph.java | 2 +- .../djrapitops/plan/utilities/html/graphs/line/Point.java | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Plan/src/main/java/com/djrapitops/plan/utilities/html/graphs/line/AbstractLineGraph.java b/Plan/src/main/java/com/djrapitops/plan/utilities/html/graphs/line/AbstractLineGraph.java index aa559fea8..b67ed05a8 100644 --- a/Plan/src/main/java/com/djrapitops/plan/utilities/html/graphs/line/AbstractLineGraph.java +++ b/Plan/src/main/java/com/djrapitops/plan/utilities/html/graphs/line/AbstractLineGraph.java @@ -47,7 +47,7 @@ public class AbstractLineGraph implements HighChart { int size = points.size(); for (int i = 0; i < size; i++) { Point point = points.get(i); - double y = point.getY(); + Double y = point.getY(); long date = (long) point.getX(); arrayBuilder.append("[").append(date).append(",").append(y).append("]"); if (i < size - 1) { diff --git a/Plan/src/main/java/com/djrapitops/plan/utilities/html/graphs/line/Point.java b/Plan/src/main/java/com/djrapitops/plan/utilities/html/graphs/line/Point.java index 9b7a8d475..29e44b5ac 100644 --- a/Plan/src/main/java/com/djrapitops/plan/utilities/html/graphs/line/Point.java +++ b/Plan/src/main/java/com/djrapitops/plan/utilities/html/graphs/line/Point.java @@ -8,9 +8,9 @@ import java.util.Objects; */ public class Point { private final double x; - private final double y; + private final Double y; - public Point(double x, double y) { + public Point(double x, Double y) { this.x = x; this.y = y; } @@ -19,7 +19,7 @@ public class Point { return x; } - public double getY() { + public Double getY() { return y; }