iosiphonecore-plot

How to make circular Legend in corePlote?


I searched this question but did not get appropriate answer.

I'm using CorePlote for graphs and chart in my application. i tried to customize Legend of Pie Chart to circular but i did not find any method or property for that.

Does any one has any idea about it?


Solution

  • You can use cornerRadius property of radius.
    Try following code i hope i will help.

    theLegend.cornerRadius = [theLegend.bounds.size.width/2];
    

    Here theLegend is object of CPTLegend.