2014-06-30 49 views

回答

2

確保您的網頁呼叫jsapigoogle.load()一次。 Qouted以下細節從Google Developer's Site

You may be using the Google Loader incorrectly.

Only load jsapi once. No matter how many charts you have on your web page, you should have one and only one call like this:

<script type="text/javascript" src="https://www.google.com/jsapi"></script> // Do this ONCE.

Ideally, call google.load only once, with all the packages you'll need for your web page.

執行多個包的負載像下面,

<script> 
     google.load("visualization", "1", {packages: ["corechart", "timeline"]}); 
</script> 
+2

謝謝鮑勃。這導致我在我的模板上搜索多個聲明。這工作! –

相關問題