2👍
✅
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
}
11👍
You need to enclose canvas
element inside div
template: '<div><canvas #aChart></canvas></div>',
Source:stackexchange.com