</BUG>
private float donutSize = 0.5f;
private DonutMode donutMode = DonutMode.PERCENT;
public enum DonutMode {
PERCENT,
<BUG>DP,</BUG>
PIXELS
}
public PieRenderer(PieChart plot) {
super(plot);
}
public float getRadius(RectF rect) {
<BUG>return  rect.width() < rect.height() ? rect.width() / 2 : rect.height() / 2;
}</BUG>
@Override

import com.androidplot.ui.SeriesBundle;
import com.androidplot.ui.SeriesRenderer;
import com.androidplot.ui.RenderStack;
import java.util.List;
public class PieRenderer extends SeriesRenderer<PieChart, Segment, SegmentFormatter> {
private float startDegs = 0;
private float extentDegs = 360;
private float donutSize = 0.5f;
private DonutMode donutMode = DonutMode.PERCENT;
public enum DonutMode {
PERCENT,
PIXELS
