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

XAxis tickpoint count

1 Answer 59 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Jatin Aggarwal
Top achievements
Rank 1
Jatin Aggarwal asked on 23 Mar 2010, 03:49 PM
When I am adding the XAxis tickpoint  , if the tickpoint count increased by 15 then Array out of index exception has thrown

radChart.DefaultView.ChartArea.AxisX.TickPoints[index].Label =Date;
When the index value increased by 15 then it will throw the Array out of index exception

1 Answer, 1 is accepted

Sort by
0
Velin
Telerik team
answered on 26 Mar 2010, 09:40 AM
Hello Jatin Aggarwal,

You should make sure that you do not step out of the bounds of  the AxisX.TickPoints collection. You could either use the following code or elaborate more on your scenario in order to further assist you.
foreach (TickPoint tp in RadChart1.DefaultView.ChartArea.AxisX.TickPoints)
{
    tp.Label = DateTime.Today.ToShortDateString();
}
 
Best wishes,
Velin
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.
Tags
Chart
Asked by
Jatin Aggarwal
Top achievements
Rank 1
Answers by
Velin
Telerik team
Share this question
or