[Chartjs]-ERROR Error: ng-charts configuration error, data or datasets field are required to render chart line

1👍

Try to create the chart after you have received your data.

When you’ve built your chart, assign a variable like this.

chartDataReady = true;

In your HTML, you can wrap the chart with a *ngIf like this.

*ngIf="chartDataReady"

Leave a comment