mirror of
https://github.com/chartjs/Chart.js.git
synced 2025-12-08 20:36:08 +00:00
Make PointLabels color scriptable (#8194)
This commit is contained in:
parent
b2d5a5fa97
commit
04c45aacda
@ -183,7 +183,7 @@ function drawPointLabels(scale) {
|
||||
const context = scale.getContext(i);
|
||||
const plFont = toFont(resolve([pointLabelOpts.font], context, i), scale.chart.options.font);
|
||||
ctx.font = plFont.string;
|
||||
ctx.fillStyle = pointLabelOpts.color;
|
||||
ctx.fillStyle = resolve([pointLabelOpts.color], context, i);
|
||||
|
||||
const angle = toDegrees(scale.getIndexAngle(i));
|
||||
ctx.textAlign = getTextAlignForAngle(angle);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user