Hi,
I have spent days on this with no result.
I want to use Google Charts but instead of hard-coding the data within the
Java Script, I want to use data in a file I have placed on my server.
The file called test.json, is located on say www.mysebsite.com/test.json
- and contains the following:
{
cols: [{id: 'A', label: 'Task', type: 'string'},
{id: 'B', label: 'Hours per Day', type: 'number'}
],
rows: [{c:[{v: 'Work'}, {v: 11}]},
{c:[{v: 'Eat'}, {v: 2} ]},
{c:[{v: 'Commute'}, {v: 2} ]},
{c:[{v: 'Watch TV'}, {v: 2}]},
{c:[{v: 'Sleep'}, {v: 8}]}
]
}
By referring to the URL above, how can I get this to populate into data as
a DataTable?
Thanks in Anticipation
--
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 https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit
https://groups.google.com/d/msgid/google-visualization-api/1639306d-4acb-4e6f-a786-c6d99a615611%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.