Added ability for drawing a Line Chart as a stepped Line Chart.

This commit is contained in:
amlethojalen
2016-07-05 19:50:53 +10:00
parent 3cdd66ca58
commit efd06c886d
2 changed files with 4 additions and 1 deletions

View File

@@ -29,6 +29,9 @@ module.exports = function(Chart) {
previousSkipHandler.call(me, previousPoint, point, nextPoint);
} else if (point._view.tension === 0) {
ctx.lineTo(point._view.x, point._view.y);
} else if (point._view.tension === -1) {
ctx.lineTo(point._view.x, previousPoint._view.y);
ctx.lineTo(point._view.x, point._view.y);
} else {
// Line between points
ctx.bezierCurveTo(