Page 1 of 1

Ganttchart series overlap problem

Posted: Tue Jun 07, 2005 3:17 pm
by 9340459
Using the ganttchart for planning engineers in time I have the problem that if 2 series items are at approx the same time for one person, you don't see both items, because they overlap eachother.

Is it possible that the second item is located just below the other series item, so you can display both in the chart for the same person(horizontal gridlines)?

Hans

Posted: Wed Jun 08, 2005 11:30 am
by narcis
Hi Hans,

You could do these using two series having different height or with only one series "playing" with transparency and gantt bars height as done here:

Code: Select all

private void Form1_Load(object sender, System.EventArgs e)
		{
			this.commander1.Chart = tChart1;

			this.gantt1.Add(40005, 40010, 1, "First", Color.Green); 
			this.gantt1.Add(40000, 40010, 1, "Second", Color.Red);
			
		}

	private void gantt1_GetPointerStyle(Steema.TeeChart.Styles.CustomPoint series, Steema.TeeChart.Styles.CustomPoint.GetPointerStyleEventArgs e)
		{
			if(e.ValueIndex == 1) 
			{ 
				(series as Steema.TeeChart.Styles.Gantt).Pointer.Brush.Transparency = 50;
				(series as Steema.TeeChart.Styles.Gantt).Pointer.VertSize = 10;
			}
		}