Changing Series Color on DBChart (Pie)
Changing Series Color on DBChart (Pie)
I am using a Pie DBChart. I have selected the two fields in my defined datasource. I want to change the color of the slices, but cannot figure out how to do so. Appreciated in advance.
Hi.
You want to change the color of individual slices *after* you've connected it to the color field in database ? This can be done by accessing individual point color. The following code should do the trick:
You want to change the color of individual slices *after* you've connected it to the color field in database ? This can be done by accessing individual point color. The following code should do the trick:
Code: Select all
pie1.ValueColor[2] := clWhite; // 3rd slice color = white
Marjan Slatinek,
http://www.steema.com
http://www.steema.com
Hi Bone,
he means that if you want to change the color of individual slices after you've set or asigned a DataSource you must use the code he show you.
he means that if you want to change the color of individual slices after you've set or asigned a DataSource you must use the code he show you.
Pep Jorge
http://support.steema.com
http://support.steema.com