From: Tanner Linsley Date: Tue, 27 Oct 2015 08:33:45 +0000 (-0600) Subject: Linear Scale now plays nice with full width X-Git-Tag: 2.0.0-beta2~25^2~31 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ab2c3ce4e948b913845d030e4f02843e680b2f11;p=thirdparty%2FChart.js.git Linear Scale now plays nice with full width --- diff --git a/src/scales/scale.linear.js b/src/scales/scale.linear.js index bacf69934..67bbde436 100644 --- a/src/scales/scale.linear.js +++ b/src/scales/scale.linear.js @@ -196,7 +196,7 @@ if (this.isHorizontal()) { var innerWidth = this.width - (this.paddingLeft + this.paddingRight); - pixel = this.left + (innerWidth / range * (rightValue - this.start)); + pixel = this.left + this.margins.left + (innerWidth / range * (rightValue - this.start)); return Math.round(pixel + this.paddingLeft); } else { var innerHeight = this.height - (this.paddingTop + this.paddingBottom);