You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Check this if you would like to implement a PR, we are more than happy to help you go through the process.
Current and expected behavior
show the chart, but compile error
error TS2322: Type '{ labels: string[]; datasets: { label: string; data: number[]; type: string; }[]; }' is not assignable to type 'ChartData<"bar", (number | [number, number] | null)[], unknown>'.
Types of property 'datasets' are incompatible.
Type '{ label: string; data: number[]; type: string; }[]' is not assignable to type 'ChartDataset<"bar", (number | [number, number] | null)[]>[]'.
Type '{ label: string; data: number[]; type: string; }' is not assignable to type 'ChartDataset<"bar", (number | [number, number] | null)[]>'.
Type '{ label: string; data: number[]; type: string; }' is not assignable to type '_DeepPartialObject<{ type: "bar"; } & BarControllerDatasetOptions>'.
Types of property 'type' are incompatible.
Type 'string' is not assignable to type '"bar"'.
9 :data="data"
Would you like to work on a fix?
Current and expected behavior
show the chart, but compile error
code
not work either
Reproduction
no
chart.js version
v4.2.1
vue-chartjs version
v5.2.0
Possible solution
No response
The text was updated successfully, but these errors were encountered: