ankane / chartkick

Create beautiful JavaScript charts with one line of Ruby
https://chartkick.com
MIT License
6.33k stars 565 forks source link

Add support for chart.js 4.x #601

Closed kwent closed 1 year ago

kwent commented 1 year ago

Add support for chart.js 4.x

https://www.chartjs.org/docs/latest/migration/v4-migration.html

ankane commented 1 year ago

Hey @kwent, added to Chartkick.js in https://github.com/ankane/chartkick.js/commit/945b170870410b64e6d51a3f0df7c46e7e869289, but want to do some more testing before releasing and upgrading the gem.

ankane commented 1 year ago

Quick update: I've done a lot of testing with different asset frameworks (importmaps, jsbundling esbuild, jsbundling webpack, jsbundling rollup, webpacker, sprockets), including support for plugins (#597), and am pretty happy with things.

There's an issue with the latest Chart.js (4.1.2) and Webpacker (which uses Webpack 4), which is resolved by https://github.com/chartjs/Chart.js/pull/11037, so planning to release Chartkick 5 once that's out.

ankane commented 1 year ago

Chartkick 5 is out with support for this 🎉