Updated barchart to use same data format as piechat