Page 1 of 1

Series Color missing in Legend.

Posted: Mon Jun 22, 2009 8:24 am
by 13047002
Series Color is missing when I add Multiple Lines to a chart. However when I set the FontSeriesColor to true that is correct.

Re: Series Color missing in Legend.

Posted: Mon Jun 22, 2009 8:28 am
by 13047002
Interestingly when I changed from Line to FAstLine this resolved the issue. No idea why

Re: Series Color missing in Legend.

Posted: Mon Jun 22, 2009 2:35 pm
by narcis
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;
			}
		}