score:1

Accepted answer

It works fine if you sort the data (which isn't sorted in your input) --

data.sort(function(a,b) { return a.Timestamp - b.Timestamp; });

Complete jsfiddle here.


Related Query