how to have different colors for the chart

TeeChart for ActiveX, COM and ASP
Post Reply
Aravind
Newbie
Newbie
Posts: 75
Joined: Fri Nov 15, 2002 12:00 am

how to have different colors for the chart

Post by Aravind » Mon Aug 14, 2006 4:07 pm

how to get different colors for a chart in which many series are available ?

for each series i need unique color

ahiml-it
Newbie
Newbie
Posts: 4
Joined: Tue Oct 21, 2003 4:00 am

Post by ahiml-it » Tue Aug 15, 2006 1:21 pm

With TChart1
.Series(0).ColorEachPoint = True
End With

Aravind
Newbie
Newbie
Posts: 75
Joined: Fri Nov 15, 2002 12:00 am

this will set each bar in the series a unique color

Post by Aravind » Tue Aug 15, 2006 1:49 pm

the code segment will set each bar in the series a unique color and not the entire series a unique color


i would like to set like this

series(0) =red
series(1)= white
series (2)= black
....

series(45)=rgb(255)

Pep
Site Admin
Site Admin
Posts: 3295
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Wed Aug 16, 2006 9:15 am

Hi Aravind,

in that case the only way to do this would be creating your custom array of colors and then assign them to the series manually using Series(x).Color = ColorArray...

Post Reply