Page 1 of 1

Legend Symbols with Gantt-Series

Posted: Thu Jan 15, 2009 2:44 pm
by 10549438
Hello,

I have 6 Gantt-Series created. All Series are displayed correctly in WebChart, but in the Legend of the WebChart (Version 3.5.3274.30663) I can not see any Symbol - only the SeriesTitle of my Gantt-Series. The Legends Symbol.Visible-Property is set to TRUE.

How can I show the Symbols (with the Color of the Gantt-Series) in Legend?

Best regards.
Michael

Posted: Thu Jan 15, 2009 3:00 pm
by narcis
Hi Michael,

This is most likely because, by default, Gantt series has ColorEach property set to true. Therefore each Gantt bar in a series has a different color and there's no specific color to be assigned to legend symbols. Setting ColorEach to false solves the problem, for example:

Code: Select all

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

		private void InitializeChart()
		{
			tChart1.Aspect.View3D = false;

			for (int i = 0; i < 6; i++)
			{
				Steema.TeeChart.Styles.Gantt gantt1 = new Steema.TeeChart.Styles.Gantt(tChart1.Chart);

				gantt1.FillSampleValues();
				gantt1.ColorEach = false;
			}
		}

Posted: Thu Jan 15, 2009 3:07 pm
by 10549438
Hi, NarcĂ­s.

thanks! Now it works the way I want.

Best regards
Michael