Fixed pie chart issue with messed up data labels with certain combinations of start and end angle. Closes #2645.