0
我想引用谷歌電子表格使用桌面爲我的d3可視化中的數據。我能想到的最好的解決方案就是這樣,但我知道這不是很正確。集成tabletop.js與d3.js?
window.onload = function() { init() };
var public_spreadsheet_url = 'https://docs.google.com/spreadsheet/pub?hl=en_US&hl=en_US&key=0AmYzu_s7QHsmdDNZUzRlYldnWTZCLXdrMXlYQzVxSFE&output=html';
function init() {
Tabletop.init({ key: public_spreadsheet_url,
callback: showInfo,
simpleSheet: true })
}
d3.json("showInfo", function(data) {
console.log(data);
});