From: Tanner Linsley Date: Tue, 27 Oct 2015 01:24:48 +0000 (-0600) Subject: Do not draw line up on first point of line X-Git-Tag: 2.0.0-beta1~44 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=74c04a354a91d8d98a921387e88cf165b26811f8;p=thirdparty%2FChart.js.git Do not draw line up on first point of line --- diff --git a/src/elements/element.line.js b/src/elements/element.line.js index 73690d06d..f094dea6e 100644 --- a/src/elements/element.line.js +++ b/src/elements/element.line.js @@ -146,6 +146,11 @@ return; } + // If First point, move to the point ahead of time (so a line doesn't get drawn up the left axis) + if (!index) { + ctx.moveTo(point._view.x, point._view.y); + } + // Draw a bezier line to the point if (vm.tension > 0 && index) { ctx.bezierCurveTo(