Page 1 of 1

Changing Series Color on DBChart (Pie)

Posted: Sun Aug 01, 2004 9:44 pm
by 8437474
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.

Posted: Mon Aug 02, 2004 7:46 am
by Marjan
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:

Code: Select all

pie1.ValueColor[2] := clWhite; // 3rd slice color = white

Posted: Tue Aug 03, 2004 2:19 pm
by 8437474
What do you mean "You want to change the color of individual slices *after* you've connected it to the color field in database ?"

Posted: Wed Aug 04, 2004 9:02 am
by Pep
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.