From 6837e8b35b9d1b0da3662043157143dcde684aa3 Mon Sep 17 00:00:00 2001 From: etimberg Date: Sun, 30 Sep 2018 20:57:23 -0400 Subject: [PATCH] When the axis lineWidth setting is set to an array, use the first item when determining the size of the axis area. Resolves #5668 --- src/core/core.scale.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/core.scale.js b/src/core/core.scale.js index 78ede6985f6..76bdb0d290c 100644 --- a/src/core/core.scale.js +++ b/src/core/core.scale.js @@ -704,7 +704,7 @@ module.exports = Element.extend({ var itemsToDraw = []; - var axisWidth = me.options.gridLines.lineWidth; + var axisWidth = helpers.valueAtIndexOrDefault(me.options.gridLines.lineWidth, 0); var xTickStart = options.position === 'right' ? me.left : me.right - axisWidth - tl; var xTickEnd = options.position === 'right' ? me.left + tl : me.right; var yTickStart = options.position === 'bottom' ? me.top + axisWidth : me.bottom - tl - axisWidth;