adding nan's to the begining or end of a series doesn't work

TeeChart for ActiveX, COM and ASP
Post Reply
jer_m
Newbie
Newbie
Posts: 20
Joined: Mon Jan 28, 2008 12:00 am

adding nan's to the begining or end of a series doesn't work

Post by jer_m » Tue Sep 09, 2008 5:50 pm

I noticed when a Nan is added to either the begining or end of a series it makes the chart graph a flat line, inserting Nan's in the middle works as expected, there is a break in the graph drawn and it doesn't make the chart graph a flat line

the following code demonstrating this is using c#

//breaks the chart
axTChart1.Series(0).AddNullXY(0, null, "");

Random rnd = new Random();
for (int i = 1; i < 25; i++)
{
axTChart1.Series(0).AddNullXY((double)i, (double)rnd.Next(100), "");
}

//works as expected
axTChart1.Series(0).AddNullXY(25, null, "");


for (int i = 26; i < 50; i++)
{
axTChart1.Series(0).AddNullXY((double)i, (double)rnd.Next(100), "");
}

//breaks the chart
axTChart1.Series(0).AddNullXY(51, null, "");

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Wed Sep 10, 2008 8:00 am

Hi jer_m,

This seems the same problem as described here. We will try to fix this for the next maintenance release.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply