Closed Oleksii14 closed 2 months ago
https://github.com/apertureless/vue-chartjs/issues/1058
As you can see in the original issue, there is a problem with Bar chart typing (other charts maybe also have it). The Data type is not fully correct since Bar chart can accept other data types apart from the described ones in the typedCharts.d.ts.
Bar
typedCharts.d.ts
ExtendedDataPoint
There's a new type named ExtendedDataPoint which represents objects like { x: 1, y: 2 }, { id: 'Sales', nested: {value: 1500} and so on. Based on https://www.chartjs.org/docs/latest/general/data-structures.html
{ x: 1, y: 2 }
{ id: 'Sales', nested: {value: 1500}
Thanks! 🙏
Related issue
https://github.com/apertureless/vue-chartjs/issues/1058
Motivation of change
As you can see in the original issue, there is a problem with Bar chart typing (other charts maybe also have it). The Data type is not fully correct since
Bar
chart can accept other data types apart from the described ones in thetypedCharts.d.ts
.Previously
Now
Notes about
ExtendedDataPoint
There's a new type named
ExtendedDataPoint
which represents objects like{ x: 1, y: 2 }
,{ id: 'Sales', nested: {value: 1500}
and so on. Based on https://www.chartjs.org/docs/latest/general/data-structures.html