I am going to assume that you already fetched your data and placed it in 
row 0, column 0 of a DataTable object called "data" and that the desired h1 
element has the id "foo".  Getting the data from the DataTable into the h1 
element is quite easy:

var element = document.getElementById('foo');
element.innerHTML = data.getValue(0, 0);

You can style the h1 element however you like, using CSS style sheets or 
(if you want dynamic styling) javascript.

On Tuesday, April 3, 2012 1:41:08 PM UTC-4, Philco wrote:
>
> Thanks!  Is there an online example of that or something to point me 
> more in that direction? 
>
> On Apr 3, 12:55 am, ChartMan <[email protected]> wrote: 
> > you can also just use a google.visualization.Query to get the content 
> and 
> > then place it in a standard tml table. 
> > 
> > HTH 
> > ChartMan 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > On Tue, Apr 3, 2012 at 3:59 AM, Philco <[email protected]> 
> wrote: 
> > > I'm doing a project to create a website with a chart of donations, 
> > > like a big rising thermometer in a sidebar and then have the total 
> > > number of donations displayed in a h1 tag. 
> > 
> > > I'm using the Visualization API to create a Column Chart from a Google 
> > > Spreadsheet and embed it on a site.  That works great. 
> > 
> > > Next, I want to display the contents of a single cell on the site in 
> > > an h1 tag and style it. 
> > 
> > > What's the best way to do this?  Do I create a visualization.DataTable 
> > > and then style away all the tr tags? 
> > 
> > > Thanks! 
> > 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-visualization-api/-/lT5tHGrBpcwJ.
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