1.将View3D定义为活动视图并定义Z轴范围。
// Set View3D as active view and set Z-axis range.
chart.ActiveView = ActiveView.View3D;
chart.View3D.ZAxisPrimary3D.SetRange(0, 80);
2.创建一个新的PointLineSeries3D对象以显示数据。
// Create a new PointLineSeries3D for displaying data and set axis bindings to primary axes.
var series = new PointLineSeries3D(chart.View3D, Axis3DBinding.Primary, Axis3DBinding.Primary, Axis3DBinding.Primary)
{
// Set this to true to set a color for individual points.
IndividualPointColors = true,
// Set this to true in order for mouse tracking to work.
MouseInteraction = true
};
3.将样式应用于新创建的系列。
// Set a title to the series.
series.Title.Text = “Series 0”;
// Set point shape to a sphere.
series.PointStyle.Shape3D = PointShape3D.Sphere;
// Set individual point size.
series.PointStyle.Size3D.SetValues(3, 3, 3);
// Set the width of the lin