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

RadChart max number of points

5 Answers 113 Views
Chart
This is a migrated thread and some comments may be shown as answers.
andrea bellagamba
Top achievements
Rank 1
andrea bellagamba asked on 06 Oct 2009, 07:13 PM

It seems like the RadChart is not able to display more than 250 points. At that level it generates a "Layout cycle detected" error.
This occurs with your Q2 Sp1 and Q3 Sp1 releases.

Here is a simple example to generate the error, I would really appriciate your help:



public partial class Page : UserControl
    {
        //  the error is generated  for  maxNumberOfPoints >249     -------------------------------------------
        private int _maxNumberOfPoints = 249;

       
       public Page()
        {
            InitializeComponent();
            LoadData();
        }

        private void LoadData()
        {    
            DataSeries splineAreaSeries = this.GetDataSeries();

            splineAreaSeries.Definition = new SplineSeriesDefinition();
            splineAreaSeries.Definition.ShowItemLabels = false;
            splineAreaSeries.Definition.ShowItemToolTips = false;
            _chart.DefaultView.ChartArea.DataSeries.Add(splineAreaSeries);
        }

        public DataSeries GetDataSeries()
        {
            Random random = new Random();
            DataSeries serie = new DataSeries();

            for (int i = 0; i < _maxNumberOfPoints; i++)
            {
                DataPoint dataPoint = new DataPoint();
                dataPoint.YValue = random.Next(10, 1000);
                dataPoint.XValue = i;
                serie.Add(dataPoint);
            }
            return serie;
        }


and the XAML:

 <Grid x:Name="LayoutRoot">
        <Controls:RadChart x:Name="_chart"></Controls:RadChart>
    </Grid>


EXTRA INFO:
DLLs used Telerik.Windows.Controls, Telerik.Windows.Data. Telerik.Windows.Controls.Charting

the error does not occur with you version 2009.1.526.1020 of the DLLs
while it does occur with versions 2009.2.701.1020 and 2009.3.916.1030

thanks

5 Answers, 1 is accepted

Sort by
0
andrea bellagamba
Top achievements
Rank 1
answered on 07 Oct 2009, 02:54 PM
Please let me know if there is a coming fix for this, or a workaround, since y application cannot be deployed if this isn't fix
0
Velin
Telerik team
answered on 09 Oct 2009, 02:01 PM
Hi andrea,

This issue has been already fixed. Our local tests did not confirm that this problem is present in the Q2 SP1 release of the control.

Please, prepare and send us a sample project(including the referenced Telerik dlls) which we could further examine and provide a solution.

Thanks.

Sincerely yours,
Velin
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
andrea bellagamba
Top achievements
Rank 1
answered on 09 Oct 2009, 11:15 PM
HI velin, thanks for your replay, unfortunaltly i can confirm instead that the code that I posted produces the Layout Cycle error with Q2SP1 and with Q3sp1.
I will get a Support ticket so that I can post the entire project.

But as I wrote earlier:

DLLs used Telerik.Windows.Controls, Telerik.Windows.Data. Telerik.Windows.Controls.Charting

the error does not occur with you version 2009.1.526.1020 of the DLLs
while it does occur with versions 2009.2.701.1020 and 2009.3.916.1030
0
andrea bellagamba
Top achievements
Rank 1
answered on 12 Oct 2009, 07:55 AM
I have submited  support ticket 249654 (as a different account), so please just answer that.
The ticket as a sample project attached reproducing the error

Thanks
0
Ves
Telerik team
answered on 13 Oct 2009, 08:24 AM
Hi Andrea,

Thanks for the details. It is confirmed -- the issue exists and our developers will look into it. The workaround for the moment is to hide the pointmarks.

Best regards,
Ves
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Chart
Asked by
andrea bellagamba
Top achievements
Rank 1
Answers by
andrea bellagamba
Top achievements
Rank 1
Velin
Telerik team
andrea bellagamba
Top achievements
Rank 1
Ves
Telerik team
Share this question
or