skypackjs / skypack-cdn

An issue tracker for the CDN
107 stars 5 forks source link

chartjs-plugin-datalabels is built with outdated dependencies #229

Open dbauszus-glx opened 2 years ago

dbauszus-glx commented 2 years ago

We have a problem with the chartjs-plugin-datalabels imported from skypack.

Chart.js 3.5.1 was released on 18th August. https://www.skypack.dev/view/chart.js

Plugin-Datalabels 2.0.0 was released on 1st July https://www.skypack.dev/view/chartjs-plugin-datalabelshttps://www.skypack.dev/view/chartjs-plugin-datalabels

The dataset-plugin is therefore build with a previous version of chart.js 3.5.0

This causes an issue when we try to use the dataset plugin for pie charts. The issue was fixed in chart.js 3.5.1.

You can see the issue in this codepen.

https://codepen.io/dbauszus-glx/pen/NWgQNjj

Change the type from 'bar' to 'pie' will cause the chart to fail. The dev tools indicate that the plugin import uses chart.js helper methods from the 3.5.0 library.

Is it possible for you to trigger the plugin-datalabels build which should now use the current chart.js library (3.5.1)?

dbauszus-glx commented 2 years ago

I assume this is also related to this issue https://github.com/skypackjs/skypack-cdn/issues/159