Is it possible to draw a stacked density graph like this one in d3.js?
Reference: http://www.wired.com/2010/11/ff_311_new_york/
Yes, it certainly is. d3.layout.stack is what you're looking for:
d3.layout.stack
http://bl.ocks.org/mbostock/4060954