Kudithipudi.Org

July 11, 2008

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/

3 Comments »

  1. Hey V,
    You can get the values on the bar chart by using “ch” shape markers.. Try this link

    Week5 Training

    Comment by Sri Banda — July 11, 2008 @ 6:50 pm

  2. [...] from my friend, Banda, after lookinh at my post about using Google Charts API to track weekly [...]

    Pingback by Tracking my runs using Google charts : Part II » Kudithipudi.Org — July 11, 2008 @ 6:56 pm

  3. Thx Sri..

    Comment by Vinay — July 11, 2008 @ 6:56 pm

RSS feed for comments on this post. TrackBack URL

Leave a comment

Powered by WordPress