Count of Graph items in viewport?

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
VideoTrack
Newbie
Newbie
Posts: 17
Joined: Thu Jan 04, 2018 12:00 am

Count of Graph items in viewport?

Post by VideoTrack » Tue Nov 06, 2018 10:06 am

I have a graph with a scroll bar to scroll through the contents of a bar series. The 'visible' contents of the bar series are much less than the total bar series count. How can I determine programmatically how many bar series items in the graph are 'visible' in the viewport of the series?

In other words, how many of each bar series the user can visibly see in the displayed window?

Yeray
Site Admin
Site Admin
Posts: 9615
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Count of Graph items in viewport?

Post by Yeray » Wed Nov 07, 2018 10:40 am

Hello,

You can use the series VisibleCount function to get the number of points currently visible.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

VideoTrack
Newbie
Newbie
Posts: 17
Joined: Thu Jan 04, 2018 12:00 am

Re: Count of Graph items in viewport?

Post by VideoTrack » Tue Nov 13, 2018 1:32 pm

Excellent, many thanks!

Post Reply