Google Chart Basics
Getting up and running and understanding the latest from Google Charts
Google Charts has come a long way from doing simple inline line charts. My bottom line:
- well designed API
- very good documentation
- quite extensive capabilities
- not available for offline or stand-alone packaging and distribution
Loading Charts Library
Unlike other libraries, Google Charts is not released for stand-alone packaging and distribution. This may eliminate it as an option for some scenarios like content serving behind restrictive firewalls or over poor wide-area networks. From the FAQ:
Our terms of service do not allow you to download the google.charts.load or google.visualization code to use offline.
Making a Chart Dynamic
DataTable class provides all
the methods you need to update the data to be visualised. Calling
draw(data, options) on the chart will update the data and
also let’s one change options too.
It seems inefficient (but presumably internally optimised?) but works just fine.
Quite Test: Pie Chart