You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In a Shadow DOM and ShadowRoot, chart.js should work properly.
Current Behavior
I am using Angular 6 with encapsulation mode Native:
/** * Use the native encapsulation mechanism of the renderer. * * For the DOM this means using [Shadow DOM](https://w3c.github.io/webcomponents/spec/shadow/) and * creating a ShadowRoot for Component's Host Element. */Native=1,
The chart doesn't display while the following stacktrace is printed in the browser console:
ERROR TypeError: Failed to execute 'getComputedStyle' on 'Window': parameter 1 is not of type 'Element'.
at Object.helpers.getStyle (core.helpers.js:502)
at Object.helpers.getMaximumWidth (core.helpers.js:481)
at Chart.resize (core.controller.js:181)
at Chart.initialize (core.controller.js:146)
at Chart.construct (core.controller.js:127)
at new Chart (core.js:42)
Expected Behavior
In a Shadow DOM and ShadowRoot, chart.js should work properly.
Current Behavior
I am using Angular 6 with encapsulation mode Native:
The chart doesn't display while the following stacktrace is printed in the browser console:
The issue happens at this line:
The debugger tells me that, at this point,
el
is a document-fragment.Steps to Reproduce (for bugs)
Context
I want to build a Web Component displaying a chart
Environment
The text was updated successfully, but these errors were encountered: