Primeng: Feature Request: Upgrade to ChartJS 3

Created on 5 Apr 2021  路  2Comments  路  Source: primefaces/primeng

I'm submitting a ... (check one with "x")

[ ] bug report => Search github for a similar issue or PR before submitting
[X] feature request => Please check if request is not on the roadmap already https://github.com/primefaces/primeng/wiki/Roadmap
[ ] support request => Please do not submit support request here, instead see http://forum.primefaces.org/viewforum.php?f=35

Current behavior
p-chart requires chart.js^2.7

Expected behavior
p-chart requires chart.js^3.0

What is the motivation / use case for changing the behavior?
Chart.js 3.0 supports tree-shaking for smaller bundle sizes, as well as multiple bug fixes and performance improvements.

enhancement

Most helpful comment

Also, the setup instructions for charts says to run npm install chart.js --save, which doesn't work because it installs v3.1.1, not the required version of 2.7.x. At a bare minimum the setup instructions should be updated: https://www.primefaces.org/primeng/showcase/#/chart or just update to the latest version.

All 2 comments

Also, the setup instructions for charts says to run npm install chart.js --save, which doesn't work because it installs v3.1.1, not the required version of 2.7.x. At a bare minimum the setup instructions should be updated: https://www.primefaces.org/primeng/showcase/#/chart or just update to the latest version.

Any updates on this?. The 3 version has new features and better performance

Was this page helpful?
0 / 5 - 0 ratings

Related issues

markgoho picture markgoho  路  3Comments

mitosandov picture mitosandov  路  3Comments

garethlewis picture garethlewis  路  3Comments

Faigjaz picture Faigjaz  路  3Comments

KannanMuruganmony picture KannanMuruganmony  路  3Comments