From 2bc386ee8181ff2b8bbd11cdd8e9ddf7e29d3df6 Mon Sep 17 00:00:00 2001 From: Tanner Linsley Date: Tue, 27 Oct 2015 02:33:34 -0600 Subject: [PATCH] Category Scale now plays nice with full width --- src/scales/scale.category.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scales/scale.category.js b/src/scales/scale.category.js index 039a9bef6..e3441bb20 100644 --- a/src/scales/scale.category.js +++ b/src/scales/scale.category.js @@ -30,7 +30,7 @@ widthOffset += (valueWidth / 2); } - return this.left + Math.round(widthOffset); + return this.left + this.margins.left + Math.round(widthOffset); } else { var innerHeight = this.height - (this.paddingTop + this.paddingBottom); var valueHeight = innerHeight / Math.max((this.data.labels.length - ((this.options.gridLines.offsetGridLines) ? 0 : 1)), 1);