Page 1 of 1

depth axis as datetime in point3d series

Posted: Fri Feb 20, 2004 2:55 pm
by 6927813
Is there any way to havedepth axis for the point3d series show up as datetime?

Posted: Fri Feb 20, 2004 7:22 pm
by Pep
Hi,

yes, in the latest version you must transform the ZValues to Date values and then show them as string, something like this works fine here :

Code: Select all

Private Sub Form_Load()
With TChart1
    .AddSeries scSurface
    .Series(0).asSurface.ZValues.DateTime = True
    .Series(0).asSurface.AddXYZ 0, 10, CDate("10/01/2003"), "", clTeeColor
    .Series(0).asSurface.AddXYZ 1, 14, CDate("11/01/2003"), "", clTeeColor
    .Series(0).asSurface.AddXYZ 2, 16, CDate("12/01/2003"), "", clTeeColor
    .Axis.Depth.Visible = True
End With
End Sub

Private Sub TChart1_OnGetAxisLabel(ByVal Axis As Long, ByVal SeriesIndex As
Long, ByVal ValueIndex As Long, LabelText As String)
Date = CDate(LabelText)
LabelText = Date
End Sub
In the next TeeChart Pro v7 there will be the positibily to do this directly like :
TChart1.Axis.Depth.Datetime = true