简体   繁体   中英

using google-charts javascript statically

I've used google charts in my project and noticed that when I'm not connected to the internet, it does not work because it is trying to retrieve something from:

https://ajax.googleapis.com/ajax

In the google_chart.js and jsapi.js. Is there a way to use google charts statically without internet access?

Unfortunately the answer is no.

Per the docs:

Can I use charts offline? Your users' computers must have access to https://www.google.com/jsapi in order to use the interactive features of Google Charts. This is because the visualization libraries that your page requires are loaded dynamically before you use them. The code for loading the appropriate library is part of the included jsapi script, and is called when you invoke the google.load() method. Our terms of service do not allow you to download the google.load or google.visualization code to use offline.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM