Page 1 of 1

Simple Pie

Posted: Fri Nov 23, 2007 10:37 am
by 10046885
I need to draw a very simple pie chart with
- different color fills,
- separated by lines in one color different to that of the pie pieces,
- no shadow,
- with no line around the pie.

I used
Series.ColorEachPoint:=true;
Series.Pen.Visible:=false;
Series.Shadow.Visible:=false;
Series.Dark3D:=false;
Series.PiePen.Visible:=false;
Series.Color:=Color;

The resulting pie shows still a line around that seems to be a "trace" of a shadow.

What can I do?

Thanks for all help!
Matthias

Posted: Fri Nov 23, 2007 11:07 am
by yeray
Hi Matthias,

I cannot see any shadow line using applying your code to a new pie series.
However, you could try without 3d view or setting the pie circled. Maybe it looks better for you.

Code: Select all

Chart1.View3D := false;
Series.Circled := true;
Also note that the separation line you mention is the same as the border. So, if you want a separation line in one color, it will be the same in the border.

Code: Select all

Series.PiePen.Visible:=true;
Series.PiePen.Color := clBtnShadow;
Series.PiePen.Width := 2;
And could you please tell us what TeeChart version are you using?

Thank you in advance.

Posted: Fri Nov 23, 2007 1:24 pm
by 10046885
Hi Yeray,

I found out that the AntialiasTool is the problem:
The strange visual effect appears after adding
AntialiasTool:=TAntiAliasTool.Create(Self);
AntialiasTool.AntiAlias:=true;
Chart1.Tools.Add(AntialiasTool);

I use version TeeChart Pro v. 8.01

Matthias.

Posted: Fri Nov 23, 2007 3:05 pm
by narcis
Hi matthias,

Yes, I see the problem now. It only happens with AntiAlias tool. This seems a bug to me and I've added it (TV52012605) to our defect list to be fixed for future releases.