Added basic support for D3
Hourly and daily graphs mostly working, chunk problemswith weekly.