Dear Telerik Team,
Currently, we are working on our web.app. which utilizes your library for ATLAS. Getting a fast chart component was one of the reasons for our decision to buy your library. Recently, we have using MSChart on certain web page which resides in our solution. However, we are unfavorably surprised, because of your Radchart performance ussues. We are afraid of the incorrect utilization of the RadChart component, therefore we would like to ask you for a proper technique to RadChart preparing as well as rendering.
Please, have a look at our performance test, which we have made for the comparison. The test were proceeded on the same machine/IDE/database/.NET framework (so, on the same HW & SW configuration).
Here is our source code snippet: (Let us remark that we need to specify the color for each of the series.)
foreach (KeyValuePair<DataPointEntity, DataTable> dt in data)
{
ChartSeries chartSeries = new ChartSeries(radChart.Series);
chartSeries.Name = dt.Key.Name;
chartSeries.Appearance.ShowLabels = false;
chartSeries.SetColors(dt.Key.Color);
chartSeries.Appearance.FillStyle.MainColor = dt.Key.Color;
for (int i = 0; i < dt.Value.Rows.Count; ++i)
chartSeries.AddItem(new ChartSeriesItem(
((DateTime)dt.Value.Rows[i][1]).ToOADate(), (double)dt.Value.Rows[i][2]));
radChart.Series.Add(chartSeries);
}
Here are the obtained results:
MSChart:
Preparing 27 000 values 0:0:0.093 s
Rendering: 13 s
RadChart:
Preparing 27 000 values 0:0:2.160 s
Rendering: 30 s
What we have made wrong, please? Must we done this by using a DataTable (or something similar)?
There is series type “Fastline” in MS chart for faster rendering. Do you have any tip or idea how to set up the RadChart instance to accomplish faster rendering, or is there something for increase the rendering speed?
We suppose that Silverlight version of the RadChart maybe faster, but we want to build our web app on ATLAS.
Kind Regards,
SCT