我想根据我的谷歌驱动器中的谷歌电子表格中的数据绘制图表。然后我想使用一些 javaScript 图表库在我的网站上显示图表。 我尝试寻找解决方案,但我无法弄清楚。请帮忙!
最佳答案
1)为了从 Google 电子表格获取源数据,我使用此函数
function getWorksheetData(spreadsheetId, worksheetId, range) {
return 'https://docs.google.com/spreadsheets/d/' + spreadsheetId +
'/gviz/tq?gid=' + worksheetId +
'&range=' + range;
}
2) 为了绘制图表,我使用 http://api.highcharts.com/highcharts
关于javascript - 使用 Google Drive 上的数据创建 javascript 图表,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37803148/