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 .
--
You received this message because you are subscribed to the Google Groups
"Google Visualization API" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-visualization-api?hl=en.