Change the Colour of a Series (Line Chart) for part of Serie

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Luke
Newbie
Newbie
Posts: 68
Joined: Thu Oct 11, 2007 12:00 am

Change the Colour of a Series (Line Chart) for part of Serie

Post by Luke » Tue Jun 24, 2008 2:01 pm

Is there no way that the colour of the line can be changed for a certain part of Line? Using latest version for .Net. You can changed the markers, and even change the colour for each line. But I want the colour of the line between 2 dates to be a different colour to the rest.

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

Post by Narcís » Wed Jun 25, 2008 8:50 am

Hi Luke,

Yes, you can use ColorEachLine property, for example:

Code: Select all

			Steema.TeeChart.Styles.Line line1 = new Steema.TeeChart.Styles.Line(tChart1.Chart);

			line1.ColorEachLine = true;

			line1.Add(5);
			line1.Add(2);
			line1.Add(6);
			line1.Add(8, Color.Lime);
			line1.Add(2);
			line1.Add(4);
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

Post Reply