mirror of
https://github.com/chartjs/Chart.js.git
synced 2025-12-08 20:36:08 +00:00
Scriptable tick colours (#8222)
This commit is contained in:
parent
da0535e1ff
commit
1b0ed0c8c5
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user