NullValue not working

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
AOS Dev
Newbie
Newbie
Posts: 8
Joined: Fri Feb 11, 2005 5:00 am

NullValue not working

Post by AOS Dev » Tue Aug 23, 2005 9:39 am

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.

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Tue Aug 23, 2005 10:59 am

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.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

AOS Dev
Newbie
Newbie
Posts: 8
Joined: Fri Feb 11, 2005 5:00 am

addNull

Post by AOS Dev » Thu Aug 25, 2005 7:13 am

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.

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Thu Aug 25, 2005 7:56 am

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.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

AOS Dev
Newbie
Newbie
Posts: 8
Joined: Fri Feb 11, 2005 5:00 am

Post by AOS Dev » Fri Aug 26, 2005 5:51 pm

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.

AOS Dev
Newbie
Newbie
Posts: 8
Joined: Fri Feb 11, 2005 5:00 am

Post by AOS Dev » Mon Aug 29, 2005 4:47 am

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.

Post Reply