Page 1 of 1

Nulls on Tlineseries

Posted: Mon Oct 22, 2007 8:16 pm
by 10546846
Tchart 8, Delphi 6,

Am using series.addnullxy(x,y) to add null points to a series. I want the series to draw points at valid non-null x,y, with lines connecting the non-null points. But where there is a null I want a gap in the lines connecting the non-null points. However, I'm getting a line between the point before the null to the point afterhte null.

Any ideas what to set please?

cheers
Sean

Posted: Tue Oct 23, 2007 8:00 am
by narcis
Hi Sean,

I'm not able to reproduce the problem here. It works fine for me using the code below. This code doesn't paint a line from 3 to 5. Could you please test if the code work fine at your end and modify it so that we can reproduce the problem here?

Code: Select all

  With Series1 do
  begin
    AddXY(1, random);
    AddXY(2, random);
    AddXY(3, random);
    AddNullXY(4, random);
    AddXY(5, random);
    AddXY(6, random);
    AddXY(7, random);
  end;
Thanks in advance!

Posted: Tue Oct 23, 2007 11:08 am
by 10546846
thanks Narcis,

that woreks, so I must be screwing up somewhere else, will go look.
cheers
Sean