i use the ItemsSource property to bind a chart to an array of data with 2 series. essentially showing multiple columns for different days and each column has data for the two series.
in this case how can i set the x axis labels to the date ?
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
my question was actually if i already have a predefined datasource that does not include the labels for the columns how can i set the column labels without having them in the datasource ?
0
Velin
Telerik team
answered on 01 Sep 2010, 05:13 PM
Hello Michael Salzlechner,
You can handle the AxisX.RangeChange event and manually set the labels as shown below.However, our recommendation is to use categorical chart.
RadChart1.DefaultView.ChartArea.AxisX.RangeChanged += new EventHandler(AxisX_RangeChanged);
foreach (var item in RadChart1.DefaultView.ChartArea.AxisX.TickPoints)
{
item.Label = "Text" + i++;
}
}
All the best,
Ryan
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