Page 1 of 1

NullValue not working

Posted: Tue Aug 23, 2005 9:39 am
by 9235963
I have a a chart with 6 series. I am using 2 of the line series.
1 line represents 2004 Jan-Dec.
1 Line represents 2005 Jan-Dec.
I used addNull('Sept 05') to the second series.
I used addNull('Oct 05') to the second series.
I used addNull('Nov 05') to the second series.
I used addNull('Dec 05') to the second series.
I am still getting a 0 value for the months of Sept-Dec.
I also tried Add(0,'Sept 05',clNone) and I am still getting a value.
What am I doing wrong please?

Thanks.

Posted: Tue Aug 23, 2005 10:59 am
by narcis
Hi AOS Dev,

Could you please be more specific on what are you trying to get? If you don't have any value from September to December you can just not add values for this range. If this is not enough for you could you please send us an example we can run "as-is" to reproduce the problem here? You can post your files at [url]news://www.steema.net/steema.public.attachments[/url] newsgroup.

addNull

Posted: Thu Aug 25, 2005 7:13 am
by 9235963
I am trying to draw a line chart.

Jan through Dec
I have values for Jan - Aug, I would like a Null value for Sep, Oct
and I have values for Nov and Dec.

I have used AddNull. What I get is a line from Jan - Aug.
Then August line goes to 0 for Sep and Oct then goes back to the values for Nov and Dec.

I would like the Sep and Oct to have no line.

Thank you for your time.

Posted: Thu Aug 25, 2005 7:56 am
by narcis
Hi AOS Dev,

It works fine here using AddNull or AddNullXY methods as shown in the snippet below. Could you please send us an example we can run "as-is" to reproduce the problem here?

Code: Select all

procedure TForm1.FormCreate(Sender: TObject);
var
  i: Integer;
  d: double;
begin
  randomize;

  for i:=0 to 12 do
  begin
    d:=random(100);
    if ((Trunc(d) mod 2) = 0) then Series1.AddXY(i,d)
    else Series1.AddNullXY(i,d);
  end;
end;
Thanks in advance.

Posted: Fri Aug 26, 2005 5:51 pm
by 9235963
I send a snippet to the newsgroup.

I think it has to do with the Teehchart component.
The code I am using is so simple
Add(100,'jan')
add(300,'Feb')
addnull('Mar')
add(300,'apr')

and it doesn't work. So it must be something I am doing with the teechart component.

Posted: Mon Aug 29, 2005 4:47 am
by 9235963
Thanks. I figured it out.
FastLine does not support AddNull nor AddNullXY
I had to change the series to a plain line for it to work.