I had a musing for D3 and created this as a learning piece
http://ohio-pop-density.surge.sh
If you like to check out the source code, here is a link: https://github.com/DanStockham/ohio_pop
Actually, the scale I used isn’t a very good one for the type of data I using due to the outliers. I’m not sure there is a better scale method out there.