use c3.js to draw charts