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