Ganttchart series overlap problem

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Hans
Newbie
Newbie
Posts: 28
Joined: Mon Jan 03, 2005 5:00 am

Ganttchart series overlap problem

Post by Hans » Tue Jun 07, 2005 3:17 pm

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

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

Post by Narcís » Wed Jun 08, 2005 11:30 am

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;
			}
		}
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