Baginning of Chart.js use for history