How to Adjust X-Axis Label in TKChart?

Thread is closed for posting
2 posts, 0 answers
  1. Nandu
    Nandu avatar
    12 posts
    Member since:
    Aug 2015

    Posted 02 Sep 2015 Link to this post


    Im using TkChart, i have total 23 dates in x-axis. If im using zoom out functionality the x-axis labels are overlapping.

    in my case i want to show every time zoom in or zoom out at least 3 or 4 dates. In this case How can i manage the a-axis labels.



  2. Yoanna
    Yoanna avatar
    44 posts

    Posted 04 Sep 2015 Link to this post

    Hello, Nandu,

    Thank you for contacting us.

    TKChart  control has an option for the zoom range to be constrained. A minimum and maximum zoom value could be set with using TKChart's axis zoomRange property. Depending on your data points count you can set it as its shown below:

    chart.xAxis.zoomRange = [[TKRange alloc] initWithMinimum:@(2) andMaximum:@(5)];

    If you need further assistance do not hesitate to contact 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