Fix graph title when too long