This is a migrated thread and some comments may be shown as answers.

How to align a pie/donut chart to the left of its container view?

1 Answer 125 Views
Chart
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Michele
Top achievements
Rank 1
Michele asked on 15 Dec 2015, 04:16 PM

Hi,
I'm developing a new iOS App and I need to align a pie/donut chart to the left of its container view (plotView area). It seems that this kink of charts are always rendered in the center of the "plotView". I tried to change the plotView's frame with any success.

Is there any "easy" way to align the chart to the left?

1 Answer, 1 is accepted

Sort by
0
Jack
Telerik team
answered on 16 Dec 2015, 01:22 PM
Hi Michele,

Thank you for contacting us.

Pie series is always centered in TKChart. By default it occupies the whole chart space with and inset of 10 points. You can disable this inset by setting the insets property:
_pieChart.insets = UIEdgeInsetsMake(0, 0, 0, 0);

After that you can align the chart view at your wish. However, I am not sure about your scenario and why you want to change the pie center. Please, could you elaborate a bit further and describe with more details your scenario. We will analyse it and we will consider improving our API for future releases. Thank you in advance.

Should you have other questions, do not hesitate to write us.

Regards,
Jack
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Chart
Asked by
Michele
Top achievements
Rank 1
Answers by
Jack
Telerik team
Share this question
or