score:1

Accepted answer

You need to use the Date.UTC method.

You can just update this:

[new Date(2016,08,28), 29.9]

To

[Date.UTC(2016,08,28), 29.9]

Updated fiddle:

(keep in mind, month numbers start at 0 in javascript, not 1, so adjust accordingly)


Related Query

More Query from same tag