Angularjs directive for c3.js charts