Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Chart API - is it possible to download the .js and work on it offline?

I would like to use the Google Chart API in one of my project.

Is it possible to download ONE JavaScript for it so that I can work offline?

I tried to download the script referred from the html page (jsapi) and its code seems to load up other scripts:

google.loader.ServiceBase = 'https://www.google.com/uds'; google.loader.GoogleApisBase = 'https://ajax.googleapis.com/ajax'; ... 

Is there no way to get just one unified JavaScript?

like image 662
chacko Avatar asked May 25 '11 13:05

chacko


People also ask

Is Google Charts deprecated?

While the dynamic and interactive Google Charts are actively maintained, we officially deprecated the static Google Image Charts way back in 2012. This gives us the right to turn it off without notice, which may happen soon.

Can I download Google Charts?

On your computer, open a spreadsheet in Google Sheets. Click your chart. Download as. Choose your file type.

Is Google Charts API free?

Google chart tools are powerful, simple to use, and free. Try out our rich gallery of interactive charts and data tools.

Can you use Google Charts offline?

Can I use charts offline? Your users' computers must have access to https://www.gstatic.com/charts/loader.js 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.


2 Answers

Working offline with Google Chart API is not permitted, since it is against their TOS.

like image 116
wtrevino Avatar answered Sep 22 '22 15:09

wtrevino


Download this package: https://www.dropbox.com/s/4cd7zbdvv2mlg8f/gstatic.zip?dl=0

After add this code in HTML:

<script type="text/javascript" src="gstatic/loader.js"></script> 

This works for me.

It is to see version 44 of Google chart

like image 41
Alorse Avatar answered Sep 21 '22 15:09

Alorse