Hey, there... I'm trying to build a report, including charts, to display a series of metrics. The X-axis values on my charts are to be dates. I've set the format of the values on that axis to be a short date, and I'm trying to use the Chart.PlotArea.XAxis.DataLabelsColumn to get the values from the data source I'm using. Unfortunately, all I'm getting is zeroes for each column. Here's the code in my NeedDataSource handler:
private void ByDateChart_NeedDataSource(object sender, System.EventArgs e)
{
Telerik.Reporting.Processing.Chart chart = sender as Telerik.Reporting.Processing.Chart;
DataRowView dataItem = (DataRowView)chart.DataItem;
sqlDataAdapter1.Fill(dataSet);
DataView view = dataSet.Tables[0].DefaultView;
chart.DataSource = view;
ByDateChart.PlotArea.XAxis.MaxItemsCount = view.Count;
ByDateChart.PlotArea.XAxis.MaxValue = view.Count;
ByDateChart.PlotArea.XAxis.MinValue = 0;
}
Any advice? Even some general info on using dates as value labels along an axis would be helpful.
private void ByDateChart_NeedDataSource(object sender, System.EventArgs e)
{
Telerik.Reporting.Processing.Chart chart = sender as Telerik.Reporting.Processing.Chart;
DataRowView dataItem = (DataRowView)chart.DataItem;
sqlDataAdapter1.Fill(dataSet);
DataView view = dataSet.Tables[0].DefaultView;
chart.DataSource = view;
ByDateChart.PlotArea.XAxis.MaxItemsCount = view.Count;
ByDateChart.PlotArea.XAxis.MaxValue = view.Count;
ByDateChart.PlotArea.XAxis.MinValue = 0;
}
Any advice? Even some general info on using dates as value labels along an axis would be helpful.