Decimals in X/Y Axis labels

Thread is closed for posting
2 posts, 1 answers
  1. Kludge
    Kludge avatar
    9 posts
    Member since:
    Feb 2006

    Posted 09 Jul 2008 Link to this post

    How can I display only integer values as labels in the X/Y axes?

    Thanks in advance.
  2. Answer
    Ves
    Admin
    Ves avatar
    2926 posts

    Posted 10 Jul 2008 Link to this post

    Hi Roger Helliwell,

    You can wire BeforeLayout event. At this point of the control lifecycle the axis items are already created, so you can hide those that you do not need.

    Alternatively, you can set AutoScale property to false to gain full control over axes. Then use AddRange method to provide your own set of axis items:
    RadChart1.PlotArea.XAxis.AddRange(1, 10, 1).

    Hope this helps.

    Best regards,
    Ves
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Back to Top