fix formatting of bar charts