Skip to content

Setting Default Colours #103

@AnthonySchultz

Description

@AnthonySchultz

In attempting to set default colours via setOptions() in the .config module the colours are not respected. I can, however, use Chart.defaults.global.colours. Looking at the code, in the getColours() it would seem that colours have precedence based on where they are set.

  1. scope
  2. Chart.defaults.global.colours
  3. via setOptions.

To me this seems slightly out of order. I would think the would be

  1. setOptions
  2. scope
  3. default

That way if someone needs to default all charts they can in one place, however, if colors are defined on the scope for an individual chart, they could be respected, and finally everything would fallback to the default colours.

What are your thoughts?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions