Change graph title by color legend