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

Some questions about chart

6 Answers 89 Views
Chart
This is a migrated thread and some comments may be shown as answers.
zai yunfeng
Top achievements
Rank 2
zai yunfeng asked on 24 Sep 2009, 08:47 AM
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!

6 Answers, 1 is accepted

Sort by
0
zai yunfeng
Top achievements
Rank 2
answered on 27 Sep 2009, 12:55 AM
Is there anybody who can help me?
Thank you!
0
zai yunfeng
Top achievements
Rank 2
answered on 29 Sep 2009, 03:53 AM
???
0
Ves
Telerik team
answered on 29 Sep 2009, 08:51 AM
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.
0
SteveL
Top achievements
Rank 2
answered on 29 Sep 2009, 08:35 PM
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.
0
zai yunfeng
Top achievements
Rank 2
answered on 30 Sep 2009, 12:41 AM

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

0
zai yunfeng
Top achievements
Rank 2
answered on 30 Sep 2009, 12:46 AM
Ok, thanks a lot!
Tags
Chart
Asked by
zai yunfeng
Top achievements
Rank 2
Answers by
zai yunfeng
Top achievements
Rank 2
Ves
Telerik team
SteveL
Top achievements
Rank 2
Share this question
or