Using Google Charts for creating graphs of data with local offline package

You can use the Google Charts API for creating graphs on your website with your data as input.

https://developers.google.com/chart

You can have a offline (without internet connection) and local copy of the Google Charts API.

The following is stated on the website of Google for using it in your HTML pages:
<script src="https://www.gstatic.com/charts/loader.js"></script>
<script>
google.charts.load('current', {packages: ['corechart']});
google.charts.setOnLoadCallback(drawChart);
...
</script>


Change it to the following:
<script type="text/javascript" src="/charts/loader.js"></script>
<script type="text/javascript">
google.charts.load('current', {packages: ['corechart']});
google.charts.setOnLoadCallback(drawChart);
...
</script>

Then place the local package of the charts in location /<Your Website root directory>/charts.
So it looks like: ls /<Your Website root directory/charts/
51
loader.js
loader_ORG.js

Download the local package (latest version 51) via: https://www.unix4life.com/downloads/Google_Graph_charts_version_51.tgz

  Donate now via the Paypal button on the top in US Dollar and on the bottom in Euro