Spread Windows Forms 15.0
Spread Windows Forms 15.0 Product Documentation / Developer's Guide / Chart Control / Creating Charts / Advanced chart settings / Display format
In This Topic
    Display format
    In This Topic

    The chart display format can be specified in 2D or 3D. The following image shows a 2D chart.

    2D Chart

    The following image shows an example of a 3D chart.

    3D Chart

    Using code

    Set the ViewType property of the SpreadChart class that represents the chart. Also, you can rotate the plot area around the horizontal and vertical axes as required. You can set the rotation angle around the horizontal axis with the Elevation property of the PlotArea class and the vertical axis with the Rotation property.

    Example

    The following example demonstrate how to set the chart display format to 3D.

    C#
    Copy Code
    FarPoint.Win.Spread.Chart.SpreadChart chart = new FarPoint.Win.Spread.Chart.SpreadChart();
    chart.ViewType = FarPoint.Win.Chart.ChartViewType.View3D;
    
    Visual Basic
    Copy Code
    Dim chart As New FarPoint.Win.Spread.Chart.SpreadChart()
    chart.ViewType = FarPoint.Win.Chart.ChartViewType.View3D
    

    Using the Chart Designer

    1. On the Chart Designer, right-click on the chart.
    2. Select [3D Display] or [2D Display] (the displayed items differ depending on the current display format) from the context menu.

    You can also select a chart on the SPREAD designer and set the ViewType from the View section of the property list on the right side of the screen.