Limiting axis to display integer value

2 posts, 0 answers
  1. Ankit
    Ankit avatar
    8 posts
    Member since:
    Jan 2015

    Posted 16 Mar 2015 Link to this post


    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.

  2. Adrian
    Adrian avatar
    158 posts

    Posted 16 Mar 2015 Link to this post

    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.


    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.

  3. DevCraft R3 2016 release webinar banner
Back to Top