0
我想建立一個谷歌UiApp圖表儀表板,我有問題加載必要的庫。我在第8行收到syntext錯誤,這是「google.load('visualization',...」)行。我從字面上複製粘貼教程中的示例,並且該行不斷出現錯誤。 ?想法我很新的這一點,只是想按照這裏的方向湊了演示:https://google-developers.appspot.com/chart/interactive/docs/basic_load_libs谷歌可視化庫沒有加載 - 語法錯誤
<!--Load the AJAX API-->
<script type="text/javascript" src="https://www.google.com/jsapi"></script>
<script type="text/javascript">
// Load the Visualization API library and the piechart library.
google.load('visualization', '1.0', {'packages':['corechart', 'piechart']});
google.setOnLoadCallback(drawChart);
// insert charts here
</script>
如果我沒有記錯,Google UiApp使用的是Apps腳本,而不是JavaScript,因此您需要使用Visualization API的Apps腳本實現。[Documentation here](https:// devel opers.google.com/apps-script/reference/charts/?csw=1) – asgallant