formatting graph