implemented a chart using chart.js library & html5 canvas element