updated to use angular-nvd3