Hmm, maybe you can avoid using the ChartWrapper to perform queries. Use the
Query class directly, and call getNumberOfColumns() for the resulting
DataTable.
Will that work for you?

On Tue, Jan 24, 2012 at 2:57 PM, Pyotr Bryzgalov <[email protected]>wrote:

> Thank you!
> About changing first column in a datatable, I cannot find a good way to do
> it, cause I don't know how many columns are there in the table. I use
> Google query with "pivot" expression, so the number of columns is variable.
>
> Here is the code I tried, and it worked for 2-columned table, but you have
> to know number of columns to use such expressions:
>
> wrapper.setView({columns: [{calc:function(data, row) { return
> data.getFormattedValue(row, 0) + "h";
> },type:'string','label':'testcol'},1]});
>
> Regards!
>
> http://pyotr.guru.ru/
>
>    --
> 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.
>

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