depth axis as datetime in point3d series

TeeChart for ActiveX, COM and ASP
Post Reply
bahmed
Newbie
Newbie
Posts: 4
Joined: Tue Mar 04, 2003 5:00 am

depth axis as datetime in point3d series

Post by bahmed » Fri Feb 20, 2004 2:55 pm

Is there any way to havedepth axis for the point3d series show up as datetime?

Pep
Site Admin
Site Admin
Posts: 3303
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Fri Feb 20, 2004 7:22 pm

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

Post Reply