Page 1 of 1

Line Series - Custom Colour

Posted: Thu Jan 25, 2007 12:22 pm
by 9080944
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

Posted: Fri Jan 26, 2007 8:39 am
by 9348258
Hi paligap

You can assign the colour as below code:

TChart1.Series(0).asLine.LinePen.Color = vbRed 'border
TChart1.Series(0).Color = vbRed 'line