implemented chart.js (still missing clear function)