AngularJS directive to draw D3 line chart with multiple lines