Skip to content

Commit

Permalink
Fix bug chartjs#4202
Browse files Browse the repository at this point in the history
  • Loading branch information
leonfed committed Nov 19, 2017
1 parent e080e78 commit 6501391
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/controllers/controller.line.js
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,13 @@ module.exports = function(Chart) {
var chart = me.chart;
var meta = me.getMeta();
var points = meta.data || [];
var area = chart.chartArea;
var increaseArea = meta.dataset._model ? meta.dataset._model.borderWidth / 2 : 0;
var area = {
left: chart.chartArea.left,
top: chart.chartArea.top - increaseArea,
right: chart.chartArea.right,
bottom: chart.chartArea.bottom + increaseArea
};
var ilen = points.length;
var i = 0;

Expand Down

0 comments on commit 6501391

Please sign in to comment.