 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
m610 Guest
|
Posted: Tue May 15, 2007 10:50 pm Post subject: TChart, picking up the pen |
|
|
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
|
Posted: Wed May 16, 2007 12:00 am Post subject: Re: TChart, picking up the pen |
|
|
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
|
Posted: Wed May 16, 2007 12:05 am Post subject: Re: TChart, picking up the pen |
|
|
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 |
|
 |
|
|
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
|
|