RadChart max number of points

6 posts, 0 answers
  1. andrea bellagamba
    andrea  bellagamba avatar
    43 posts
    Member since:
    Jul 2009

    Posted 06 Oct 2009 Link to this post


    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

  2. andrea bellagamba
    andrea  bellagamba avatar
    43 posts
    Member since:
    Jul 2009

    Posted 07 Oct 2009 Link to this post

    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
  3. DevCraft banner
  4. Velin
    Admin
    Velin avatar
    391 posts

    Posted 09 Oct 2009 Link to this post

    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.
  5. andrea bellagamba
    andrea  bellagamba avatar
    43 posts
    Member since:
    Jul 2009

    Posted 09 Oct 2009 Link to this post

    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
  6. andrea bellagamba
    andrea bellagamba avatar
    1 posts
    Member since:
    Jul 2009

    Posted 12 Oct 2009 Link to this post

    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
  7. Ves
    Admin
    Ves avatar
    2879 posts

    Posted 13 Oct 2009 Link to this post

    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.
Back to Top
DevCraft banner