3D Point Chart Series

TeeChart for ActiveX, COM and ASP
Post Reply
ProgLabs
Newbie
Newbie
Posts: 11
Joined: Wed Nov 12, 2003 5:00 am
Location: New York

3D Point Chart Series

Post by ProgLabs » Wed Dec 10, 2003 6:12 am

:?: Could you please tell me how to plot the Z-Axis values on a 3D point chart? The only method that is exposed is ADDXY, but how do I set a Z-Axis value? I see the sample doing it with the FillSampleValues method, but how can I do this programmatically?

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

Post by Pep » Wed Dec 10, 2003 12:05 pm

How about something like this :

Code: Select all

Private Sub Form_Load()
With TChart1
    .AddSeries scPoint3D
    .Series(0).asPoint3D.AddXYZ 0, 10, 1, "", clTeeColor
    .Series(0).asPoint3D.AddXYZ 1, 15, 5, "", clTeeColor
    .Series(0).asPoint3D.AddXYZ 2, 4, 2, "", clTeeColor
    .Series(0).asPoint3D.AddXYZ 3, 20, 10, "", clTeeColor
    .Series(0).asPoint3D.AddXYZ 4, 5, 2, "", clTeeColor
    .Axis.Depth.Visible = True
End With
End Sub
Josep Lluis Jorge
http://support.steema.com

Post Reply