Cannot set labels for org.achartengine.activity.PieChartActivity

10 views
Skip to first unread message

DiogoMts

unread,
Nov 16, 2010, 10:28:30 AM11/16/10
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

Karl Ostmo

unread,
Nov 22, 2010, 8:27:13 AM11/22/10
to chartdro...@googlegroups.com
Hello,
Thanks for bringing this to my attention and sorry for the delayed response.

This was a bug in ChartDroid, now fixed in version 2.0.0, which is just released.

Karl
Reply all
Reply to author
Forward
0 new messages