AngularJS directive for adjustable dynamically updating c3 charts