I am currently building an Angular application and I am trying to use Chart.js to generate custom bar charts. This did not work at first, so I did a little digging and discovered the special node package,
ng2-chart, developed to employ Chart.js with Angular.
As it happens, I installed the latest version of each dependency, but I soon encountered errors trying to build and serve the application among which is
Ng8002 that states:
Error: src/app/features/technical-services/components/live-dashboard/live-dashboard.component.html:81:17 - error NG8002: Can't bind to 'legend' since it isn't a known property of 'canvas'.
I searched on StackOverflow and found that this is likely due to the latest versions of Chart.js and ng2-chart being incompatible with my current development environment:
Has anyone else encountered this problem? What versions of Chart.js and ng2-chart could I use for my application?