Page 1 of 1

TeeChart in Report Builder

Posted: Thu Apr 29, 2004 6:48 pm
by 9232200
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?

Posted: Mon May 03, 2004 8:53 am
by Pep
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.

Posted: Mon May 03, 2004 4:33 pm
by 9232200
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