Can you share your code or a link to the page, so we can take a look? On Tuesday, April 3, 2012 4:47:27 PM UTC-4, Philco wrote: > > I don't think I've used dataTable. > > I'm using the chartWrapper to create my column chart. The data for the h1 > is on that spreadsheet but in another range. > > On Tue, Apr 3, 2012 at 2:03 PM, asgallant <[email protected]>wrote: > >> 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. >> > > > > -- > ╯ > O-O > mmm > >
-- 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/-/mmivSZUfzmoJ. 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.
