Skip to content

Commit

Permalink
Remove line on innerlabels
Browse files Browse the repository at this point in the history
  • Loading branch information
kingcocomango committed Jul 26, 2018
1 parent 3ca46cc commit 1fdd661
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/classes.js
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,7 @@ export default {
this.center.copy.y += .5;
}
}
return innerLabel;
};

this.moveLabelToOffset = function() {
Expand Down
4 changes: 2 additions & 2 deletions src/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,8 @@ Chart.plugins.register({
}

if (i < elements.length) {
label.update(el._view, elements, i);
label.drawLine(ctx);
const innerLabel = label.update(el._view, elements, i);
innerLabel || label.drawLine(ctx);
} else {
label.draw(ctx);
}
Expand Down

0 comments on commit 1fdd661

Please sign in to comment.