Line Series question

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
UserLS
Advanced
Posts: 247
Joined: Wed May 23, 2007 12:00 am

Line Series question

Post by UserLS » Thu Jan 08, 2009 7:52 pm

Just a question: what is the difference between ColorEach and ColorEachLine properties?

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

Post by Narcís » Fri Jan 09, 2009 8:54 am

Hi UserLS,

According to TeeChart help files:

The Series ColorEach property is a boolean property that controls which color will be drawn on the Series points. If false, all points will be drawn using the Series Series.Color color property. If true, each Series point will be "colored" with its corresponding point color. The point colors are stored in the Series.PointColor array property. If a point has an Color.Empty color value, then a TeeChart determined, available color value will be used to draw it.

ColorEachLine enables/disables the coloring of each connecting line of a series.

So, for example, using the code snippet below you'll get a line series with visible pointers of a different color each but default series color connecting lines.

Code: Select all

		public Form1()
		{
			InitializeComponent();
			InitializeChart();
		}

		private void InitializeChart()
		{
			Steema.TeeChart.Styles.Line line1 = new Steema.TeeChart.Styles.Line(tChart1.Chart);
						
			line1.Pointer.Visible = true;			
			line1.ColorEach = true;
			line1.ColorEachLine = false;
			line1.FillSampleValues();
		}
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