The error message could be better, but I believe your JSON is malformed.

Take a look at this documentation:
https://developers.google.com/chart/interactive/docs/reference#dataparam

In particular, the items in your cols list should be objects with a few
more properties.
Ditto for the cells in your rows list.

Here's the JSON I got when I created the table manually (minus a few rows)
and ran toJSON on the datatable:
'{
    "cols": [{
        "id": "",
        "label": "Day",
        "pattern": "",
        "type": "string"
    }, {
        "id": "",
        "label": "Joined",
        "pattern": "",
        "type": "number"
    }, {
        "id": "",
        "label": "Canceled",
        "pattern": "",
        "type": "number"
    }],
    "rows": [{
        "c": [{
            "v": "29",
            "f": null
        }, {
            "v": 6,
            "f": null
        }, {
            "v": 0,
            "f": null
        }]
    }, {
        "c": [{
            "v": "30",
            "f": null
        }, {
            "v": 7,
            "f": null
        }, {
            "v": 0,
            "f": null
        }]
    }],
    "p": null
}'

On Thu, Feb 28, 2013 at 11:43 PM, <[email protected]> wrote:

> { "cols": ["Day","Joined","Canceled"], "rows":
> [["29",6,0],["30",7,0],["31",8,0],["01",12,1],["02",14,0],["03",18,2],["04",16,0],["05",20,1]]}
>



Thomas Rybka | Software Engineer | [email protected] | Google

-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at 
http://groups.google.com/group/google-visualization-api?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to