Accepted answer

the problem is that values are strings, for example, your data:

["2011-05-30 00:00:00","130"]

should be instead:

[1306706400000, 130]

to it's timestamp in ms and true value.

you can read about json_numeric_check option for json_encode(string, json_numeric_check) to change strings to numbers. but dates to timestamps you need to change on your own.

edit: also the problem was with setting data in doubled array, changed from:

data: [rows]


data: rows

Related Query

More Query from same tag