nvd3 in controller