From ab2c3ce4e948b913845d030e4f02843e680b2f11 Mon Sep 17 00:00:00 2001 From: Tanner Linsley Date: Tue, 27 Oct 2015 02:33:45 -0600 Subject: [PATCH] Linear Scale now plays nice with full width --- src/scales/scale.linear.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);