Generating the use statistics graphs

HI
guys

I am working with the ROR proj presently i am in statistical package
i need to generate the use statistics with graphs
just have a look at this link
http://gems.rubyforge.org/usage/usage_200511.html

the same thing i need for our proj with our database tables
can any one help me with sample code to generate use
statistics(graphs)

best regards,
meer