Made AbstractLineGraph support missing points

This commit is contained in:
Rsl1122 2018-03-12 12:33:00 +02:00
parent 91e99337e3
commit a9e7260c92
2 changed files with 4 additions and 4 deletions

View File

@ -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) {

View File

@ -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;
}