Skip to content

Google Chart API

April 4, 2009
Google Chart

Google Chart

Google Chart API

The Google Chart API is extremely simple tool that lets you easily create a chart from dynamically generated data and embed it in a webpage. The data and formatting parameters were embedded in HTTP request. The Google Chart API returns a PNG-format image in response to the url.

Links

Home Page: http://code.google.com/apis/chart/.

Chart Types

  • Line Charts.
  • Bar Charts.
  • Pie Charts.
  • Venn Diagrams.
  • Scatter Plots.
  • Radar Charts.
  • Maps.
  • Google-o-meters.
  • QR Codes.

Images can be generated for all types of chart, for each image you can specify attributes such as color, labels and size.

The url must be in following format:

http://chart.apis.google.com/chart?<parameter 1>&<parameter 2>&<parameter n>

Parameters are separated using ampersand. n number of parameters can be specified in any order.

For Example

http://chart.apis.google.com/chart?cht=p3&chd=t:60,40,60&chs=250×100&chl=Yesterday|Today|Tomorrow

The generated PNG-format will be,

Chart

Chart

For more details regarding attributes and charts.

Advertisements

From → Google API

Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: