I would like to specifically change only the legend size outputting for a Pie Chart. I've tried all methods I can find for AChartEngine, but none of them only change the legend text size. Do I have to override the onDraw function? If so, how?
Asked
Active
Viewed 3,695 times
2 Answers
8
For setting the legend height use:
renderer.setLegendHeight(height);
You can also have the legend take only the exact space it needs:
renderer.setFitLegend(true);
To change the legend text size:
renderer.setLegendTextSize(textSize);

Dan D.
- 32,246
- 5
- 63
- 79
-
That works, but how do you change the actual size of the text in the legend? (It's too small) – Nathan Petersen Jul 23 '13 at 20:22
-
So it seems to work, but it also changes the label size... Not sure if thats a bug or not – Nathan Petersen Jul 24 '13 at 14:10
-
facing this problem; The method setLegendTextSize(int) is undefined for the type SimpleSeriesRenderer – Mohsin Dec 30 '14 at 07:30