The Google Chart API is an interactive
Web service (now
deprecated
In several fields, especially computing, deprecation is the discouragement of use of some terminology, feature, design, or practice, typically because it has been superseded or is no longer considered efficient or safe, without completely removing ...
) that creates
graphical
Graphics () are visual images or designs on some surface, such as a wall, canvas, screen, paper, or stone, to inform, illustrate, or entertain. In contemporary usage, it includes a pictorial representation of data, as in design and manufacture, ...
charts from user-supplied data. Google servers create a
PNG image of a chart from data and formatting parameters specified by a user's
HTTP
The Hypertext Transfer Protocol (HTTP) is an application layer protocol in the Internet protocol suite model for distributed, collaborative, hypermedia information systems. HTTP is the foundation of data communication for the World Wide Web, ...
request. The service supports a wide variety of chart information and formatting. Users may conveniently embed these charts in a
Web page by using a simple
image tag.
Originally the
API
An application programming interface (API) is a way for two or more computer programs to communicate with each other. It is a type of software interface, offering a service to other pieces of software. A document or standard that describes how ...
was Google's internal tool to support rapid embedding of charts within
Google
Google LLC () is an American Multinational corporation, multinational technology company focusing on Search Engine, search engine technology, online advertising, cloud computing, software, computer software, quantum computing, e-commerce, ar ...
's own applications (like
Google Finance
Google Finance is a website focusing on business news and financial information hosted by Google.
History
Google Finance was first launched by Google on March 21, 2006. The service featured business and enterprise headlines for many corporation ...
for example). Google figured it would be a useful tool to open up to web developers. It officially launched on December 6, 2007.
Currently, line, bar, pie, and
radar charts, as well as
Venn diagrams
A Venn diagram is a widely used diagram style that shows the logical relation between sets, popularized by John Venn (1834–1923) in the 1880s. The diagrams are used to teach elementary set theory, and to illustrate simple set relationships ...
,
scatter plots
A scatter plot (also called a scatterplot, scatter graph, scatter chart, scattergram, or scatter diagram) is a type of plot or mathematical diagram using Cartesian coordinates to display values for typically two variables for a set of data. ...
,
sparklines,
maps, google-o-meters, and
QR codes
A QR code (an initialism for quick response code) is a type of matrix barcode (or two-dimensional barcode) invented in 1994 by the Japanese company Denso Wave. A barcode is a machine-readable optical label that can contain information about th ...
are supported.
Google deprecated the API in 2012 with guaranteed availability until April 2015. On March 18, 2019 Google turned off the API. Google recommends the successor service
Google Charts.
Example
The following URL creates the pie chart below:
http://chart.apis.google.com/chart?
chs=200x200
&chdlp=b
&chtt=Uberman
&chdl=Asleep, Aw
&chd=t:11,11,11,11,11,11,11,11,11,11,11,11
&cht=p
&chco=586F8E,red,586F8E,7D858F,586F8E,7D858F,586F8E,7D858F,586F8E,7D858F,586F8E,7D858F
External Libraries
Instead of creating the URL request manually, there are many open source libraries available for most programming languages.
See also
*
Comparison of JavaScript charting frameworks
There are different JavaScript charting libraries available. Below is a comparison of which features are available in each.
See also
* Ext JS
* JavaScript InfoVis Toolkit
The JavaScript InfoVis Toolkit provides tools for creating Interac ...
*
List of information graphics software
This is a list of software to create any kind of information graphics:
* either includes the ability to create one or more infographics from a provided data set
* either it is provided specifically for information visualization
Vector graphics
V ...
References
{{reflist
External links
Google Chart API
Chart API
Visualization API