Fun with Google Charts API

Everyone loves a chart. Now you can easily use the Google Charts API to add some dynamism to your website

The Google Chart API returns a PNG-format image in response to a URL. Several types of image can be generated: line, bar, and pie charts for example. For each image type you can specify attributes such as size, colors, and labels.

Check out my fancy Negative Approach (I am 50/50 today) that I made simply by manipulating the URL string.

As described on InfoQ, Deepak Jois has written a wrapper for the API called gchartrb, which provides a clean, concise way to generate chart URLs using Ruby.

Tags:
Software
About the author

Dave Rosenberg has more than 15 years of technology and marketing experience that spans from Bell Labs to startup IPOs to open-source and cloud software companies. He is CEO and founder of Nodeable, co-founder of MuleSoft, and managing director for Hardy Way. He is an adviser to DataStax, IT Database, and Puppet Labs. Disclosure. You can contact Dave via e-mail at softwareinterrupted@gmail.com.

 

ARTICLE DISCUSSION

Conversation powered by Livefyre

Don't Miss
Hot Products
Trending on CNET

Hot on CNET

CNET's giving away a 3D printer

Enter for a chance to win* the MakerBot Replicator 3D Printer and all the supplies you need to get started.