From b0679a80aeb951efc887b639323bb71dab470978 Mon Sep 17 00:00:00 2001 From: Ben Woodford Date: Thu, 24 Sep 2015 16:02:58 +0100 Subject: [PATCH] Fixed label padding not affecting x-axis label --- 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 5ba78e2d6..188bf83aa 100644 --- a/src/scales/scale.category.js +++ b/src/scales/scale.category.js @@ -303,7 +303,7 @@ if (this.options.labels.show) { this.ctx.save(); - this.ctx.translate(xLabelValue, (isRotated) ? this.top + 12 : this.top + 8); + this.ctx.translate(xLabelValue, (isRotated) ? this.top + 12 + this.options.labels.padding : this.top + this.options.labels.padding); this.ctx.rotate(helpers.toRadians(this.labelRotation) * -1); this.ctx.font = this.font; this.ctx.textAlign = (isRotated) ? "right" : "center"; -- 2.47.2