D3 optimizations and style tweaks.