trading-peter / chart-elements

Chart.js as Polymer Elements
https://robdodson.github.io/chart-elements
267 stars 70 forks source link

Chart won't display under native shadow dom (v3.0.0) #37

Closed trading-peter closed 8 years ago

trading-peter commented 8 years ago

I tracked it down to Chart.js trying to get and work with the parent node. Under shadow dom it get's a document fragment with doesn't provide what Cart.js expects. Wrapping the canvas element in a div resolves the issue. I'll propose a pr for this.