Skip to content

backgroundColor doesn't work since v4? #11002

@DavideViolante

Description

@DavideViolante

Expected behavior

On latest v3 I used options.backgroundColor: [array of strings of hex colors]. On v4 it doesn't seem to have any effect, and I can't find any migration about that.

Edit: it seems it must be inside datasets array, where is this mentioned in the migration from v3 to v4?!

Current behavior

Default light blue colors are shown.

Reproducible sample

https://codepen.io/davideviolante/pen/NWBWdaa

Optional extra steps/info to reproduce

No response

Possible solution

No response

Context

No response

chart.js version

v4.1.1

Browser name and version

No response

Link to your project

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions