added d3 & c3 functionality