mirror of
https://github.com/chartjs/Chart.js.git
synced 2026-03-04 07:24:02 +01:00
Fix reading wrong property from font object for font string (#8315)
This commit is contained in:
@@ -312,7 +312,7 @@ export function renderText(ctx, text, x, y, font, opts = {}) {
|
||||
ctx.rotate(opts.rotation);
|
||||
}
|
||||
|
||||
ctx.font = font.fontString;
|
||||
ctx.font = font.string;
|
||||
|
||||
if (opts.color) {
|
||||
ctx.fillStyle = opts.color;
|
||||
|
||||
Reference in New Issue
Block a user