I set up the statistics page in my blog yesterday. I've since moved the code that builds the SVG charts into the Composer package io-charts and also tried to decouple the whole thing from my blog a little. The example in the package hopefully explains how to use it well enough.