Chart series' marks do not disappear

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Sebastian
Newbie
Newbie
Posts: 9
Joined: Tue May 18, 2010 12:00 am

Chart series' marks do not disappear

Post by Sebastian » Mon May 24, 2010 12:06 pm

Hi,

We found a possible defect in TeeChart library.

Chart series marks which are beyond chart area do not disappear (while chart point markers are hidden).

This happens after chart is scrolled/zoomed, so that some of points get out of chart area. Point markers for them are hidden, while series marks are still visible.

Issue was confirmed on demo application provided with TeeChart.

See attached screenshots.
Attachments
marks2.jpg
marks2.jpg (46.94 KiB) Viewed 6090 times
marks.jpg
marks.jpg (128.21 KiB) Viewed 6083 times

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

Re: Chart series' marks do not disappear

Post by Yeray » Tue May 25, 2010 8:17 am

Hi Sebastian,

You can use Marks.Clip as suggested here or you can use OnGetMarkText:

Code: Select all

procedure TForm1.Series1GetMarkText(Sender: TChartSeries; ValueIndex: Integer; var MarkText: String);
begin
  if not PointInRect(Chart1.ChartRect, Sender.CalcXPos(ValueIndex), Sender.CalcYPos(ValueIndex)) then
    MarkText:='';
end;
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

Sebastian
Newbie
Newbie
Posts: 9
Joined: Tue May 18, 2010 12:00 am

Re: Chart series' marks do not disappear

Post by Sebastian » Tue May 25, 2010 10:01 am

OK. Thanks.
Works fine.

Post Reply