Merge "Fix duplicate graph rendering when data change"
This commit is contained in:
commit
a238d7e22f
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue