Hello, wondering how I could create a DataView from the average of a
column in a DataTable? I see that there is avg functionality by way
of ...group, but I don't need to group by anything. Is there a flavor
of dv.setRows() where I can pass in something similar to: {'column':
14, 'aggregation': google.visualization.data.avg, 'type': 'number'}
e.g.
myNewDataView = new google.visualization.DataView(myDataTable)
myNewDataView.setColumns([14])
myNewDataView.setRows([{'column': 14, 'aggregation':
google.visualization.data.avg, 'type': 'number'}])
??
Thanks in advance
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---