chacko
chacko

Reputation: 5174

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?

Upvotes: 33

Views: 45929

Answers (2)

Alorse
Alorse

Reputation: 377

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

Upvotes: 12

wtrevino
wtrevino

Reputation: 4861

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

Upvotes: 43

Related Questions