#47 improved text formatting for bars