Fixed scoreboard show graph bug

This commit is contained in:
Bird101
2016-02-17 12:39:22 +08:00
parent 2b4ccffe1b
commit 704c4144e7

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]
}