Page 1 of 1

Chart series' marks do not disappear

Posted: Mon May 24, 2010 12:06 pm
by 16556175
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.

Re: Chart series' marks do not disappear

Posted: Tue May 25, 2010 8:17 am
by yeray
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;

Re: Chart series' marks do not disappear

Posted: Tue May 25, 2010 10:01 am
by 16556175
OK. Thanks.
Works fine.