block by pbogden d46d6dbfcd6f35a3ccda

cors-enabled gsheet

Full Screen

##Google spreadsheet as a data source (CORS)

This demo retrieves data as CSV from the Google spreadsheet at this URL.

To adapt this demo to another spreadsheet:

Note: This demo requires a CORS-enabled service. As of Dec 2014, URLs with base https://spreadsheets.google.com support CORS, but the URLs in Google Charts documentation do not (i.e., those with https://docs.google.com/spreadsheets). You need JSONP to access the data via Google’s non-CORS-enabled servers. I created a D3 plugin (w/JSONP) to show how it’s done. But JSONP should be avoided because of related security concerns.

Note 2: This demo works in Chrome & Firefox, but not in Safari 7.1.1. I’m not sure why.

index.html

table.css