TeeChart in Report Builder

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Trza
Newbie
Newbie
Posts: 2
Joined: Thu Apr 22, 2004 4:00 am
Location: L.A.
Contact:

TeeChart in Report Builder

Post by Trza » Thu Apr 29, 2004 6:48 pm

This may be something easy, but I've been trying to create some charts in Report Builder v 7.03 and I have run into a few problems. First, I would like to be able to change the colors on my pie charts, but there doesn't seem to be an option or property that will allow me to do this and still have each slice a different color. I would also like to fix the size of my pie charts and the size of the legend. A last desire would be to change how the legend shows up, since it shows the titles of the different groups and the values, which I don't need. Can anyone help me with any of these problems?

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

Post by Pep » Mon May 03, 2004 8:53 am

Hi,

to change the color of the Pie Series you can do something like the following :
Series1.ColorEachPoint := false;
Series1.Color := clblue;

or to change the color of one slice you can do :
Series1.ValueColor[0] := clgreen;

To change the Pie size you can use :
Series1.CustomXRadius := 200;
Series1.CustomYRadius := 200;

One way to change the legend size could be changing the size of the font :
Chart1.Legend.Font.Size := 7;

You can change the legend style using :
Chart1.Legend.LegendStyle := lsValues;
Or, you can customize the Legend Text using the OnGetLegendText event.

Trza
Newbie
Newbie
Posts: 2
Joined: Thu Apr 22, 2004 4:00 am
Location: L.A.
Contact:

Post by Trza » Mon May 03, 2004 4:33 pm

Hi,

Thanks for the tips, but none of them seem to apply to charts in a report using Report Builder. I do not see where I can change any of these properties under Edit Chart and I get errors when I try to use Series1 and similar properties in the OnPrint events. Thanks For your help

Post Reply