Charting Wikipedia edits

Hans wanted to calculate a 7-day moving average of edits on any given article across a year. Here’s what it looks like for the Evolution page:

Evolution edit chart

Here’s the data for the chart and source code. Command line invocation:

python 3-moving-average-edits.py Evolution -s 2008-04-25 -e 2009-05-01 -o evolution-1yr.csv
  • Avatar

    Pradeep Gowda — May 22, 2009 12:02:43 AM — #

    I see you are using google charts for presentation..

    May I interest you in Open Flash charts 2 - teethgrinder.co.uk/open-flash-chart-2/and the python library i wrote for it - btbytes.github.com/pyofc2/ (funky tooltips anyone?)

    There.. you have a comment :)

  • Avatar

    vaibhav — May 22, 2009 12:50:40 AM — #

    this is nice. could it be possible to also show the the number of participants(editors) for each data point? could this be a moving average too? just a thought

  • Avatar

    Pradeep Gowda — May 22, 2009 1:59:47 AM — #

    Uh oh! where did my comment about using OFC2 for charts disappear?

    • Avatar

      Kiran Jonnalagadda — May 22, 2009 10:05:54 AM — #

      Comments are held for moderation and shown to the commentator using a cookie identifier. Cookie must have expired. Must investigate. This is a temporary measure until I figure out my anti-spam setup.

Leave a Reply

You can respond with a photo by tagging it on Flickr with