Svjard / jinrikisha

JavaScript toolkit for creating interactive real-time graphs
http://code.shutterstock.com/rickshaw/
MIT License
2 stars 0 forks source link

validateSeries assumes data exists #5

Open Svjard opened 12 years ago

Svjard commented 12 years ago

https://github.com/shutterstock/rickshaw/blob/master/src/js/Rickshaw.Graph.js#L79

Consider cases where s.data may have a length of 0.

It also assumes the data series have equal number of points, which is not always going to be the case. I got around this by commenting out the points checks in the validateSeries function, but I'm now getting errors of accessing 'x' of undefined on HoverDetails.