Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Arrow up icon
GO TO TOP
Google Visualization API Essentials

You're reading from   Google Visualization API Essentials Make sense of your data: make it visual with the Google Visualization API

Arrow left icon
Product type Paperback
Published in Apr 2013
Publisher Packt
ISBN-13 9781849694360
Length 252 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Traci Lynn Ruthkoski Traci Lynn Ruthkoski
Author Profile Icon Traci Lynn Ruthkoski
Traci Lynn Ruthkoski
Arrow right icon
View More author details
Toc

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 API is to be loaded for the application, as well as what packages and options for the API should also be loaded. The google.load call in the following sample script indicates that Version 1 of the Visualization API is to be loaded. It also indicates...

lock icon The rest of the chapter is locked
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Google Visualization API Essentials
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at £16.99/month. Cancel anytime
Modal Close icon
Modal Close icon