Skip to content

custom scales: Cannot determine type of '${name}' axis. #10945

Closed
@sgratzl

Description

@sgratzl

Expected behavior

I'm developing https://github.com/sgratzl/chartjs-chart-geo and I'm in the process to upgrade to chart.js v4. Part of the plugin are multiple new scales types configured in scale keys like xy, size, and color.

e.g.
https://github.com/sgratzl/chartjs-chart-geo/blob/3d92cd17afaeec887d05bf9ccf677a2e0bdab607/samples/albers.html#L40-L50

I expect that I don't to alter the configuration and it keeps working like before

Current behavior

However, I now get this error:

Cannot determine type of '${name}' axis. Please provide 'axis' or 'position' option.

which I don't understand or how I fix it

Reproducible sample

https://codepen.io/sgratzl/pen/GRGzEjb

Optional extra steps/info to reproduce

No response

Possible solution

No response

Context

No response

chart.js version

v4.0.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