Android achartengine simple pie chart
问题 I'm following an example in this link and created a class as below public class aChartExample { public Intent execute(Context context) { int[] colors = new int[] { Color.RED, Color.YELLOW, Color.BLUE }; DefaultRenderer renderer = buildCategoryRenderer(colors); CategorySeries categorySeries = new CategorySeries("Vehicles Chart"); categorySeries.add("cars ", 30); categorySeries.add("trucks", 20); categorySeries.add("bikes ", 60); return ChartFactory.getPieChartIntent(context, categorySeries,