I was looking for the same thing too. But see Dan's answer here . I believe he is the guy behind AChartEngine, and he says that the names of the legends and labels cannot be different.
Update:
Despite the fact that I did this, I made the legend size equal to 0. Then, in the shortcut, I set the label and the calculated percentage together. So, in your case, the labels will look like this:
Mg +: 23%
Na +: 45% ... so on.
Update: 2
This problem is for the present in version 1.0.0 and was resolved in the latest version 1.1.0-rc2. You can download it from here . Now that @Dan says here , we can have different Legend and Label values. We can also use:
renderer.setDisplayValues(true);
to display the percentage distribution in the pie chart itself.
source share