Hi

If you are using a data source (such as google spreadsheets) to create the
data then you can use a query
language<http://code.google.com/apis/visualization/documentation/querylanguage.html>to
do that
with a query string such as "select Channel,avg(Uptime) group by Channel".
If you are creating your data table at the client side then there is no
available api to do grouping but we are working on enabling this feature

ChartMan

On Thu, Aug 27, 2009 at 12:09 AM, Hellnar <[email protected]> wrote:

>
> Greetings
> I am trying to make a line chart, here is my column defition:
>
>        var dataTable = new google.visualization.DataTable();
>        dataTable.addColumn('date', 'Date');
>        dataTable.addColumn('number', 'Uptime');
>        dataTable.addColumn('string', 'Channel');
>
> and a sample row input:
>                dataTable.setCell(0, 0, new Date(2009,08,24) );
>                dataTable.setCell(0, 1, 927);
>                dataTable.setCell(0, 2, "TV 1");
>
> Now I want to group my rows by Channel and link their daily Uptime (so
> a new line for each channel), and at the Y axis it should be the
> Uptime.
> How this is possible?
> Thanks
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to