add some c3.js magic