theJuls
theJuls

Reputation: 7470

How to set chart legend's position (achartengine)

My legend is running into my x axis values, I can't figure out how to fix it.

I already tried both

renderer.setFitLegend(true);

and

renderer.setLegendHeight(10);

Both of them just make the legend disappear and the latter one sometimes cuts my chart from the screen.

Here is how it currently looks: enter image description here

Thanks

Upvotes: 1

Views: 1535

Answers (1)

maatik5
maatik5

Reputation: 277

Try renderer.setMargins(new int[] { 50, 50, 25, 22 });

Upvotes: 5

Related Questions