Accepted answer

You need to ensure the containing element has a display type of `block'. As pointed out in earlier thread it can either be wrapped in a div, or in angular4, simply set the :host css element to:

:host { 
  display: block 


You need to enclose canvas element inside div

template: '<div><canvas #aChart></canvas></div>',

Related Query

More Query from same tag