Fixed scoreboard show graph bug

selenium-screenshot-testing
Bird101 2016-02-17 12:39:22 +08:00
parent 2b4ccffe1b
commit 704c4144e7
1 changed files with 2 additions and 1 deletions

View File

@ -65,9 +65,10 @@ function scoregraph () {
var date = moment(scores[teams[i]][j].time * 1000);
times.push(date.format('YYYY-MM-DD hh:mm:ss'));
}
team_score = cumulativesum(team_score);
var trace = {
x: times,
y: scores,
y: team_score,
mode: 'lines+markers',
name: teams[i]
}