Titles pie chart logic