adding nan's to the begining or end of a series doesn't work
Posted: 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, "");
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, "");