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

Thread is closed for posting
2 posts, 0 answers
  1. Michele
    Michele avatar
    1 posts
    Member since:
    Dec 2015

    Posted 15 Dec 2015 Link to this post

    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?

  2. Jack
    Jack avatar
    2333 posts

    Posted 16 Dec 2015 Link to this post

    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.

    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
Back to Top