fixed bug on bar charts
removed console.log