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

y axis in gantt chart

2 Answers 40 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Karthik Kantharaj
Top achievements
Rank 1
Karthik Kantharaj asked on 31 Aug 2010, 09:07 AM
Hi Guys
I am working with gantt chart
i placed label in x asix using below line
<XAxis DataLabelsColumn="Name"></XAxis>  

but i am not able to place my y axis as label my requirement is to display jan, feb till december
and this should be displayed on top not at the bottom

Any idea
Please guide me
Karthik.K

2 Answers, 1 is accepted

Sort by
0
Ves
Telerik team
answered on 03 Sep 2010, 07:40 AM
Hello Karthik,

I am afraid RadChart does not allow setting labels for Y axis items in this manner. You can set the Y axis range manually like this:

RadChart1.PlotArea.YAxis.AutoScale = false;
RadChart1.PlotArea.YAxis.AddRange(1, 12, 1);

and then loop through all the items and update their text accordingly:

for (int i = 0; i < 12; i++)
{
        RadChart1.PlotArea.YAxis.Items[i].TextBlock.Text = months[i];
}


Greetings,
Ves
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Karthik Kantharaj
Top achievements
Rank 1
answered on 03 Sep 2010, 11:39 AM
Hi Ves

Thank you and i will work on it and revert back if i face any issues

Karthik.K
Tags
Chart (Obsolete)
Asked by
Karthik Kantharaj
Top achievements
Rank 1
Answers by
Ves
Telerik team
Karthik Kantharaj
Top achievements
Rank 1
Share this question
or