Fix line tension drawing, especially when set to 0

This commit is contained in:
Evert Timberg 2016-05-06 07:19:38 -04:00
parent c079d73db0
commit c4bff1602e

View 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)
};