Page 1 of 1

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

Posted: Tue Jan 04, 2005 6:37 pm
by 9336617
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

Posted: Wed Jan 05, 2005 6:52 am
by Pep
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;