Page 1 of 1

My mark labels overlap

Posted: Wed Sep 28, 2005 2:57 pm
by 9238256
I want my lables to be easily seen and detect when they are overlapping. I thought TChart did this automatically but I guess not. If I could make the arrow lengths different for each mark, that would also help (assuming that the labels would reposition themselves at the end of the arrow shaft). However, I cannot seem to find any way to make each individual arrow a different length. It seems they must all be set to the same length. Is it possible, and how do I do it? (code snippet please)

Posted: Thu Sep 29, 2005 9:00 am
by narcis
Hi C.H. Luke,

Have you tried using AutoMarkPosition?

Code: Select all

Series1.AutoMarkPosition := True;


You can also try using something like this:

Code: Select all

procedure TForm1.Series1GetMarkText(Sender: TChartSeries;
  ValueIndex: Integer; var MarkText: String);
begin
  Series1.Marks.ArrowLength := ValueIndex * 5;
end;