transform data in barchart3