Thanks for the help!!!!!!!!!!!!!!!!!!!!!!!  Your answer really helped
me understand the code better.

Thanks.

-a

On Aug 9, 7:09 am, Riccardo Govoni ☢ <[email protected]> wrote:
> In your getData4() function, that handles the response, you can do the
> following:
>
> var datatable = response4.getDataTable();
> *datatable.setColumnLabel(1, 'myColumnLabel');*
> ...
> formatter.format(datatable);
> ...
> table4.draw(datatable, options);
>
> /R.
>
> On 8 August 2011 19:18, mwcog <[email protected]> wrote:
>
>
>
>
>
>
>
> > Thanks for the quick response.  Unfortunately, i'm still trying to
> > figure this out.  Here's my code that responds to a query for (SELECT
> > Count('Cost'), Sum('Cost') FROM 1251320).
>
> > function getData4(response4) {
> >  var table4 = new
> > google.visualization.Table(document.getElementById('visualization4'));
>
> > //adds number symbols:
> > var formatter = new google.visualization.NumberFormat(
> >      {prefix: '$'});
> >  formatter.format(response4.getDataTable(), 1); // Apply formatter to
> > second column
>
> > table4.draw(response4.getDataTable(), {showRowNumber: false,
> > allowHtml: true, cssClassNames: {hoverTableRow: 'highlightClass'}});
> > }
>
> > This works fine, but where would i call setColumnLabel?
>
> > Thanks,
>
> > Aubin
> > The function that
>
> > On Aug 8, 12:37 pm, Riccardo Govoni ☢ <[email protected]> wrote:
> > > I assume your visualization uses a google.visualization.DataTable object
> > > populated from the data you receive from fusion tables. If so, you can
> > call
> > > setColumnLabel()<
> >http://code.google.com/apis/chart/interactive/docs/reference.html#Dat...>
> > > on
> > > the DataTable to change its column label, before feeding it as input to
> > the
> > > visualization you are using.
>
> > > /R.
>
> > > On 8 August 2011 15:39, mwcog <[email protected]> wrote:
>
> > > > I've created a google vis ( a table) pulling various columns from
> > > > google fusion tables.  Is it possible to change the column headers in
> > > > my vis table through code?  I don't have access to the original
> > > > source.
>
> > > > 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.
>
> > --
> > 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