Page 1 of 1

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

Posted: Tue Sep 09, 2008 5:50 pm
by 15048079
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, "");

Posted: Wed Sep 10, 2008 8:00 am
by narcis
Hi jer_m,

This seems the same problem as described here. We will try to fix this for the next maintenance release.