Zoom Out programmatically

4 posts, 0 answers
  1. Sal
    Sal avatar
    58 posts
    Member since:
    Feb 2015

    Posted 09 Dec 2015 Link to this post

    So I know I can set the Zoom Range and Zoom value on an axis when setting up a chart by accessing both properties but is there a way to Zoom Out, like add a negative value to have the chart zoomed out a little more than it's default view? I only ask because I have a couple charts where the last few data points are right at the edge of the graph and there isn't enough room to really see them so the users want to know if the graph can first load a little zoomed out and then they can zoom in if they want to. When I try to set the zoom of either axes as a negative number the graph's don't draw at all (I have NSDate's on the X-Axis and Numbers on the Y-Axis). Thanks. 
  2. Adrian
    Admin
    Adrian avatar
    167 posts

    Posted 10 Dec 2015 Link to this post

    Hi, Sal,

    Than you for contacting the iOS team.

    TKChart does not support negative zoom on its axes. I added this suggestion to our feedback portal where you can follow its status. We will consider implementing such functionality if there is enough interest. 
    Currently a possible way to show the points on left and right of the chart is to change the axis range which will make the points visible with zoom 0.

    I hope this helps. If you need more assistance, do not hesitate to contact us.

    Regards,
    Adrian
    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
  3. DevCraft banner
  4. Sal
    Sal avatar
    58 posts
    Member since:
    Feb 2015

    Posted 10 Dec 2015 in reply to Adrian Link to this post

    Thanks Adrian. I kind of thought that was going to be the issue so I'll add an adjust the Date Range on the xAxis so I can get the last point to show up a little better. 
  5. Adrian
    Admin
    Adrian avatar
    167 posts

    Posted 15 Dec 2015 Link to this post

    Hello, Sal,

    I am glad that I could help. In case you need further assistance do not hesitate to contact us.

    Regards,
    Adrian
    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
Back to Top
DevCraft banner