From d7da5c566c073be3b633a428f4eeaf01f92565f2 Mon Sep 17 00:00:00 2001 From: Evert Timberg Date: Sun, 18 Nov 2018 03:45:41 -0500 Subject: [PATCH] Fix axis line width when option is an array (#5751) When the axis lineWidth setting is set to an array, use the first item when determining the size of the axis area. --- 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 f08c68fe918..28211b7f43a 100644 --- a/src/core/core.scale.js +++ b/src/core/core.scale.js @@ -708,7 +708,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;