Chartjs-PrimeNG chart js is not rendering

0👍

The issue was not in chartjs or PrimeNG but the module that contains the chart component is not imported in the app Module,

@NgModule({
  declarations: [
    ...
  ],
    imports: [
        ...
        KpisModule   <-- here
    ],
 ...
  bootstrap: [AppComponent]
})
export class AppModule {...

Adding it has fixed my issue.

Leave a comment