Fixed bug with bezier still being used with tension set to 0

This commit is contained in:
Tore Lervik 2015-12-23 13:36:44 +01:00
parent a423542775
commit 2c178a5670

View File

@ -37,6 +37,8 @@
skipHandler.call(this, previousPoint, point, nextPoint);
} else if (previousPoint._view.skip) {
previousSkipHandler.call(this, previousPoint, point, nextPoint);
} else if (this._chart.config.options.elements.line.tension === 0) {
ctx.lineTo(point._view.x, point._view.y);
} else {
// Line between points
ctx.bezierCurveTo(