Reputation: 314
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?
Upvotes: 4
Views: 3708
Reputation: 545
To change the value of chart renderer.setChartValuesTextSize(textSize);
Upvotes: 1
Reputation: 32391
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);
Upvotes: 8