2👍
✅
I usually use chart.js through primeng, and even if I don’t want to use primeng, I follow their example, because I find it clean. You can see how they implement it here: https://github.com/primefaces/primeng/blob/master/src/app/components/chart/chart.ts
Source:stackexchange.com