change color of line chart

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Neelam
Advanced
Posts: 193
Joined: Fri Jun 08, 2007 12:00 am

change color of line chart

Post by Neelam » Sun Nov 02, 2008 5:56 pm

Hi
I have a line chart.

Dim tchlinVPECurve As New Steema.TeeChart.Styles.Line


How to set/change its color?The below does not work->

tchlinVPECurve.Brush.Color = Color.Gray

Thanks in advance.

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

Post by Narcís » Mon Nov 03, 2008 10:58 am

Hi shikha,

Try using this:

Code: Select all

			tchlinVPECurve.Color = Color.Gray
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

Neelam
Advanced
Posts: 193
Joined: Fri Jun 08, 2007 12:00 am

Post by Neelam » Mon Nov 03, 2008 3:21 pm

Thanks! this works but i am wondering is there any way to know the present color of series. I tried using msgbox(seriesname.color) but it gives error.

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

Post by Narcís » Mon Nov 03, 2008 3:55 pm

Hi shikha,

Yes, you can use msgbox(tchlinVPECurve.Color).
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

Neelam
Advanced
Posts: 193
Joined: Fri Jun 08, 2007 12:00 am

Post by Neelam » Tue Nov 04, 2008 5:04 am

Thanks msgbox(<seriesname>.color.tostring()) works.

Post Reply