Thanks to Mike Bostock for contributing https://bl.ocks.org/mbostock/4063318 . Have added weeks and months for easy read. I hope this will be helpful for your visualizations. this is an extension to the work of Mike, Colors by Cynthia Brewer. Layout inspired by Rick Wicklin and Robert Allison. Dow Jones historical data copyright Yahoo! Finance or independent data provider; fair use for educational purposes.
.rollup(function(d) { return (d[0].Close - d[0].Open) / d[0].Open; })
d3.csv("https://bl.ocks.org/mbostock/raw/4063318/dji.csv", function(error, csv)
.data(d3.range(1999, 2011))