I need a fast dynamic array (1000000 values). How is it possible to add Null values directly in a custom array ?
Regards

Code: Select all
private void Form1_Load(object sender, System.EventArgs e)
{
tChart1.Series.Add(new Steema.TeeChart.Styles.FastLine());
Steema.TeeChart.Styles.FastLine fastLine1 = tChart1[0] as Steema.TeeChart.Styles.FastLine;
fastLine1.IgnoreNulls = false;
double[] array = new double[] {1, 2, 3, double.NaN, 5, 6};
int count=0;
foreach(double d in array)
{
if(!double.IsNaN(d))
fastLine1.Add(count, d, Color.Red);
else
fastLine1.Add(count, 0, "Null",Color.Transparent);
count++;
}
}
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
![]() ![]() ![]() ![]() ![]() ![]() |
Instructions - How to post in this forum |