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

Can no longer set majorTickInterval on TKChartCategoryAxis

3 Answers 29 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.
Naknut
Top achievements
Rank 1
Naknut asked on 01 Dec 2015, 11:24 AM

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?

3 Answers, 1 is accepted

Sort by
0
Sophi
Telerik team
answered on 02 Dec 2015, 02:35 PM
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
0
Miguel
Top achievements
Rank 1
answered on 21 Dec 2015, 04:05 PM

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

0
Sophi
Telerik team
answered on 23 Dec 2015, 11:15 AM
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
Tags
Chart
Asked by
Naknut
Top achievements
Rank 1
Answers by
Sophi
Telerik team
Miguel
Top achievements
Rank 1
Share this question
or