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.

 

Join the discussion

Conversation powered by Livefyre

Don't Miss
Hot Products
Trending on CNET

HOT ON CNET

Is your phone battery always at 4 percent?

These battery packs will give your device the extra juice to power through all of those texts and phone calls.