Kudithipudi.Org Too much time on hand!!!

July 11, 2008

Tracking my runs using Google charts : Part II

Filed under: HOWTO,Programming,Technology,Web — Vinay @ 6:56 pm

Comment from my friend Sri, after looking at my post regd using Google Charts API to track weekly runs.

” Hey V, You can show the value of the bars by using the variable CHM”..

Thx for making me lazy dude :).. Here’s the upated image

Tracking my runs using Google charts

Filed under: HOWTO,Programming,Running,Technology,Web — Vinay @ 12:46 am

I wrote a brief blurb, when Google came out with their Google Charts API. The API essentially allows you to represent your data visually by just generating a URL.. I have been wanting to use this in real life for quite some time now and think I finally found a need :). I am going to be tracking my weekly runs with using this API  moving forward.

Here’s a graphical representation of my runs for Week 5 of my traning for the Chicago marathon

Week 5

As you can see, I have been slacking off on my mid-week runs.

I used the following parameters to generate the graph

Type = cht (vertical bars)

Legend = chtt (Week 5 training)

Axis Values = chxl (Mon, Tue, Wed, Thur, Fri, Sat, Sun)

The URL I used to generate the image is http://chart.apis.google.com/chart?chtt=Week+5+Training&chts=FF0000,20&chdl=Miles&cht=bvs&chxt=x,y&chxl=0:|Mon|Tue|Wed|Thu|Fri|Sat|Sun|&chs=300×150&chd=t:0,0,3,0,0,0,10&chco=4d89f9,c6d9fd&chbh=20

I still need to figure out, how to show the values in the image and play with the ratio of the axis.

You can get all the information you need about this API by visiting this link http://code.google.com/apis/chart/

Powered by WordPress