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

How to customize yaxis values in rad chart

1 Answer 331 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Muhamed Shafi
Top achievements
Rank 1
Muhamed Shafi asked on 04 Nov 2011, 06:58 AM
Hi all,
        I am using a rad chart (type="Line") where x axis values are adding dynamically which is working smoothly. Now I need to add y axis values also in the same manner. I know minimum and maximum values of y axis but the major tick values binding on it should be specific. For instance: minimum Value=0 and Maximum Value=10. Now I want to display only major ticks like 0,2,5,9 & 10 in the y axis; and also distance between these values should be proportionate. Is it possible ? Any help would be highly appreciated
Thanks in advance
Shafi

1 Answer, 1 is accepted

Sort by
0
Peshito
Telerik team
answered on 08 Nov 2011, 04:28 PM
Hi Muhamed Shafi,

You can control axes values by setting the AutoScale to False. Then you need to set Min, Max and Step values which will then define your axis.

Alternatively need to do a custom logic, by wiring to the Chart's BeforeLayout event and set the value of each ChartAxisItem. Similar scenario is achieved in the following forum thread:
http://www.telerik.com/community/forums/aspnet-ajax/general-discussions/how-to-hide-y-axis-labels.aspx#1752195

More about axes can be found here:
http://www.telerik.com/help/aspnet-ajax/radchart-axes.html

Best wishes,
Peshito
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Tags
Chart (Obsolete)
Asked by
Muhamed Shafi
Top achievements
Rank 1
Answers by
Peshito
Telerik team
Share this question
or