Can no longer set majorTickInterval on TKChartCategoryAxis

4 posts, 0 answers
  1. Naknut
    Naknut avatar
    1 posts
    Member since:
    Aug 2013

    Posted 01 Dec 2015 Link to this post

    Hi!

     I updated TelerikUI in our iOS application today and now i'm getting a problem with TKChartCategoryAxis. Before we used the 

    majorTickInterval
    property to set the number of ticks in our graph. Since one of the updates this property have become readOnly so I can no longer set it. How do i get the same result as before?

  2. Sophi
    Admin
    Sophi avatar
    99 posts

    Posted 02 Dec 2015 Link to this post

    Hello Naknut,

    The majorTickInterval property of the TKChartCategoryAxis is read only in order to prevent unexpected behavior of the chart.
    Consider using TKChartDateTimeAxis or TKChartNumericAxis depending on your data. Both of them have a mutable majorTickInterval.

    I hope this helps.
    If you have any other questions, do not hesitate to contact us.

    Regards,
    Sophi
    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. Miguel
    Miguel avatar
    7 posts
    Member since:
    Sep 2015

    Posted 21 Dec 2015 Link to this post

    Hi, 

    I had the same problem. You can solve it duplicating the TKChartCategoryAxis.h of the framework and removing the readonly attribute of the majorTickInterval property. 

    Regards

  5. Sophi
    Admin
    Sophi avatar
    99 posts

    Posted 23 Dec 2015 Link to this post

    Hello Miguel,

    Thank you for sharing your solution with the community. However, please note that the majorTickInterval property does not support custom values when used with the TKChartCategoryAxis. As I stated in my previous post this may lead to unexpected behavior. We will consider implementing this feature in a future version of the TKChart.

    Regards,
    Sophi
    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