Page 1 of 1

Transparent Pie Charts

Posted: Fri Dec 14, 2007 4:15 pm
by 10546565
In a chart, I want to be able to give a user the option of showing a series either in red, or transparently--here is a comparison of the two:

Image

vs.

Image

Except for the legend showing that it is white, it works fine.

But they have the option of showing any stacked bar in a pie chart--but how show a transparent pie slice?

Posted: Mon Dec 17, 2007 9:52 am
by narcis
Hi TestAlways,

You can either set a slice's color to clNone when populating a series or changing this color lattter as you can see in the code snippet below.

Code: Select all

procedure TForm1.Button1Click(Sender: TObject);
begin
  Series1.ValueColor[0]:=clNone;
end;

procedure TForm1.FormCreate(Sender: TObject);
begin
  Series1.AddPie(5, '', clRed);
  Series1.AddPie(6, '', clBlue);
  Series1.AddPie(7, '', clNone);
  Series1.AddPie(8, '', clGreen);
end;