How to make some arrows in an arrow series visible?
How to make some arrows in an arrow series visible?
I have an arrow series that I need to change some individual arrows visible property from true to false and vise versa. How would I do this? Im not wanting to just 'hide' an arrow by changing its color to match the background.
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi pssdelphi,
Null points for arrow series are not supported. An option would be using two series to mimic this behavoir, one series for "regular" points and other series for null points. Then use Series.Active property to show/hide "null" arrows series. i.e. : Series2.Active := true;. This is a little bit tricky if you want to swap one point from visible to invisible.
The only other way would be to derive new series type from arrow series and override it's DrawValue method. In it, you should call the inherited DrawValue only if point ValueColor[ValueIndex] is not null:
I'll also add this to our wish-list to be implemented for next releases.
Null points for arrow series are not supported. An option would be using two series to mimic this behavoir, one series for "regular" points and other series for null points. Then use Series.Active property to show/hide "null" arrows series. i.e. : Series2.Active := true;. This is a little bit tricky if you want to swap one point from visible to invisible.
The only other way would be to derive new series type from arrow series and override it's DrawValue method. In it, you should call the inherited DrawValue only if point ValueColor[ValueIndex] is not null:
Code: Select all
TNullArrowSeries = class (TArrowSeries)
public
procedure DrawValue(ValueIndex: Integer); override;
end;
{ TNullArrowSeries }
procedure TNullArrowSeries.DrawValue(ValueIndex: Integer);
begin
if ValueColor[ValueIndex]<>clNone then inherited;
end;
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |