RectF plotArea = getPlot().getPie().getWidgetDimensions().marginatedRect;
PointF origin = new PointF(plotArea.centerX(), plotArea.centerY());
float dx = point.x - origin.x;
float dy = point.y - origin.y;
double theta = Math.atan2(dy, dx);
<BUG>double angle = (theta * (180f/Math.PI));

if(angle < 0) {

angle += 360;
</BUG>
}

RectF plotArea = getPlot().getPie().getWidgetDimensions().marginatedRect;
PointF origin = new PointF(plotArea.centerX(), plotArea.centerY());
float dx = point.x - origin.x;
float dy = point.y - origin.y;
double theta = Math.atan2(dy, dx);
double angle = (theta * (180f / Math.PI));
if (angle < 0) {
angle += 360f;
}
