Charts based on d3, nvd3 and directives angular