From: Evert Timberg Date: Tue, 22 Dec 2020 17:11:00 +0000 (-0500) Subject: Scriptable tick colours (#8222) X-Git-Tag: v3.0.0-beta.8~37 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1b0ed0c8c537cd633d5d126671217799ae9da245;p=thirdparty%2FChart.js.git Scriptable tick colours (#8222) --- 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,