grofit / aurelia-chart

A chart element for aurelia which is powered by chart js using html5 canvas.
MIT License
46 stars 25 forks source link

Chart is not render when update de binding outside the constructor #38

Open oliveratom69 opened 5 years ago

oliveratom69 commented 5 years ago

I have 2 issues: 1) if i add show.bind or if.bind to the custom element the chart is not render, ven when i add the data of the chart inside the constructor. Ig i remove the if.bind or show.bind it works fine. 2) But the first scenario is not what i need, i need to set the chart data in an event. i translate the same code to that method (without de if or show) and the chart is not render, seems to be that the chart is not refresh, how can i do that after i change the data? In that scenario i set on the constructor an empty data: this.barChartData = { labels: [], datasets: [] }; Any idea is appreciated.

grofit commented 5 years ago

Hey, I would love to help but I only used Aurelia for a period a few years back, so I have been out of the loop on this plugin for ages, hopefully someone else will be able to advise.

Also while on the topic I am more than happy to allow someone else to be a collaborator to push the library forward if others still use it.