My mark labels overlap

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
C.H. Luke
Newbie
Newbie
Posts: 5
Joined: Tue Sep 06, 2005 4:00 am

My mark labels overlap

Post by C.H. Luke » Wed Sep 28, 2005 2:57 pm

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)

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Thu Sep 29, 2005 9:00 am

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;
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply