Managed to make the sparklines coordinate with their colour.

However the symbols had to be removed. The sparkline can also be intialised at any time now but this might need to be tested further to ensure that it works.

#story[952]
This commit is contained in:
Kusal Ekanayake
2017-05-21 19:49:11 +12:00
parent 07c76f12e1
commit 8f81060a18
5 changed files with 68 additions and 52 deletions
+3 -3
View File
@@ -107,9 +107,9 @@ public class Yacht {
}
public void setLegNumber(Integer legNumber) {
// if (colour != null && position != "-" && legNumber != this.legNumber&& RaceViewController.sparkLineStatus(sourceID)) {
// RaceViewController.updateYachtPositionSparkline(this, legNumber);
// }
if (colour != null && position != "-" && legNumber != this.legNumber&& RaceViewController.sparkLineStatus(sourceID)) {
RaceViewController.updateYachtPositionSparkline(this, legNumber);
}
this.legNumber = legNumber;
}