added formatting for bar graphs