Resize a legend in AChartEngine

I would like to specifically change only the legend size output for the pie chart. I tried all the methods that I can find for AChartEngine, but none of them just change the size of the legend text. Do I need to override the onDraw function? If so, how?

+4
source share
2 answers

To set the legend height, use:

renderer.setLegendHeight(height); 

You can also use the legend only in the place where it is needed:

 renderer.setFitLegend(true); 

To resize legend text:

 renderer.setLegendTextSize(textSize); 
+8
source

To change the value of a chart renderer.setChartValuesTextSize (TEXTSIZE);

+1
source

Source: https://habr.com/ru/post/1493036/


All Articles