Lucky
unread,Jun 6, 2012, 1:58:43 AM6/6/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Google Visualization API
As I am new to Use Google Chart API,
How can we bind the values which I receive from the data source to a
datatable to Google.Visualization.Datatable()
Suppose I had some values in Hidden field
Like
['Task','Hours per Day'],
['Mushrooms', 3],
['Onions', 3],
['Olives', 1],
['Zucchini', 1],
['Pepperoni', 2]
Now i want to bind these values to
var data2 = google.visualization.arrayToDataTable([]);
It works fine for below when I specify the values like this
var data2 = google.visualization.arrayToDataTable([
['Country', 'Population', 'Area'],
['CN', 1324, 9640821],
['IN', 1133, 3287263],
['US', 304, 9629091],
['ID', 232, 1904569],
['BR', 187, 8514877]
]);
how can I bind these values to google.visualization.arrayToDataTable()
I had tried
var T =$("#hidChartData").val();
var data = google.visualization.arrayToDataTable(T) does not
support .
or
var data = google.visualization.DataTable(T) also does not
support
Please help me out .