[Chartjs]-ChartJS v2.6 update breaks custom line-with-area-range (stripe) chart

0👍

Worked it out.

lineToNextPoint() became obsolete and the lineTo() helper can be used.

So…

Chart.elements.Line.prototype.lineToNextPoint.apply({
_chart: {
ctx: ctx
}
}, [previous, point, next, null, null])

…is replaced with:

helpers.canvas.lineTo(ctx, previous._view, point._view);

Leave a comment