show max labels for x and y axes in cost graph