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
Mark on only one value of a series, is it possible?
Hi Milton,
yes, this can be done using similar code to the following :
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;
Pep Jorge
http://support.steema.com
http://support.steema.com