-
Notifications
You must be signed in to change notification settings - Fork 12k
Closed
Labels
Description
Expected behavior
When using TypeScript the LegendItem in my example is supposed to have a structure of
`{
text: string;
fillStyle: string;
strokeStyle: string;
lineWidth: number;
hidden: boolean,
index: number
}`
Current behavior
But in the type definitions of chart.js the index is missing and replaced by datasetIndex: Relevant File
Reproducible sample
Optional extra steps/info to reproduce
No response
Possible solution
Change the TypeDefinition to include the index
Context
I'm using Vue 3 with Typescript and my code editor throws an error.
chart.js version
v3.7.1
Browser name and version
Chrome 100.0.4896.127
Link to your project
No response
Reactions are currently unavailable