andjash / AYPieChart

PieChart view for iOS
MIT License
24 stars 5 forks source link

DetailView Position? #1

Open farazhaider88 opened 9 years ago

farazhaider88 commented 9 years ago

is there any way i can change the position of detail view and shift it out side pie keeping it in centre?

farazhaider88 commented 9 years ago

i want following thing with this library? is it possible?? wfbkc

andjash commented 9 years ago

Hi,

On current version it is not possible. Required some code modifications to add possibility to move details view away from piechart.

2015-09-28 18:31 GMT+05:00 farazhaider88 notifications@github.com:

i want following thing with this library? is it possible?? [image: wfbkc] https://cloud.githubusercontent.com/assets/1468654/10136660/07269be4-660f-11e5-832f-362d4e3b1eb8.png

— Reply to this email directly or view it on GitHub https://github.com/andjash/AYPieChart/issues/1#issuecomment-143744346.

farazhaider88 commented 9 years ago

can u help me in making this. i need to make this.

andjash commented 9 years ago

Sorry, now i have no free time for this. Maybe in future...

2015-09-28 18:48 GMT+05:00 farazhaider88 notifications@github.com:

can u help me in making this. i need to make this.

— Reply to this email directly or view it on GitHub https://github.com/andjash/AYPieChart/issues/1#issuecomment-143748336.

farazhaider88 commented 9 years ago

can you please provide me hint on doing this. i need this on urgent basis, will remain your grateful on this.

andjash commented 9 years ago

If u dont need rotation, you can use method for identifying current position for required chart segment. - (CGFloat)angleInDegreesForPieChartEntry:(AYPieChartEntry *)entry;

After you get angle for required segment you can calculate coordinates and manually add your custom view to outside area of chart.

farazhaider88 commented 9 years ago

i did not need any rotation. i just need these views to be placed on there.

CompassCanJV commented 9 years ago

And he just told you how. Nest the pie chart in a bigger UIView and use the angles supplied to calculate where to put your extra views relative to the chart's center.