# 3D Bar Charts

## Content



The 3D Bar chart displays each data point as a single bar drawn from the Z-value to the origin. Spacing between the adjacent bars can be added when using either grid or irregular grid data layout. Like the 2D Bar chart it is useful for comparing individual items or groups of items.

### Chart3DTypeEnum.Bar

![](https://cdn.mescius.io/document-site-files/images/46396fd1-914e-43da-9cb0-e66dcc0ae61b/imagesext/image12_18.png)

### To set the 3D chart type to Bar at design time:

1.  Expand the **ChartGroups** node in the Properties window, then expand **Group0**.
2.  Locate the **ChartType** property and select **Bar**.

### To programmatically set the 3D chart type to Bar:

DOC-DETAILS-TAG-OPEN

DOC-SUMMARY-TAG-OPEN

To write code in Visual Basic

DOC-SUMMARY-TAG-CLOSE

```vbnet
C1Chart3D1.ChartGroups(0).ChartType = Chart3DTypeEnum.Bar
```

DOC-DETAILS-TAG-CLOSE

DOC-DETAILS-TAG-OPEN

DOC-SUMMARY-TAG-OPEN

To write code in C#

DOC-SUMMARY-TAG-CLOSE

```csharp
C1Chart3D1.ChartGroups[0].ChartType = Chart3DTypeEnum.Bar;
```

DOC-DETAILS-TAG-CLOSE

## See Also

[Special 3D Bar Chart Properties](/componentone/docs/win/online-chart3d/3dchartfundamentals/basic3dcharttypes/3dbarcharts/special3dbarchartpro)