Customize color in pie chart

TeeChart for ActiveX, COM and ASP
Post Reply
Dilish
Newbie
Newbie
Posts: 7
Joined: Wed Aug 03, 2005 4:00 am
Location: India
Contact:

Customize color in pie chart

Post by Dilish » Fri Jul 28, 2006 10:47 am

Hi,

I am using this property

Chart.Series(0).ColorEachPoint = True

But it is showing default colors. But i need to give some specific color. How do i do it? Pls anyone can help

stark
Newbie
Newbie
Posts: 10
Joined: Wed Jul 26, 2006 12:00 am
Location: Girona / Catalunya

Customize color in pie chart

Post by stark » Fri Jul 28, 2006 11:58 am

Hi Dilish,

this will do:

Code: Select all

TChart1.Series(0).Add 210, "Test1", vbRed
TChart1.Series(0).Add 10, "Test2", vbBlue
TChart1.Series(0).Add 120, "Test3", vbGreen
Alex

Post Reply