DiogoMts
unread,Nov 16, 2010, 10:28:30 AM11/16/10Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ChartDroid Users
Hi,
I've tried all possible combinations for adding labels to the
org.achartengine.activity.PieChartActivity and didn't manage to get
any positive results.
Here's what I've tried:
ArrayList<String> a2 = new ArrayList<String>();
a2.add("Heelo1");
a2.add("Heelo2");
Intent i = new Intent(Intent.ACTION_VIEW,
UserDataStatisticsProvider.PROVIDER_URI);
i.setClassName("com.googlecode.chartdroid",
"org.achartengine.activity.PieChartActivity");
i.addCategory(IntentConstants.CATEGORY_PIE_CHART);
i.putExtra(Intent.EXTRA_TITLE, "Chart Title");
i.putExtra("com.googlecode.chartdroid.intent.extra.COLORS", new int[]
{Color.RED, Color.MAGENTA});
i.putExtra("com.googlecode.chartdroid.intent.extra.SERIES_LABELS", new
String[] {"A1","A2"} );
i.putExtra("com.googlecode.chartdroid.intent.extra.AXIS_TITLES", a2 );
i.putExtra("com.googlecode.chartdroid.intent.extra.LABELS", new
String[] {"A111","A222"} );
startActivity(i);
Does anyone know how to do this? It's really annoying to have "Project
1" and "Project 2" labels....
Thanks