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.

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.


Discuss Fun with Google Charts API

Conversation powered by Livefyre

Show Comments Hide Comments