Skip to content

Commit 4f04ee5

Browse files
nagixsimonbrunel
authored andcommitted
Keep lines on the left and right edges from being cut (#6285)
1 parent 200672a commit 4f04ee5

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
});
125 Bytes
Loading
389 Bytes
Loading
311 Bytes
Loading
311 Bytes
Loading

0 commit comments

Comments
 (0)