TeeChart series color

TeeChart for ActiveX, COM and ASP
Post Reply
onyx
Newbie
Newbie
Posts: 6
Joined: Fri Nov 15, 2002 12:00 am
Location: Kuala Lumpur
Contact:

TeeChart series color

Post by onyx » Wed Aug 01, 2007 5:54 am

hi...

i'm new in TeeChart. I've go through TeeChart about 1 month. I start to create a chart in VB.

i want to ask about the series properties.

1. how i can set the series color. I used the default TeeChart color there is red, green and yellow. sometime i also used vbCyan, vbBlue...
I write as
Chart.Series(0).Color=vbCyan ---give me Cyan color
Chart.Series(1).Color=vbBlue --- give me blue color

how about the other colors...like purple, orange?

i tried to use the color code...but give me an error


2. for the line series --- Chart.addSeries(scLine)
how to make the line more thick?

please guide me...

thank you :D

Edu
Advanced
Posts: 206
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia

Post by Edu » Wed Aug 01, 2007 9:03 am

Hi Onyx

You can make the colors with RGB command as below code:

Code: Select all

TChart1.Series(0).Color = RGB(160, 32, 240) 'purple color
You can find the code easily, there are a lot webs with the RGB code.

You can make the line more thick changing the width of the line pen or height of the line, as below code:

Code: Select all

TChart1.Series(0).asLine.LinePen.Width = 5
TChart1.Series(0).asLine.LineHeight = 3
Best Regards,
Edu

Steema Support Central
http://support.steema.com/

onyx
Newbie
Newbie
Posts: 6
Joined: Fri Nov 15, 2002 12:00 am
Location: Kuala Lumpur
Contact:

thanks

Post by onyx » Thu Aug 02, 2007 3:53 am

:D Thanks Edu...

Post Reply