I am testing out the chart component and it seems to be quick on the initial load but slow when I clear out the entities and reload them. I am using wcf ria services.
For example,
I added a chart in xaml with no settings:
For example,
I added a chart in xaml with no settings:
<
telerik:RadChart
Height
=
"289"
HorizontalAlignment
=
"Left"
Margin
=
"365,6,0,0"
Name
=
"radChart1"
VerticalAlignment
=
"Top"
Width
=
"597"
/>
Then in the load method of user control
SeriesMapping seriesMapping = new SeriesMapping();
seriesMapping.SeriesDefinition = new BarSeriesDefinition();
seriesMapping.GroupingSettings.GroupDescriptors.Add(new ChartGroupDescriptor("PersonName"));
seriesMapping.ItemMappings.Add(new ItemMapping("PersonName", DataPointMember.LegendLabel, ChartAggregateFunction.None));
seriesMapping.ItemMappings.Add(new ItemMapping("PersonName", DataPointMember.XValue, ChartAggregateFunction.Count));
seriesMapping.ItemMappings.Add(new ItemMapping("Amount", DataPointMember.YValue, ChartAggregateFunction.Sum));
this.radChart1.SeriesMappings.Add(seriesMapping);
radChart1.DefaultSeriesDefinition.LegendDisplayMode = LegendDisplayMode.SeriesLabel;
radChart1.DefaultView.ChartLegend.UseAutoGeneratedItems = true;
radChart1.ItemSource = Context.DataEntity;
I am calling context.Clear() for subsequent calls. The data itself is typically less than 50 rows.
Can you recommend anything to help optimize loads with the chart component?