before changing angular-nvd3.js