I am using silverlight Rad Chart(RadControls_for_Silverlight_2009_3_1314_DEV) in my dashboard application. The problem is that the width of the chart is fixed to 520px as there are other charts on the page. but as per the reqirement for more than 1000 of reocrds the chart looks congested like as in attached file. I found that Sampling functionality is provided in version 2010 but i would like to know that is there any criteria to do the same in existing version so that chart look appropriate. I have also tried AxisX.Autorange and step property.
Following is the code snippet i used for binding the line chart.
this
.chartFirst.DefaultView.ChartArea.AxisX.LayoutMode = AxisLayoutMode.Inside;
ChartArea chartArea = chartFirst.DefaultView.ChartArea;
chartArea.EnableAnimations =
true;
chartArea.AxisX.LabelRotationAngle = 45;
DataSeries series = new DataSeries();
series.Definition =
new LineSeriesDefinition();
series.Definition.ShowItemLabels =
true;
foreach (Item in dashboardCollection)
{
series.Add(
new DataPoint(dashboardItem.Value));
}
chartArea.DataSeries.Clear();
chartArea.DataSeries.Add(series);
series.Definition.ShowItemToolTips =
true;
series.LegendLabel =
"";
int countFirst = 0;
foreach (TickPoint tickPoint in chartFirst.DefaultView.ChartArea.AxisX.TickPoints)
{
tickPoint.Label = dashboardCollection[countFirst].Name ==
null ? "NULL" : dashboardCollection[countFirst].Name.ToString();
countFirst++;
}