How Color Each Line for a series in code

TeeChart for ActiveX, COM and ASP
Post Reply
Otokon
Newbie
Newbie
Posts: 25
Joined: Thu Sep 18, 2008 12:00 am

How Color Each Line for a series in code

Post by Otokon » Wed Dec 09, 2009 12:59 pm

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

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Re: How Color Each Line for a series in code

Post by Narcís » Wed Dec 09, 2009 1:01 pm

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;
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Otokon
Newbie
Newbie
Posts: 25
Joined: Thu Sep 18, 2008 12:00 am

Re: How Color Each Line for a series in code

Post by Otokon » Wed Dec 09, 2009 1:09 pm

aha!
awesome, thanks

Post Reply