Skip to content

New color plugin doesn't color custom extended controller for pie, doughnut and polar #10850

@stockiNail

Description

@stockiNail

Feature Proposal

In version 4 (I'm testing alpha 3), there is new colors plugin which should set a default colors for dataset. PR 10764.

Currently the plugin is testing the chart type to get the colorizer but, creating own chart, extending existing controllers (and only in this case), the plugin doesn't recognize the type and use the default colorizer. This is often correct but if you extend a pie, doughnut or polar (where there is a specific colorizer) it doesn't color the data element.

Codepen: https://codepen.io/stockinail/pen/qBKZgGg

Not sure if this is working as design. If yes, I'd suggest to add a note in the documentation.

Possible Implementation

Maybe the solution could be to test the controller class (instanceof ?) for each dataset meta with Pie, Doughnut or Polar controller class.

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