from google spreadsheet to sparkline embedded in html table

74 views
Skip to first unread message

jrtaylor

unread,
Feb 16, 2012, 8:21:56 PM2/16/12
to Google Visualization API
I'm trying to learn how to use google API so that I can take several
sparkline charts on a google doc and embed them in a HTML Table on my
website.

Here's an example of a sparkline table I created (the query range)

https://do​cs.google.​com/spread​sheet/tq?k​ey=0Anlq07​HbSPGkdHQ2​djB2eEFvQ0​E1bWFyaXVV​b2YyZ2c&ra​nge=A1&hea​ders=-1


I've added this to the header of my site:

<script type="text/javascript" src="https://www.google.com/jsapi"></
script>
<script type="text/javascript">

// Load the Visualization API library and the piechart library.
google.load('visualization', '1.0', {'packages':
['corechart','table','imagesparkline']});
google.setOnLoadCallback(drawChart);
// ... draw the chart...
</script>

But I have no idea if I'm going in the right direction, or how to get
the sparkline to embed in my HTML table.

(The table will have many rows, so we will be using multiple sparkline
charts).

Here's a link to the work-in-progress. Just scroll down to the bottom
of the page:

http://managedaccountreview.com/index-of-subjects/

Any advice? Thanks!

asgallant

unread,
Feb 17, 2012, 9:47:26 AM2/17/12
to google-visua...@googlegroups.com
It looks like it's working to me: I see a table with 2 sparkline charts.
Reply all
Reply to author
Forward
0 new messages