Angular directive for C3.js