Pie Chart Drawing in Android
<p>This is the code I have used for the chart - it is not displaying properly:</p>

<pre><code>RectF rectf = new RectF (10, 10, 200, 200);
Paint paint = new Paint();

for(int i=0;i&lt;list.length;i++) {
  if (i == 0) {
    paint.setColor(COLORS[i]);
    canvas.drawArc(rectf, 0, list_degree[i], true, paint);
  } else {
    paint.setColor(COLORS[i]);
    canvas.drawArc(rectf, (list_degree[i-1]), (list_degree[i]), true, paint);
  }
}
</code></pre>
