kurkle / chartjs-chart-treemap

Chart.js module for creating treemap charts
MIT License
137 stars 34 forks source link

Add CHART.JS v4 compatibility #165

Closed stockiNail closed 1 year ago

stockiNail commented 1 year ago

Fix #164

stockiNail commented 1 year ago

@kurkle I'm going on tomorrow. About requireVersion function, it didn't work with version 4.0.1. I have copied the implementation of annotation plugin, so they are aligned.

kurkle commented 1 year ago

I think it only needs updated date-fns adapter and should be fine.

stockiNail commented 1 year ago

I have an issue importing color functions from the helpers of Chartjs in the types test. I wrote it in slack. Sounds an issue of version 4 but not sure

stockiNail commented 1 year ago

I think it only needs updated date-fns adapter and should be fine.

having a look to the error, it seems more related to datalabels. Date-fns adapter version updated to 2.0.1.

stockiNail commented 1 year ago

I have an issue importing color functions from the helpers of Chartjs in the types test. I wrote it in slack. Sounds an issue of version 4 but not sure

I have changed tsconfig and now it's working

stockiNail commented 1 year ago

@kurkle do you know why date-fns is needed? I don't see any place where it's used (if I'm not wrong)