mirror of
https://github.com/chartjs/Chart.js.git
synced 2026-03-07 16:56:50 +01:00
Added ability for drawing a Line Chart as a stepped Line Chart.
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user