Angular 12 Chart.js – Cannot display doughnut

πŸ‘:0

First make sure to register the controllers, elements, scales etc. you’re going to use.

Beside that, make sure, that every @ViewChild definition points to an existing canvas in your HTML template. Check that the template variables are correctly referenced.

Please take a look at your amended CodeSandbox

Leave a comment