pie.getBackgroundPaint().setColor(Color.gray);pie.getBorderPaint().setColor(getResources().getColor(R.color.blue));pie.getBorderPaint().clearShadowLayer();pie.setBorderStyle(Plot.BorderStyle.NONE, null, null);getGraphWidgetplot.getBorderPaint().setColor(Color.TRANSPARENT);for(int i = 0; i < plot.getLayoutManager().size(); i++) {
Widget w = plot.getLayoutManager().get(i);
if(w instanceof PieWidget) {
((PieWidget) w).getBorderPaint().setColor(Color.BLUE);
break;
}
}pie.getBorderPaint().setColor(Color.TRANSPARENT);
pie.getBackgroundPaint().setColor(Color.TRANSPARENT);With just these changes no borders were visible whatsoever. In other words it appears to be totally unnecessary to access the PieWidget get remove anyborder(s). It seems like this border must be coming from somewhere outside Androidplot. Is it possible a border is defined on an enclosing View?
...
pie.addSeries(new Segment("s1", 10), sf1);
pie.addSeries(new Segment("s1", 1), sf2);
pie.addSeries(new Segment("s1", 10), sf3);
pie.addSeries(new Segment("s1", 10), sf4);
pie.getRenderer(PieRenderer.class).setDonutSize(0/100f, PieRenderer.DonutMode.PERCENT);
pie.getBorderPaint().setColor(Color.TRANSPARENT);
pie.getBackgroundPaint().setColor(Color.WHITE);
pie.redraw();
...
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
style="@style/sample_activity"
android:background="@drawable/loginback"
android:orientation="vertical" >
<com.androidplot.pie.PieChart
android:id="@+id/mySimplePieChart"
android:layout_width="250dp"
android:layout_height="250dp"
android:layout_weight="1" />
Attached is the output. Thanks!