martinmeinke / rlog

Raspberry Pi based logger for KACO Powador inverters
6 stars 0 forks source link

sort tick array by timestamps in javascript #2

Closed stylpen closed 11 years ago

stylpen commented 11 years ago

my ajax responses take waaaay too long to arrive. that is why i get something like Bildschirmfoto vom 2013-03-14 13:48:19 if the data gets sortet it won't draw circles

stylpen commented 11 years ago

looks better now with setInterval replaces by setTimeout (really only new data come in - reduced load on pi by 400% in my case but so too slow). Something strange is stil happening: Bildschirmfoto vom 2013-03-14 14:29:10 looks like there are 3 (or 4) points inserted in the wrong order Bildschirmfoto vom 2013-03-14 14:32:04

stylpen commented 11 years ago

trying http://stackoverflow.com/questions/5435228/sort-an-array-with-arrays-in-it-by-string ...