Mark on only one value of a series, is it possible?

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
mLapido
Newbie
Newbie
Posts: 24
Joined: Wed Mar 24, 2004 5:00 am
Location: Brasil
Contact:

Mark on only one value of a series, is it possible?

Post by mLapido » Tue Jan 04, 2005 6:37 pm

I'm trying to display a mark on only one of the values of a series (point series) and have failed in all my attempts... I'm assuming it's possible...

How do I do it?

best regards,
Milton Lapido

Pep
Site Admin
Site Admin
Posts: 3298
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Wed Jan 05, 2005 6:52 am

Hi Milton,

yes, this can be done using similar code to the following :

Code: Select all

procedure TForm1.FormCreate(Sender: TObject);
begin
Series1.FillSampleValues(10);
Series1.Marks.Visible := true;
end;

procedure TForm1.Series1GetMarkText(Sender: TChartSeries;
  ValueIndex: Integer; var MarkText: String);
begin
if ValueIndex = 5 then
  MarkText := 'My Custom Mark text'
else
  MarkText := '';
end;

Post Reply