Skip to content

Type '"doughnutLabel"' is not assignable to type '"line" | "label" | "box" | "ellipse" | "point" | "polygon" | undefined' #968

Open
@BlackyUmbreon

Description

@BlackyUmbreon

Using Chart.js^4.4.8 and chartjs-plugin-annotation^3.1.0
I added doughnut annotation into chart, but it comes up the error message with this
Type '"doughnutLabel"' is not assignable to type '"line" | "label" | "box" | "ellipse" | "point" | "polygon" | undefined'.

annotations: { label: { type: "doughnutLabel" } }

Metadata

Metadata

Assignees

No one assigned

    Labels

    typesTypescript type changes

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions