This is a migrated thread and some comments may be shown as answers.

performace issue when adding dataseries

1 Answer 87 Views
Chart
This is a migrated thread and some comments may be shown as answers.
simon
Top achievements
Rank 1
simon asked on 12 Aug 2009, 06:50 PM

I have the following test code:
page.xaml:
<my:RadChart x:Name="chart"></my:RadChart>

page.xaml.cs
public Page()
{
InitializeComponent();
this.Loaded += new RoutedEventHandler(Page_Loaded);
}
void Page_Loaded(object sender, RoutedEventArgs e)
{
DataSeries dataSeries;
DataPoint dataPoint;
dataSeries = new DataSeries();
dataSeries.Definition = new BarSeriesDefinition();
dataPoint = new DataPoint();
dataPoint.YValue = 12345678;
dataSeries.Add(dataPoint);
chart.DefaultView.ChartArea.DataSeries.Add(dataSeries);

dataSeries = new DataSeries();
dataSeries.Definition = new BarSeriesDefinition();
dataPoint = new DataPoint();
dataPoint.YValue = 1234567;
dataSeries.Add(dataPoint);
chart.DefaultView.ChartArea.DataSeries.Add(dataSeries);
}

when run, the browser freeze, if I change the second YValue from 1234567 to 12345678, it worked fine.
Is this a bug or I missed some settings?

1 Answer, 1 is accepted

Sort by
0
Giuseppe
Telerik team
answered on 13 Aug 2009, 02:34 PM
Hello simon,

Indeed we must admit this was a bug within the chart control. We would suggest you to upgrade to the latest version of the Silverlight controls released yesterday (Q2 2009 SP1) that addresses the performance issue in this scenario.

Hope this helps.


All the best,
Manuel
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Chart
Asked by
simon
Top achievements
Rank 1
Answers by
Giuseppe
Telerik team
Share this question
or