mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-12-15 05:41:51 +08: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();
|
||||
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) {
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user