sorry again... about the labels in Gantt- not my intention

TeeChart for ActiveX, COM and ASP
Post Reply
Emerald
Newbie
Newbie
Posts: 7
Joined: Thu Dec 02, 2004 5:00 am

sorry again... about the labels in Gantt- not my intention

Post by Emerald » Wed Dec 20, 2006 12:44 pm

Hi, sorry to bug you again... I know how to use the AddGanttColor, and it's labels but what i have is somthing luke ths:

.AddGanttColor DateValue("1/1/2001"), DateValue("20/1/2001"), _ 1, "Machine1", vbRed
.AddGanttColor DateValue("5/1/2001"), DateValue("25/1/2001"), _ 1 "Machine1", vbRed


suppose i want to display a text to the user wich is Different!! on each of the parts that will be painted on the Gantt, (at the same vertical Axis and in the same series - i have just one....)
thank you agin...

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 Dec 20, 2006 2:33 pm

Hi Emerald,

What do you exactly mean? You can use a string variable for each gantt bar instead of a fixed string. You can also access each bar mark doing something like this:

Code: Select all

    With TChart1.Series(0)
        .FillSampleValues 10
        .Marks.Visible = True

        For i = 0 To TChart1.Series(0).Count - 1
            .PointLabel(i) = "bar " & CStr(i + 1)
        Next
    End With
Regarding left axis labels please read Tutorial 4 - Axis Control on how to set up axes in TeeChart. You'll find the tutorials at TeeChart's program group.
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