This commit is contained in:
Kevin Chung
2016-03-21 13:13:59 -04:00
parent 742132abdb
commit 417e51eba9

View File

@@ -63,7 +63,7 @@ function scoregraph () {
for(var j = 0; j < scores[teams[i]].length; j++){ for(var j = 0; j < scores[teams[i]].length; j++){
team_score.push(scores[teams[i]][j].value); team_score.push(scores[teams[i]][j].value);
var date = moment(scores[teams[i]][j].time * 1000); var date = moment(scores[teams[i]][j].time * 1000);
times.push(date.format('YYYY-MM-DD hh:mm:ss')); times.push(date.toDate());
} }
team_score = cumulativesum(team_score); team_score = cumulativesum(team_score);
var trace = { var trace = {