Fun with the Google Chart API

January 22, 2008


I just finish developing another weight loss application with Ruby on Rails. For the most part, it’s nothing noteworthy – just your standard Rails MVC project with simple views. The one tiny noteworthy thing is that I made use of the Google Chart API for charting the progress of one’s diet. I wouldn’t call it an API… it’s more like a URL query string specification. Anyway, I created a model attribute to mine one’s weigh-in history and produce a query string for the Google Chart API URL. It’s quite cool. I would post source code here, but I really just threw the program together in two days, and it’s ugly. The important thing is that it works and I’ll be the only one using it. Yes, I’m on a diet.