Page 1 of 1

3D Point Chart Series

Posted: Wed Dec 10, 2003 6:12 am
by 9079769
:?: 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?

Posted: Wed Dec 10, 2003 12:05 pm
by Pep
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