Modularized D3 code and started working on smooth dashboard lines.