Gantt box overlapping

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
THoMaSiN
Newbie
Newbie
Posts: 36
Joined: Mon Apr 14, 2008 12:00 am

Gantt box overlapping

Post by THoMaSiN » Fri Jun 20, 2008 1:30 pm

I'm adding several boxes to a gantt chart.

the last box is a summary which i want to be at the bottom so i added it to have the y parameter as 0, even though i added it the last order.

when there is more than neccesary boxes, the chart gets packed and the shadow of that box overlaps the box over them. the rest work fine but I guess since I add that one the last, it gets drawn the last ... !!

how can i solve this? I sitll this box to show under every other.

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

Post by Narcís » Fri Jun 20, 2008 1:56 pm

Hi THoMaSiN,

Could you please send us a simple example project we can run "as-is" to reproduce the problem here.

You can either post your files at news://www.steema.net/steema.public.attachments newsgroup or at our upload page.

Thanks in advance.
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

THoMaSiN
Newbie
Newbie
Posts: 36
Joined: Mon Apr 14, 2008 12:00 am

Post by THoMaSiN » Fri Jun 20, 2008 7:01 pm

I did the file is called SteemaProof.zip

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

Post by Narcís » Mon Jun 23, 2008 10:28 am

Hi THoMaSiN,

Thanks for the example project.

I could reproduce the problem here and added it (TF02013154) to our defect list to be fixed for next releases. In the meantime, a solution is adding YValue=0 bar before other bars:

Code: Select all

        Dim gc As New Steema.TeeChart.Styles.Gantt(Me.resourceGantt.Chart)

        gc.XValues.DateTime = True

        Dim days As Integer = 10

        gc.Add(Today, Today.AddDays(days), 0, "Cummulated")

        For i As Integer = 1 To 17

            gc.Add(Today, Today.AddDays(days), i, i)

        Next

        'gc.Add(Today, Today.AddDays(days), 0, "Cummulated")
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

THoMaSiN
Newbie
Newbie
Posts: 36
Joined: Mon Apr 14, 2008 12:00 am

Post by THoMaSiN » Mon Jun 23, 2008 10:38 am

yeah, that's right,

Unfortunately I cannot do that since the last bar is a computed bar that doesn't get produced until the last of the other bars are in. I guess I could compute the bar and then insert the others ... kind of innefficient, but I'll give it a shot.

Thanks !!

THoMaSiN
Newbie
Newbie
Posts: 36
Joined: Mon Apr 14, 2008 12:00 am

Post by THoMaSiN » Mon Jun 23, 2008 11:10 am

Another option would be to be able to make the 3d effect have a little less depth so the bar wouldn't cover those many other bars, do you know how I could do that?

Thanks.

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

Post by Narcís » Mon Jun 23, 2008 1:22 pm

Hi THoMaSiN,

Yes, you can use Chart3DPercent:

Code: Select all

      tChart1.Aspect.Chart3DPercent = 5;
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