blah
Just put a ngIf on the canvas element that returns false until the data is ready
Yehhh, Thanks bjines.
<div style="display: block" *ngIf="barChartData.length > 0">
<canvas baseChart
[datasets]="barChartData"
[labels]="barChartLabels"
[options]="barChartOptions"
[legend]="barChartLegend"
[chartType]="barChartType"
(chartHover)="chartHovered($event)"
(chartClick)="chartClicked($event)"></canvas>
</div>
It's working for me..
Most helpful comment
Just put a ngIf on the canvas element that returns false until the data is ready