Now barchart works correctly - may need a little formatting