Series Color missing in Legend.

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

Series Color missing in Legend.

Post by Luke » Mon Jun 22, 2009 8:24 am

Series Color is missing when I add Multiple Lines to a chart. However when I set the FontSeriesColor to true that is correct.

Luke
Newbie
Newbie
Posts: 68
Joined: Thu Oct 11, 2007 12:00 am

Re: Series Color missing in Legend.

Post by Luke » Mon Jun 22, 2009 8:28 am

Interestingly when I changed from Line to FAstLine this resolved the issue. No idea why

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

Re: Series Color missing in Legend.

Post by Narcís » Mon Jun 22, 2009 2:35 pm

Hi Luke,

This is most likely because ColorEach property is set to true. Not painting the legend symbol when having different colors for each point in the series is designed behavior. Using code snippet below works fine, setting ColorEach to true reproduces what you reported.

Code: Select all

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

		private void InitializeChart()
		{
			for (int i = 0; i < 5; i++)
			{
				tChart1.Series.Add(new Steema.TeeChart.Styles.Line());
				tChart1[i].FillSampleValues();
				tChart1[i].ColorEach = false;
			}
		}
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