Some questions about chart

7 posts, 0 answers
  1. zai yunfeng
    zai yunfeng avatar
    30 posts
    Member since:
    Sep 2009

    Posted 24 Sep 2009 Link to this post

    Hello,
    the questions is listed like below

    1 After doing the following example the chart crashed.
     for (int i = 0; i < 2; i++)
       {
              ChartArea.DataSeries.First().Add(new DataPoint(i, 8E-308));
       }

    2 When five hundred or more DataPoints are added to the chart the refresh rate of the chart is so slow that it always makes me think the chart crashes.

    Do you have any solutions?Thanks!
  2. zai yunfeng
    zai yunfeng avatar
    30 posts
    Member since:
    Sep 2009

    Posted 26 Sep 2009 Link to this post

    Is there anybody who can help me?
    Thank you!
  3. UI for WPF is Visual Studio 2017 Ready
  4. zai yunfeng
    zai yunfeng avatar
    30 posts
    Member since:
    Sep 2009

    Posted 28 Sep 2009 Link to this post

    ???
  5. Ves
    Admin
    Ves avatar
    2879 posts

    Posted 29 Sep 2009 Link to this post

    Hi zai,

    While I was not able to reproduce the crash with very small values (like 8E-308), the chart indeed did not display its Y axis correctly, so I have forwarded this issue to our developers. I have also updated your Telerik points.  As for the performance issue - even with a thousand items on my end the chart appears within a second. You may need to disable animations with so many items. Also, please make sure you use the latest version of the control.

    Greetings,
    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.
  6. SteveL
    SteveL avatar
    68 posts
    Member since:
    Apr 2009

    Posted 29 Sep 2009 Link to this post

    I have what may be the same problem. Due to a rounding error, a value which should have been zero came out as -0.00003 and when I assigned the ItemsSource, my application stopped responding. When I used Math.Round(value,2) on all of my data, the graph displayed OK. I will try to create a small demonstration of the problem.
  7. zai yunfeng
    zai yunfeng avatar
    30 posts
    Member since:
    Sep 2009

    Posted 29 Sep 2009 Link to this post

    I have ask the same question sometime ago.The following is the ask and answer.
    Hello,
    I have a question, if I don't set the property of axisY, the default value of AutoRange is 'true' .
    Like following example, First I add some plus value to the dataseries , and then I add some minus value to the dataseries.
    After that the chart crashes, it just can't show the points I add.
    Can you help me to solve the problem? Thank you!

     for (int i = 0; i < 6; i++)
       {

            ChartArea.DataSeries.First().Add(new DataPoint(i, 0.01 * i));
       }

       for (int i = 6; i < 10; i++)
       {

            ChartArea.DataSeries.First().Add(new DataPoint(i, -0.01 * i));
       }

    Hi,

    Indeed, this is a bug in RadChart. Our developers are already aware of it and the fix will appear in the next version of the control.

    Best Regards,
    Ves
    the Telerik team

  8. zai yunfeng
    zai yunfeng avatar
    30 posts
    Member since:
    Sep 2009

    Posted 29 Sep 2009 Link to this post

    Ok, thanks a lot!
Back to Top
UI for WPF is Visual Studio 2017 Ready