score:0

Accepted answer

the chart is not visible because the component host is an inline element. as such, it should not contain block elements like the div wrapper created by the chart.js library.

setting the display style attribute of the host to block or inline-block will make the chart visible:

:host {
  display: inline-block;
}

see this stackblitz for a demo.


Related Query