Not sure about all the pros and cons, but I love the notation - much more
intuitive.
Talking about UI - the code itself is UI (unless it's auto generated, and
then even for debugging it needs to be read/reviewed)
I'd much rather read/code something like
var chartData={
"columns":{
'Year': 'string',
'Videos (in thousands)': 'number',
'Halfwit comments (in mio.)':'number',
'Witty comments (in hundreds)':'number',
},
"rows":[
['2004',20,8,200],
['2005',269,74,170],
['2006',112,91,155],
['2007',213,76,128],
]
};
than something like
data.addColumn('string', 'Name');
data.addColumn('number', 'Salary');
data.addColumn('boolean', 'Full Time');
data.addRows(5);
data.setCell(0, 0, 'John');
data.setCell(0, 1, 10000);
data.setCell(0, 2, true);
data.setCell(1, 0, 'Mary');
data.setCell(1, 1, 25000);
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---