Create Charts Online with Google Chart API
By Hongkiat.com. Filed in Google, Web Tricks
Google has recently released some pretty neat API for it’s Google Chart. It allows you to create charts on your browser dynamically, on the fly and free. Here’s all you need to do:
- Open up a browser
- Paste in the following URL
http://chart.apis.google.com/chart?cht=p3&chd=t:20,40,80&chs=250&chl=A|B|C
- Tweak the settings.
- Hit enter, download your chart.
Customizing your chart

Here’s a general explanation on the parameters of the URL.
- cht=p3 – Type of chart
- chd=t:20,40,80 – Values, separated by commas.
- chs=250×150 – Chart size, width x height
- chl=A|B|C – Labels of each chart sections.
You can create up to 5 different charts (Line charts, Bar charts, Pie charts, Veen diagrams and Scatter plots ) with Google Chart API, as well as tweaking the colors, line styles, markers, etc. All these are well explained on Google Chart API code page.

Author: Hongkiat.com
This post is published by a Hongkiat.com staff (editors, interns, sometimes Hongkiat Lim himself) or a guest contributor.