chartjs / chartjs/chartjs-plugin-annotation
Type '"doughnutLabel"' is not assignable to type '"line" | "label" | "box" | "ellipse" | "point" | "polygon" | undefined'
Open
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
Assessment
This issue has not been assessed yet.