update version of d3 and add nvd3