NVD3 code to configure chart