replace year with getFullYear in barchart.js