How can I create a XYZ series Line?

Posted by: smartzq on 8 September 2017, 2:39 pm EST

  • Posted 8 September 2017, 2:39 pm EST

    I need draw a 3D line and  I have written these codes,but it doesn't work ?I don't know where is wrong? 2008     spread 5  3518


            Dim plotarea As New FarPoint.Win.Chart.XYZPlotArea()
            Dim a As FarPoint.Win.Chart.XYZLineSeries = New FarPoint.Win.Chart.XYZLineSeries
            'a.XValues.DataSource = New FarPoint.Win.Spread.Chart.SeriesDataField(FpSpread1, "Values", "Sheet1!R1C1:R5C1")
            Dim m As Integer
            Dim B1(), B2(), B3() As Double
            ReDim B1(100)
            ReDim B2(100)
            ReDim B3(100)
            For m = 0 To 100
                B1(m) = m * 2.5
                B2(m) = m * 3
                B3(m) = m * 5
            plotarea.Location = New PointF(0.2F, 0.2F)
            plotarea.Size = New SizeF(0.6F, 0.6F)
            Dim model As New FarPoint.Win.Chart.ChartModel()
            FpChart1.Model = model
            FpChart1.ViewType = FarPoint.Win.Chart.ChartViewType.View3D

  • Replied 8 September 2017, 2:39 pm EST


    In order to view the z-axis you need to set two
    properties of XYZPlotArea i.e. Elevation and Rotation to some value, then you will be able to see the third axis in XYZLineSeries chart.

    <blockquote>plotArea.Rotation = 20;
    plotArea.Elevation = 15;

    Hope it will help you. Feel free to ask for further queries. Thanks.

  • Replied 8 September 2017, 2:39 pm EST

    done ,thanks~~~~~~
Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels