Before adding barchart