Molasses26
unread,Apr 17, 2012, 6:36:51 PM4/17/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Google Visualization API
Hi! I have an Excel Spreadsheet with the following data:
Year: 2011 2012
Jan 4802 5178
Feb 4688 5989
Mar 4764 5556
Apr 4813
May 4813
etc.....
I would like to refer to this spreadsheet to create a Google Column
Chart.
Can you please show me the correct code to refer to my Excel
Spreadsheet?
I have created the charts by coding the data in directly:
=======================================
<script type="text/javascript">
google.load("visualization", "1", {packages:["corechart"]});
google.setOnLoadCallback(drawChart);
function drawChart() {
var data = new google.visualization.DataTable();
data.addColumn('string', 'Month');
data.addColumn('number', '2011');
data.addColumn('number', '2012');
data.addRows([
['Jan', 4802, 5178],
['Feb', 4688, 5989],
['Mar', 4764, 5556],
['Apr', 4813, ],
. . . . .
=======================
But I don't know how to make it refer to the spreadsheet instead.
Thanks!