update title of bargraph depending on view mode