Angular.js reusable directive to draw awesome line charts based on D3.js