trading-peter / chart-elements

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

Don't dereference data when undefined #79

Closed rwestlund closed 5 years ago

rwestlund commented 5 years ago

This allows loading the chart before data is defined, e.g. when using dynamic data from the network. Previously, it would reference data.labels and throw an error.

Everything else is working great, thanks for the lit-html port :)

trading-peter commented 5 years ago

Thanks! I'll merge this today and publish a release.

trading-peter commented 5 years ago

Merged and published!