BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

TChart, picking up the pen

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi VCL Components Using
View previous topic :: View next topic  
Author Message
m610
Guest





PostPosted: Tue May 15, 2007 10:50 pm    Post subject: TChart, picking up the pen Reply with quote



Is there a way in TChart to "pick up the pen" momentarily while
plotting a line? Basically, I'd like to include gaps in the line I'm
plotting.

Specifically, I'm using line and fastline series to plot my data and I
want to draw the line only while the x-value is increasing, not draw
it when the x-value is decreasing, and then resume drawing when the x-
value is increasing again.

Splitting this up onto multiple series seems impractical.

Thanks.
Back to top
m610
Guest





PostPosted: Wed May 16, 2007 12:00 am    Post subject: Re: TChart, picking up the pen Reply with quote



I found the AddNullXY function but it doesn't seem to work. Is it
available in TChart 4 (Delphi 6)?

My (simplified) code is:
x0:=X[,j];
for i:=j to k do
begin
if X[i]>=x0 then
begin {Plot the lines}
Series1.AddXY(X[i],Y[i]);
Series2.AddXY(X[i],Y[i]);
end
else
begin {Plot a gap in the lines}
Series1.AddNullXY(X[i],Y[i]);
Series2.AddNullXY(X[i],Y[i]);
end;
x0:=x;
end;

On May 15, 10:50 am, m610 <mlme...@sbcglobal.net> wrote:
Quote:
Is there a way in TChart to "pick up the pen" momentarily while
plotting a line? Basically, I'd like to include gaps in the line I'm
plotting.

Specifically, I'm using line and fastline series to plot my data and I
want to draw the line only while the x-value is increasing, not draw
it when the x-value is decreasing, and then resume drawing when the x-
value is increasing again.

Splitting this up onto multiple series seems impractical.

Thanks.
Back to top
m610
Guest





PostPosted: Wed May 16, 2007 12:05 am    Post subject: Re: TChart, picking up the pen Reply with quote



The search continues, and it looks like others found that AddNullXY
didn't work. It was confirmed that this was a bug, back in 1999.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi VCL Components Using All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.