mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2025-01-14 20:21:45 +01:00
Made AbstractLineGraph support missing points
This commit is contained in:
parent
91e99337e3
commit
a9e7260c92
@ -47,7 +47,7 @@ public class AbstractLineGraph implements HighChart {
|
|||||||
int size = points.size();
|
int size = points.size();
|
||||||
for (int i = 0; i < size; i++) {
|
for (int i = 0; i < size; i++) {
|
||||||
Point point = points.get(i);
|
Point point = points.get(i);
|
||||||
double y = point.getY();
|
Double y = point.getY();
|
||||||
long date = (long) point.getX();
|
long date = (long) point.getX();
|
||||||
arrayBuilder.append("[").append(date).append(",").append(y).append("]");
|
arrayBuilder.append("[").append(date).append(",").append(y).append("]");
|
||||||
if (i < size - 1) {
|
if (i < size - 1) {
|
||||||
|
@ -8,9 +8,9 @@ import java.util.Objects;
|
|||||||
*/
|
*/
|
||||||
public class Point {
|
public class Point {
|
||||||
private final double x;
|
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.x = x;
|
||||||
this.y = y;
|
this.y = y;
|
||||||
}
|
}
|
||||||
@ -19,7 +19,7 @@ public class Point {
|
|||||||
return x;
|
return x;
|
||||||
}
|
}
|
||||||
|
|
||||||
public double getY() {
|
public Double getY() {
|
||||||
return y;
|
return y;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user