Skip to content

Incorrect rendering in browsers other than Chrome #2697

@dennybiasiolli

Description

@dennybiasiolli

Hi,
as you can see in this example on codepen, when we use an Array as "dataset.backgroundColor" (for example in Bar charts), legend is dislpayed incorrectly on Safari and Firefox.

ctx.fillStyle = itemOrDefault(legendItem.fillStyle, Chart.defaults.global.defaultColor);

ctx.fillStyle can be only strings, CanvasGradients, or CanvasPatterns.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions