
If you don't specify this parameter, the spreadsheet will guess These will be excluded from the data and assigned as column labels in theĭata table. Many rows are header rows, where N is an integer zero or greater. The query supports the following optional parameters: The spreadsheet "Private" and granting individual Google accounts access,īut you will need to follow authorization With the link" will be easiest, and the instructions in this section assumeĪ spreadsheet that has been set up this way. (View privileges of "Public on the web" or "Anyone Have the format expected by your visualization, and it should have viewing To use a Google Spreadsheet as a data source, you'll need its URL: The spreadsheet must either be visible toĮveryone or the page must explicitly acquire an end-user credential asĭocumented under the Authorization section of this Note that charts cannot use the privileges of the person viewing The query language can be used as a data source. Language for sorting and filtering data any system supporting This works because Google Spreadsheets support the Google

Var chart = new (document.getElementById('columnchart')) Var query = new (URL) nd(handleQueryResponse) If you want to retrieve theĭata from a Google Spreadsheet instead, you'll query the spreadsheet Typically, people create Google Charts by populating a data tableĪnd drawing the chart using that data. Toolbar, select "Insert" and then "Chart", and you'll be able toĬhoose the type of chart and select various options:

Including a chart in a spreadsheet is easy. Whichever method you choose, your chart will change whenever the Place a Google Chart inside a Google Spreadsheet, and GoogleĬharts can extract data out of Google Spreadsheets. Google Charts and Google Spreadsheets are tightly integrated. Creating a Chart from a Separate Spreadsheet
