Page 1 of 1

How Color Each Line for a series in code

Posted: Wed Dec 09, 2009 12:59 pm
by 15050347
good day,

I would just like to know how to se the Color Each Line option, that one can set in the chart editor, for a Series in code.
There is no option for exampl: Series(0).ColorEachLine
If I do not disable this option, all the lines in my chart are black.

Using C#.

thanks

Dawie

Re: How Color Each Line for a series in code

Posted: Wed Dec 09, 2009 1:01 pm
by narcis
Hi Dawie,

That's because you need to typecast your series to line series, for example:

Code: Select all

			axTChart1.Series(0).asLine.ColorEachLine = true;

Re: How Color Each Line for a series in code

Posted: Wed Dec 09, 2009 1:09 pm
by 15050347
aha!
awesome, thanks