O'Reilly logo

Google Visualization API Essentials by Traci L. Ruthkoski

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Visualization API common Framework

As discussed in Chapter 2, Anatomy of a Visualization, Visualization API code is JavaScript-based and resides within HTML <script> tags. Unless otherwise noted, it is assumed that all the API code intended for a HTML framework is located within these tags.

Load API modules

For all Google API code, including the Visualization API, there are several general components required. These are:

  • Declaration of an API source URL
  • Request API objects using the Google Loader

Inside the first script tag, a few short lines of HTML indicate the location of the Google Visualization API library, hosted by Google. The second script tag invokes a call to google.load, which is the Google Loader. The Google Loader options indicate which ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required