From 1b0ed0c8c537cd633d5d126671217799ae9da245 Mon Sep 17 00:00:00 2001 From: Evert Timberg Date: Tue, 22 Dec 2020 12:11:00 -0500 Subject: [PATCH] Scriptable tick colours (#8222) --- src/core/core.scale.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/core/core.scale.js b/src/core/core.scale.js index d04160bf7..e844544f1 100644 --- a/src/core/core.scale.js +++ b/src/core/core.scale.js @@ -1385,6 +1385,7 @@ export default class Scale extends Element { lineHeight = font.lineHeight; lineCount = isArray(label) ? label.length : 1; const halfCount = lineCount / 2; + const color = resolve([optionTicks.color], me.getContext(i), i); if (isHorizontal) { x = pixel; @@ -1421,7 +1422,7 @@ export default class Scale extends Element { rotation, label, font, - color: optionTicks.color, + color, textOffset, textAlign, textBaseline, -- 2.47.2