recovering math functions to position pie chart text