vasturiano / timelines-chart

Timelines Chart
http://vasturiano.github.io/timelines-chart/example/categorical/
MIT License
556 stars 121 forks source link

"TypeError: Cannot read property 'timeRange' of undefined" in parseData #56

Closed max-su closed 4 years ago

max-su commented 4 years ago

The current parseData function for data throws an error when the first timeseries doesn't have any events: "TypeError: Cannot read property 'timeRange' of undefined"

Attached is documentation of the error and a suggested fix I have for PR review. https://codepen.io/lilaclapras/pen/rNBKyBv

vasturiano commented 4 years ago

Thanks for the bug report @max-su! This is now fixed in v2.8.3. I'll also close the PR since it's not applicable any longer.