Page 1 of 1

TeeChart series color

Posted: Wed Aug 01, 2007 5:54 am
by 9078654
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

Posted: Wed Aug 01, 2007 9:03 am
by 9348258
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

thanks

Posted: Thu Aug 02, 2007 3:53 am
by 9078654
:D Thanks Edu...