Skip to content

(v3.0.0-rc) defaults are overriding chart configuration #8675

@santam85

Description

@santam85

Expected Behavior

I am setting some defaults (both scripted and static) for a few parameters, but for one particular chart I want to override them. I expect the default values will not be used for a specific chart if I add explicit values in the chart configuration.

Current Behavior

The chart dataset configuration seems to be ignored, and the defaults are used. If I remove the defaults, the chart configuration is applied.

Possible Solution

not sure, but possibly related to changes done in #8374 ?

Steps to Reproduce

https://codepen.io/santa-85/pen/BaQgqYe

Environment

  • Chart.js version: since 3.0.0-beta.13
  • Browser name and version:
  • Link to your project:

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