The more, the merrier, right? This time I took the pipes from my previous post and graphed the commit activity using google charts. For example, this is the resulting graph of the latest commit history of Subversion code (at least the commits processed by ohloh):
Note: If you're reading this from rss, the graph will most probably not show up
- api_key: ohloh api key (required)
- project_id: ohloh project id (required)
- page_count: how much history to get (roughly 25 commits per page) (default 1)
- interval: shows date on the x axis of the graph only every x days, to avoid overlapping (default 5)
- width (default 600)
- height (default 150)
In addition to the pipes from my previous post, I had to build a couple more:
- For loop (only works up to 1000, since it gets numbers from static source)
- Ohloh project commits multi-page: gets aggregate commit history from several pages of ohloh responses.
For date parsing, I used the awesome datejs.