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

RadChart causes RadToolTipManager error

1 Answer 27 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Sanjay
Top achievements
Rank 1
Sanjay asked on 01 Feb 2011, 10:00 PM
I have a RadChart in a page 

<
telerik:RadChart ID="ChartProjects" runat="server" DataGroupColumn="ProjectName" AutoTextWrap="True" Skin="Colorful" Height="400px" Width="0px"></telerik:RadChart>

While changing the width to 80% in the property window the width automatically became 0px 
and this is what caused the error. So I have corrected it.

I can now see the chart OK with the Y Axis fine with increasing numbers and also the Series is OK.
But please help me in regards to the X axis text content.
It currently shows 1 in the center

I tried these lines of codes (one at a time) but seems to do nothing!
ChartProjects.PlotArea.XAxis.AddItem(projectCount)

 

 

 

 

ChartProjects.PlotArea.XAxis.AxisLabel.TextBlock.Text = dbRow(

 

"ProjectName").ToString.Substring(0, 2)

 

 

 

 

 

 

 

 

 

Can you help in this regards?

Thanks,
Sanjay



 

1 Answer, 1 is accepted

Sort by
0
Evgenia
Telerik team
answered on 07 Feb 2011, 01:06 PM
Hello Sanjay,

There are two ways to set custom labels for RadChart's XAxis:
1. Add them proframmatically as shown in our help topic
2. DataBind RadChart to a generic list of objects where one of the Objects is presented as DataXColumn.
This is described in our help article .

Greetings,
Evgenia
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Tags
Chart (Obsolete)
Asked by
Sanjay
Top achievements
Rank 1
Answers by
Evgenia
Telerik team
Share this question
or