NA
unread,Nov 14, 2011, 11:52:47 AM11/14/11Sign 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
I'm having some trouble with getRowProperties. I have:
function drawVisualization() {
var dataTable = new google.visualization.DataTable();
dataTable.addColumn('string', 'Name');
dataTable.addColumn('number', 'Age');
dataTable.addColumn('string', 'Instrument');
dataTable.addColumn('string', 'Color');
dataTable.addRows(1);
dataTable.setCell(0, 0, 'John');
dataTable.setCell(0, 1, 24);
dataTable.setCell(0, 2, 'Guitar');
dataTable.setCell(0, 3, 'Blue');
alert(dataTable.getRowProperties(0)['Name']);
}
I'm expecting to see the string "John". Instead, I get "undefined".
What is the return of getRowProperties? The doc indicates that it's a
map, which I assumed is also an Object, but it doesn't seem to be one
from my tests.
Can someone show me how to use getRowProperties?