Page 1 of 1

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

Posted: Tue Jun 24, 2008 2:01 pm
by 13047002
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.

Posted: Wed Jun 25, 2008 8:50 am
by narcis
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);