Skip to content

Commit d1b1141

Browse files
nagixsimonbrunel
authored andcommitted
Keep lines on the left and right edges from being cut (chartjs#6285)
1 parent 73f62a9 commit d1b1141

File tree

5 files changed

+2
-2
lines changed

5 files changed

+2
-2
lines changed

src/controllers/controller.line.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -278,8 +278,8 @@ module.exports = DatasetController.extend({
278278
halfBorderWidth = (meta.dataset._model.borderWidth || 0) / 2;
279279

280280
helpers.canvas.clipArea(chart.ctx, {
281-
left: area.left,
282-
right: area.right,
281+
left: area.left - halfBorderWidth,
282+
right: area.right + halfBorderWidth,
283283
top: area.top - halfBorderWidth,
284284
bottom: area.bottom + halfBorderWidth
285285
});
Loading
Loading
Loading
Loading

0 commit comments

Comments
 (0)