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

Limiting axis to display integer value

1 Answer 74 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.
Ankit
Top achievements
Rank 1
Ankit asked on 16 Mar 2015, 12:55 PM
Hello,


I want to know that how can i restrict y Axis to display only integer value.
Currently it is showing value from 0 - 10 (for example) its shows like 0, 0.5 , 1 , 1.5  .. etc. i want it to restrict it to show only integers.


Thanks 
Ankit

1 Answer, 1 is accepted

Sort by
0
Adrian
Telerik team
answered on 16 Mar 2015, 03:26 PM
Hi Ankit,

Thank you for contacting us.

To make the interval between axis major ticks to be integer values you should set the majorTickInverval property of your axis. Please consider the code snippet below:
((TKChartNumericAxis *)_chart.yAxis).majorTickInterval = @1;

I hope this helps. Should you have further questions, I will be glad to assist.

Regards,
Adrian
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Chart
Asked by
Ankit
Top achievements
Rank 1
Answers by
Adrian
Telerik team
Share this question
or