Skip to content

Commit

Permalink
Fix flipped stepped line in filler plugin (chartjs#4697)
Browse files Browse the repository at this point in the history
  • Loading branch information
nagix authored and simonbrunel committed Aug 26, 2017
1 parent 4cca5be commit 68da1e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/helpers/helpers.canvas.js
Expand Up @@ -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);
Expand Down

0 comments on commit 68da1e3

Please sign in to comment.