 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Christian Volz Guest
|
Posted: Tue Feb 07, 2006 10:01 am Post subject: TChart - Pie graph does not draw circled |
|
|
Hello,
perhaps someone can help me with this TChart component (shipped with
Delphi2005).
All i want to do is drawing a pie chart which is a true circle (and no
ellipse!). The TChart component has two properties i can adjust
- circled := true
- CustomXRadius :=
CustomYRadius :=
But even when i set all these properties i do not get the desired
result. The pie is drawn "like" a circle, but it is no EXACT circle
(the ratio x-radius / y-radius is about 1.1 but must be in my program
exactly 1.0).
Is this just some sort of bug or am I missing something important ?
Best wishes,
Chrisitan |
|
| Back to top |
|
 |
Narcís Calvet Guest
|
Posted: Wed Feb 08, 2006 4:02 pm Post subject: Re: TChart - Pie graph does not draw circled |
|
|
Hi Christian,
Do you have your chart set to 3D view? The ratio is 1.0 here using the code
below:
procedure TForm1.FormCreate(Sender: TObject);
begin
Chart1.View3D:=false;
Series1.FillSampleValues(5);
Series1.Circled:=true;
end;
--
Best Regards,
Narcís Calvet
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."
"Christian Volz" <mail@christian-volz.de> wrote in message
news:43e86457$1 (AT) newsgroups (DOT) borland.com...
| Quote: |
Hello,
perhaps someone can help me with this TChart component (shipped with
Delphi2005).
All i want to do is drawing a pie chart which is a true circle (and no
ellipse!). The TChart component has two properties i can adjust
- circled := true
- CustomXRadius :=
CustomYRadius :=
But even when i set all these properties i do not get the desired
result. The pie is drawn "like" a circle, but it is no EXACT circle
(the ratio x-radius / y-radius is about 1.1 but must be in my program
exactly 1.0).
Is this just some sort of bug or am I missing something important ?
Best wishes,
Chrisitan |
|
|
| Back to top |
|
 |
Christian Volz Guest
|
Posted: Fri Feb 10, 2006 9:03 am Post subject: Re: TChart - Pie graph does not draw circled |
|
|
Hello Narcis,
thanks a lot for your response. No, i do not have set the 3D view. I think you determined the ratio 1.0 using the TChart properties xradius, yradius ? I get the same results with these properties, but actually the pie chart seems not to be a true circle.
When i use the following code
procedure TForm1.FormCreate(Sender: TObject);
var
Series1: TPieSeries;
begin
Chart1.View3D:=false;
Series1 := TPieSeries.Create(self);
Series1.FillSampleValues(5);
Series1.Circled:=true;
Chart1.AddSeries(Series1);
Chart1.Print;
end;
I get a very squeezed pie chart as print.
Adding the lines
Series1.CustomXRadius := 100;
Series1.CustomYRadius := 100;
I get a better result, but still a ellipse.
(In this example the pie chart on the screen seems to be a true circle, but i think i had also examples where this was not the case).
Best regards,
Christian
"Narcís Calvet" <support (AT) steema (DOT) com> wrote:
| Quote: | Hi Christian,
Do you have your chart set to 3D view? The ratio is 1.0 here using the code
below:
procedure TForm1.FormCreate(Sender: TObject);
begin
Chart1.View3D:=false;
Series1.FillSampleValues(5);
Series1.Circled:=true;
end;
|
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|