chartjs / chartjs/chartjs-plugin-annotation

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

Open
#968 8 comments 2 reactions 0 assignees View on GitHub
types
Dominant language
JavaScript
Stars
623
Forks
377
PR merge metrics
No merged PRs in 30d

Description

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"
}
}
`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.