switch d3.js to chart.js