Accepted answer

labels property must be defined along with values. according to documentation for properties:

labels (?array) - x axis labels. it's necessary for charts: line, bar and radar.

so specifying actual values for labels will do the trick.


you need to put a condition inside the canvas, e.g., show it when the data is loaded or your array.length > 0


<canvas basechart *ngif="showmychart" [datasets]="_numbers"
     [charttype]="_charttype" width="600px">

Related Query

More Query from same tag