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

Decimals in X/Y Axis labels

1 Answer 65 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Kludge
Top achievements
Rank 1
Kludge asked on 10 Jul 2008, 03:11 AM
How can I display only integer values as labels in the X/Y axes?

Thanks in advance.

1 Answer, 1 is accepted

Sort by
0
Accepted
Ves
Telerik team
answered on 10 Jul 2008, 08:17 AM
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
Tags
Chart (Obsolete)
Asked by
Kludge
Top achievements
Rank 1
Answers by
Ves
Telerik team
Share this question
or