score:9

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.

score:1

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

example:

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

Related Query

More Query from same tag