Hi all,
Did someone manage to get CanvasJS to work with shadow DOM?
I’m totally new to CanvasJS and I’m just quickly experimenting with the library.
Part of my experiment was to create a web component. The web component simply set the shadow root to an empty div with a randomly generated id. Then the connectedCallback method just tries to create a chart using the random id.
In the browser console, I’m getting the following error:
Uncaught TypeError: Cannot read property ‘style’ of undefined
at p._updateOptions (canvasjs.min.js:166)
at p._initialize (canvasjs.min.js:168)
at p.render (canvasjs.min.js:201)