From: Evert Timberg Date: Fri, 6 May 2016 11:19:38 +0000 (-0400) Subject: Fix line tension drawing, especially when set to 0 X-Git-Tag: v2.1.1~2^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F2473%2Fhead;p=thirdparty%2FChart.js.git Fix line tension drawing, especially when set to 0 --- diff --git a/src/controllers/controller.line.js b/src/controllers/controller.line.js index ed480f4a0..81733785f 100644 --- a/src/controllers/controller.line.js +++ b/src/controllers/controller.line.js @@ -203,6 +203,7 @@ module.exports = function(Chart) { backgroundColor: this.getPointBackgroundColor(point, index), borderColor: this.getPointBorderColor(point, index), borderWidth: this.getPointBorderWidth(point, index), + tension: meta.dataset._model ? meta.dataset._model.tension : 0, // Tooltip hitRadius: point.custom && point.custom.hitRadius ? point.custom.hitRadius : helpers.getValueAtIndexOrDefault(this.getDataset().pointHitRadius, index, this.chart.options.elements.point.hitRadius) };