Merge "Fix duplicate graph rendering when data change"

This commit is contained in:
Jenkins 2016-12-02 00:49:43 +00:00 committed by Gerrit Code Review
commit a238d7e22f
1 changed files with 2 additions and 0 deletions

View File

@ -47,6 +47,8 @@ function chartCanvasLine() {
}
var ctx = base.ctx;
ctx.clearRect(0, 0, base.canvas.width, base.canvas.height);
ctx.strokeStyle = stroke;
ctx.lineWidth = lineWidth * base.ratio;