farshid83 farshid83 - 1 month ago 6
Android Question

how to put legend label on the left hand side of legend form

I have a graph in my app that is drawn using MPAndroid .
The problem is : how to put legend label on the left hand side of the legend form ? The below picture shows my problem
enter image description here

I want to put legend forms (circles) on the right hand side of the legend label

Answer

It's easy:

legend.setDirection(Legend.LegendDirection.RIGHT_TO_LEFT);

Try this code..

Comments