Page 1 of 1

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

Posted: Wed Dec 20, 2006 12:44 pm
by 9525074
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...

Posted: Wed Dec 20, 2006 2:33 pm
by narcis
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.