]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Fixed bug with bezier still being used with tension set to 0
authorTore Lervik <tore@lervik.com>
Wed, 23 Dec 2015 12:36:44 +0000 (13:36 +0100)
committerTore Lervik <tore@lervik.com>
Wed, 23 Dec 2015 12:36:44 +0000 (13:36 +0100)
src/elements/element.line.js

index 2ba31eadbfe2cfa9fd8f6f953a165a4e06fcf64f..78e8e2f3feb4feb5e2287a5201fc8dde2c2d2e23 100644 (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(