]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Fix line tension drawing, especially when set to 0 2473/head
authorEvert Timberg <evert.timberg+github@gmail.com>
Fri, 6 May 2016 11:19:38 +0000 (07:19 -0400)
committerEvert Timberg <evert.timberg+github@gmail.com>
Fri, 6 May 2016 11:19:38 +0000 (07:19 -0400)
src/controllers/controller.line.js

index ed480f4a06a55b343ab991d5dc098fd986748b2e..81733785ff7b95d898267ed8a491ac3b66e581ef 100644 (file)
@@ -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)
                        };