From: Evert Timberg Date: Sat, 2 May 2015 19:03:40 +0000 (-0400) Subject: Ensure that the bar draws to the correct spot X-Git-Tag: v2.0-alpha~27^2^2 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=refs%2Fpull%2F1115%2Fhead;p=thirdparty%2FChart.js.git Ensure that the bar draws to the correct spot --- diff --git a/src/Chart.Bar.js b/src/Chart.Bar.js index 73ac93ef9..e911cb500 100644 --- a/src/Chart.Bar.js +++ b/src/Chart.Bar.js @@ -149,6 +149,7 @@ if (this.scale.beginAtZero || ((this.scale.min <= 0 && this.scale.max >= 0) || (this.scale.min >= 0 && this.scale.max <= 0))) { base = this.scale.calculateY(0); + base += this.options.scaleGridLineWidth; } else if (this.scale.min < 0 && this.scale.max < 0) {