moved chart code to chart.js