AngularJS directive for dygraphs