I tried to use the marks-feature to label just one or a few points of the complete series (TPointSeries or TLineSeries). The other points should be left unlabeled. However, my experiments with the series.marks object did not seem to be very successful. I tried the following code (using TeeChart 2010):
Code: Select all
Series:=TLineSeries(Chart1.SeriesList[0]);
Series.Clear;
Series.Pen.Visible:=true;
Series.Pointer.Visible:=true;
for i := 0 to 10 do
begin
Series.AddXY(i,random(10),'');
if i=3 then
Series.ValueMarkText[i]:='Special Point'
else
Series.ValueMarkText[i]:='';
end;
series.Marks.Visible:=true;
Series.Marks.OnTop:=true;