Page 1 of 1

Problem with the VisibleCount property

Posted: Mon Jun 18, 2007 3:10 pm
by 9339361
I have been implementing code to export the data points that are currently being viewed (are visible).

I am using the properties Series1.VisibleCount, and Series1.FirstdisplayedIndex to determine which points get exported.

It works fine when exporting, until I start zooming-in. When I zoom-in Series1.VisibleCount constantly appears to think that there is one more additional point visible than is actually.

Posted: Mon Jun 18, 2007 3:36 pm
by narcis
Hi Sigurdur,

Yes, this is a known problem which has already been fixed in TeeChart Pro v8 VCL which has been released today.

In v7, the only workaround available is using VisibleCount-1.

Posted: Tue Jun 19, 2007 2:07 pm
by 9339361
Thanks for your quick response.

Now, I am wondering whether if it is possible to make a simple check if the TChart Version is less than 8 (in Delphi code), to make sure that my workaround doesn't come up as a bug when I make the upgrade to Tchart 8?

Posted: Wed Jun 27, 2007 10:36 am
by Pep
Hi,

yes, you can check the TeeChartVersion constant :

Code: Select all

uses TeeConst;

procedure TForm1.BitBtn1Click(Sender: TObject);
begin
showmessage(TeeChartVersion);
end;