Line Series - Custom Colour

TeeChart for ActiveX, COM and ASP
Post Reply
paligap
Newbie
Newbie
Posts: 19
Joined: Tue Feb 24, 2004 5:00 am
Location: Australia

Line Series - Custom Colour

Post by paligap » Thu Jan 25, 2007 12:22 pm

Hello,

I can easily assign a colour (through code) to an AREA series, for example I can assign the border colour of a line series with the command;

Chart.Series(1).asArea.LinePen.Color = COLOUR1

Where COLOUR1 is a OLE_COLOR

My question is how can I assign (through code) the colour of a line series. I have tried unsuccessfully and any help is appreciated.

Kind Regards
Anthony

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

Post by Edu » Fri Jan 26, 2007 8:39 am

Hi paligap

You can assign the colour as below code:

TChart1.Series(0).asLine.LinePen.Color = vbRed 'border
TChart1.Series(0).Color = vbRed 'line
Best Regards,
Edu

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

Post Reply