# Display format

Learn how to specify chart display format in 2D or 3D and set rotation angles for plot area using code examples.

## Content

The chart display format can be specified in 2D or 3D. The following image shows a 2D chart.
![2D Chart](https://cdn.mescius.io/document-site-files/images/2238e618-a1fb-45a6-9ce5-9a4157bd2931/images/twodchart.png)
The following image shows an example of a 3D chart.
![3D Chart](https://cdn.mescius.io/document-site-files/images/2238e618-a1fb-45a6-9ce5-9a4157bd2931/images/threedchart.png)

## Using code

Set the [ViewType](/spreadnet/api/latest/online-win/FarPoint.Win.Spread/FarPoint.Win.Spread.Chart.ChartShape.ViewType.html) property of the [SpreadChart](/spreadnet/api/latest/online-win/FarPoint.Win.Spread/FarPoint.Win.Spread.Chart.SpreadChart.html) 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](/spreadnet/api/latest/online-win/FarPoint.Win.Chart/FarPoint.Win.Chart.PlotArea.Elevation.html) property of the [PlotArea](/spreadnet/api/latest/online-win/FarPoint.Win.Chart/FarPoint.Win.Chart.PlotArea.html) class and the vertical axis with the [Rotation](/spreadnet/api/latest/online-win/FarPoint.Win.Chart/FarPoint.Win.Chart.PlotArea.Rotation.html) property.

## Example

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

```csharp
FarPoint.Win.Spread.Chart.SpreadChart chart = new FarPoint.Win.Spread.Chart.SpreadChart();
chart.ViewType = FarPoint.Win.Chart.ChartViewType.View3D;
```

```vbnet
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.

> !type=note
> **Note:** 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.