Index

From: Narcís Calvet  Steema Software
Subject: Re: Marks and title into a piechart
Date: Thu, 16 Apr 2009 11:05:32 +0200
Newsgroup: public.teechart5.delphi  

Hello,

Try doing this:

procedure TForm1.FormCreate(Sender: TObject);
var rect, dummyRect: TRect;
i: Integer;
mp: TSeriesMarkPosition;
begin
Series1.FillSampleValues();
Chart1.Draw;

for i:=0 to Series1.Marks.Positions.Count-1 do
begin
mp:=Series1.Marks.Positions.Position[i];
rect:=mp.Bounds;

while IntersectRect(dummyRect, rect, Chart1.Title.ShapeBounds) do
begin
mp.Custom:=true;
mp.LeftTop.X:=mp.LeftTop.X+2;
mp.LeftTop.Y:=mp.LeftTop.Y+2;
mp.ArrowTo.X:=mp.LeftTop.X+2;
mp.ArrowTo.Y:=mp.LeftTop.Y+2;
rect:=mp.Bounds;
end;

Chart1.Refresh;
end;
end;



--
Best Regards,

Narcís Calvet
Steema Support Central
http://support.steema.com

"Important note: If you are a TeeChart registered customer, please post your
support questions at Steema's Support monitored Forums for customers:
http://support.steema.com for a prompter reply."


"Pletinckx" wrote in message
news:1k1nXbOvJHA.5920@TEEPC.Steema.local...
> Hi,
>
> Sorry but this is not understandable.
>
> I work with Delphi 7.
> I want only that the marks are not into the title.
>
> Regards,
>
> Georges
>
> "Narcís Calvet" a écrit dans le message de news:
> 0wLyL6dsJHA.4296@TEEPC.Steema.local...
>> Hello,
>>
>> "Pletinckx" wrote in message
>> news:yzw5T4RsJHA.5920@TEEPC.Steema.local...
>>>
>>> I have created a piechart with a title. Unfortunately a mark comes over
>>> the title. It is not beautifull!
>>> Can you help me?
>>
>> You could try setting custom marks positions as suggested here:
>>
>> http://www.teechart.net/support/viewtopic.php?t=560
>>
>> Notice that at the end of the thread you'll find a TeeChart VCL example
>> with C++ Builder.
>>
>>
>> --
>> Best Regards,
>>
>> Narcís Calvet
>> Steema Support Central
>> http://support.steema.com
>>
>> "Important note: If you are a TeeChart registered customer, please post
>> your support questions at Steema's Support monitored Forums for
>> customers:
>> http://support.steema.comcom for a prompter reply."
>>
>>
>
>