Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
125
Potential Performance issue with Series in WebChart
posted

Hi,

I am having a chart in my UI. I am adding a series to the chart and then assign the DataSource to the series. Chart takes lots of time to render the chart.

 

            int[] zi = new int[356];
            Infragistics.Silverlight.Chart.Series s3 = new Infragistics.Silverlight.Chart.Series();
            s3.ChartType = ChartType.Line;
            for (int j = 0; j < 356; j++)
            {
                zi[j] = j;

            }
            igChart3.Series.Add(s3);
            igChart3.Series[0].DataSource = zi;

 

Alternatively, if I assign data to the series and then add the series to chart, it works perfectly(much quicker).

            int[] zi = new int[356];
            Infragistics.Silverlight.Chart.Series s3 = new Infragistics.Silverlight.Chart.Series();
            s3.ChartType = ChartType.Line;
            for (int j = 0; j < 356; j++)
            {
                zi[j] = j;

            }
            s3.DataSource = zi;
            igChart1.Series.Add(s3);

Why is this performance difference?

 

Due to this limitation we are not able to do data binding to the series from XAML code.

 

Regards,

Madhan