Added rough implementation to get the bar chart data in utils.js