[Chartjs]-Error :'Type 'keyof ChartTypeRegistry' is not assignable to type '"bar"'. Type '"line"' is not assignable to type '"bar"'.'

1👍

You need to pass "bar" as a type argument to the ChartData type, like this ChartData<"bar">.

Leave a comment