Based on https://gist.github.com/robschmuecker/7880033 and http://www.brightpointinc.com/interactive/budget/index.html?source=d3js