commit
9a94ac0cc3
|
@ -301,11 +301,18 @@ function createLineGraph(containerId, raceData){
|
|||
}
|
||||
|
||||
function getLapTextArray(raceData, d){
|
||||
|
||||
var driverText = getDriverCodeById(raceData,d.driverId);
|
||||
var lapText = "Lap: " + d.lap;
|
||||
var posText = "Pos: " + d.position;
|
||||
|
||||
var returnArr = [driverText, lapText, posText];
|
||||
if(d.time){
|
||||
var timeText = "Time: " + d.time;
|
||||
return [driverText, lapText, posText, timeText];
|
||||
returnArr.push(timeText);
|
||||
}
|
||||
|
||||
return returnArr;
|
||||
}
|
||||
|
||||
function getPitStopTextArray(raceData, d){
|
||||
|
|
Loading…
Reference in New Issue