I am trying to evaluate the performance of the RadChart in a Silverlight environment. My current chart is a simple line chart. The problem comes when there are numerous datapoints. It is relatively speedy with numbers under 10, but we currently have 400 and there could be more. I had seen in one post that SuspendNotifications and ResumeNotifications was expected to solve this problem, but I haven't had any luck. I've placed the code below that I am using on the VB side to populate the chart. Any assistance would be wonderful. Within the example mData is simply holding the collection of values.
--Johnny
Dim seriesData As New DataSeries
Dim point As DataPoint
seriesData.SuspendNotifications()
For Each row In mData
point =
New DataPoint
point.XValue = row.XVal.ToOADate
point.YValue = row.YVal
seriesData.Add(point)
Next
seriesData.Definition =
New LineSeriesDefinition()
TryCast(seriesData.Definition, LineSeriesDefinition).ShowPointMarks = False
seriesData.Definition.ShowItemLabels =
False
seriesData.Definition.ShowItemToolTips = True
seriesData.Definition.Appearance.StrokeThickness = 1
Chart.DefaultView.ChartArea.AxisX.IsDateTime =
True
Chart.DefaultView.ChartLegend.Visibility = Windows.Visibility.Collapsed
Chart.DefaultView.ChartArea.AxisX.LabelRotationAngle = 90
Chart.DefaultView.ChartArea.AxisX.IsDateTime =
True
Chart.DefaultView.ChartArea.AxisX.DefaultLabelFormat = "MM/dd/yy hh:mm:ss"
Chart.Visibility = Windows.Visibility.Visible
Chart.AnimationSettings.ItemDelay = System.TimeSpan.Zero
StyleManager.SetTheme(Chart,
New SummerTheme)
Chart.DefaultView.ChartArea.DataSeries.Add(seriesData)
seriesData.ResumeNotifications()