Yopadd / vue-chartist

Pluging chartist for vuejs
Do What The F*ck You Want To Public License
172 stars 21 forks source link

Chart should update even if there's no data #49

Closed matteoraf closed 4 years ago

matteoraf commented 4 years ago

1- When you change the data prop to an empty array, the chart doesn't redraw and the old data stays there. Now the Chartist.update method runs even if data array is empty.

2- If you start with an empty data array, the chart doesn't get drawn. Now the chart is drawn even with empty data.

3- The error Object was just dead code at the end. We can just use the this.noData and this.message variables

matteoraf commented 4 years ago

Apologies, I've been working on the wrong branch. I will close and send a new PR