I said previously that I assumed that you were plotting against time? Is that correct? If so then the problem is clear. You can see that the first item in the array has x as a string containing " 1" whereas it should be the timestamp either in javascript ticks (msec) or as an ISO date string.