TeeChart in Report Builder
TeeChart in Report Builder
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?
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.
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.
Pep Jorge
http://support.steema.com
http://support.steema.com