AChartEngine: How to Indent Between Chart and Y Axis Labels

I use aChartEngine to display a simple bar chart. I would like to add an addition between the chart itself and the y axis labels. Labels touch the border of a chart that doesn't look too big. I know the setMargins method of the setMargins class, but it just controls the external fields of the chart as a whole. How can I do it?

+4
source share
1 answer

You can change the alignment of the Y axis labels, and you can change the font size and style, but you cannot change the indentation between the labels and the chart itself.

I just added an API to configure padding for both the X axis and the Y axis.

 renderer.setXLabelsPadding(10); renderer.setYLabelsPadding(10); 

You can check the code from ACHartEngine SVN and create a jar file with ant dist .

+8
source

All Articles