score:2

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 
}

score:11

you need to enclose canvas element inside div

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

Related Query

More Query from same tag