X

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

Dave Rosenberg Co-founder, MuleSource
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.
Dave Rosenberg

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.