Page 1 of 1

Bug when deleting points or using Ordering

Posted: Wed Jan 28, 2004 4:05 pm
by 8121575
Hi

In order to draw invisible portions of a line in a LineSeries I add the invisible points with Color.Transparent. It looks OK.
But when deleting some points in the beginning of the series the Transparent points will not follow the new truncated arraylist. The transparent points will still have the same index after the deleting.

About the same problem occurs when setting the XValues.Order to ascending. When adding unordered values the sorting doesn't take care of the transparent indexes.

Is this fixed in the new release?

//Lars

Posted: Fri Jan 30, 2004 10:19 am
by Marc
Hello Lars,

I've just tried the following simple coded test and I can't reproduce the problems reported, the points seem to displace correctly after point delete and the line connections after sort are the same whether colour is set or not for the test datapoint. Please could you modify this code or send us a different code sample that reproduces the problem so that we can take another look.

Eg. Add Chart to Form and LineSeries to Chart then add this code to Form load and a button click event:

Code: Select all

private void Form1_Load(object sender, System.EventArgs e)
{
  tChart1.Aspect.View3D=false;

  tChart1[0].Add(6,Color.Blue);
  tChart1[0].Add(4,Color.Blue);
  tChart1[0].Add(5,Color.Blue);
  tChart1[0].Add(3,Color.Blue);
  tChart1[0].Add(7,Color.Transparent); //test no colour
  //tChart1[0].Add(7,Color.Blue); //test with colour
  tChart1[0].Add(9,Color.Blue);
  tChart1[0].Add(8,Color.Blue);
}

private void button2_Click(object sender, System.EventArgs e)
{
  tChart1[0].Delete(0,2);
}

private void button3_Click(object sender, System.EventArgs e)
{
  tChart1[0].YValues.Order=Steema.TeeChart.Styles.ValueListOrder.Ascending;
  tChart1[0].YValues.Sort();
  tChart1.Refresh();
}
Thanks!

Regards,
Marc Meumann
Steema Support