dataSum += tmpSeries->GetData(s);
percent = (dataSum * 100) / totalSum;
degrees = (360 * percent) / 100;
deltaXY = (degrees * radius) / 90;
int quadrant = degrees / 90;
switch(quadrant)
{
case 0 : newXLocation = pieLeft + deltaXY;
newYLocation = centerYPie + deltaXY;
break;
case 1 : newXLocation = pieLeft + deltaXY;
newYLocation = centerYPie + (2 * radius) - deltaXY;
// newYLocation = centerYPie + radius - (deltaXY - radius);
break;
case 2 : newXLocation = pieLeft + (4 * radius) - deltaXY;
// newXLocation = pieLeft + (2 * radius) - (deltaXY - (2 * radius));
newYLocation = centerYPie + (2 * radius) - deltaXY;
// newYLocation = centerYPie - (deltaXY - (2 * radius));
break;
case 3 : newXLocation = pieLeft + (4 * radius) - deltaXY;
// newXLocation = pieLeft + radius - (deltaXY - (3 * radius));
newYLocation = centerYPie - (4 * radius) + deltaXY;
// newYLocation = centerYPie - radius + (deltaXY - (3 * radius));
break;
case 4 : newXLocation = pieLeft;
newYLocation = centerYPie - 1;
break;
}