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
Ganttchart series overlap problem
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
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:
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 |
Instructions - How to post in this forum |