mirror of
https://github.com/chartjs/Chart.js.git
synced 2025-12-08 20:36:08 +00:00
Fix flipped stepped line in filler plugin (#4697)
This commit is contained in:
parent
31049ebcba
commit
488cbbcbf6
@ -165,7 +165,7 @@ var exports = module.exports = {
|
||||
|
||||
lineTo: function(ctx, previous, target, flip) {
|
||||
if (target.steppedLine) {
|
||||
if (target.steppedLine === 'after') {
|
||||
if ((target.steppedLine === 'after' && !flip) || (target.steppedLine !== 'after' && flip)) {
|
||||
ctx.lineTo(previous.x, target.y);
|
||||
} else {
|
||||
ctx.lineTo(target.x, previous.y);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user