Round pie charts

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Normand Peladeau
Newbie
Newbie
Posts: 30
Joined: Tue Dec 28, 2004 5:00 am
Contact:

Round pie charts

Post by Normand Peladeau » Wed Apr 05, 2006 11:10 am

Is there a way to force a 2D pie chart to be round rather than oval?

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

Post by Narcís » Wed Apr 05, 2006 11:14 am

Hi Normand,

Yes, use:

Code: Select all

  Series1.Circled:=true;
This property can also be set at design-time using the chart editor, series tab, selecting a pie series, circled tab.
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

Normand Peladeau
Newbie
Newbie
Posts: 30
Joined: Tue Dec 28, 2004 5:00 am
Contact:

Post by Normand Peladeau » Wed Apr 05, 2006 1:45 pm

Oh! Thanks! But while it works fine when your screen is in landscape more (like most people do), this option does not work when working in portrait mode. It seems like the algorithm create a ratio without taking into account the fact that the height may be bigger than the width.

Any way to fix this so that this option works for both screen orientation?

Pep
Site Admin
Site Admin
Posts: 3295
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Tue Apr 11, 2006 12:04 pm

Hi ,

it seems it works fine here having a Chart object which its height is bigger than the width. (using the latest TeeChart Pro v7.06).

How can I see the problem you refer ?

Normand Peladeau
Newbie
Newbie
Posts: 30
Joined: Tue Dec 28, 2004 5:00 am
Contact:

Post by Normand Peladeau » Thu Apr 13, 2006 12:07 am

Quite easy, create a new application, a TChart component, add a Pie series, go to the editor, put a check mark beside Circled and remove the one in the 3 Dimentions checkbox.

If you leave both items checked, you will get a round pie in 3D, but if you display the pie in 2D, it will not be round but oval (on a screen in portrait orientation).

Let me know if you want me to create a project for you.

Pep
Site Admin
Site Admin
Posts: 3295
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Tue Apr 18, 2006 10:10 am

Hi,

yes please, would you be so kind to send me an small app with which I can see the problem here ( directly to pep@steema.com) ?
I cannot see the problem here using the latest TeeChart Pro version.

Post Reply