dima117 / Chart.Scatter

Scatter chart plugin for Chart.js
http://dima117.github.io/Chart.Scatter
MIT License
97 stars 26 forks source link

this.hasData line 1062 reflects the initial data, breaks initial empty scenario #37

Closed Laro88 closed 8 years ago

Laro88 commented 8 years ago

I might be missing something vital, however it seems like the this.hasData reflects the initial condition of the data. So when the chart is initialized with empty arrays then nothing is plotted. addPoint does however not alter the state of hasData - so nothing will ever be rendered.

Am I right so far?

dima117 commented 8 years ago

Yes you are right. This code was written before it was possible to add points to the datasets, and I forgot to fix this check.

Error corrected! Thanks for the feedback!