corelibraries-devexpress-dot-xtracharts-dot-bar3dseriesview-aae263de.md
Specifies the 3D model used to draw series points of a Bar 3D series.
Namespace : DevExpress.XtraCharts
Assembly : DevExpress.XtraCharts.v25.2.dll
NuGet Package : DevExpress.Charts
[XtraChartsLocalizableCategory(XtraChartsCategory.Appearance)]
public Bar3DModel Model { get; set; }
<XtraChartsLocalizableCategory(XtraChartsCategory.Appearance)>
Public Property Model As Bar3DModel
| Type | Description |
|---|---|
| Bar3DModel |
The Bar3DModel enumeration value, which specifies the series model.
|
Available values:
| Name | Description |
|---|---|
| Box |
Represents the Box 3D model.
| | Cylinder |
Represents the Cylinder 3D model.
| | Cone |
Represents the Cone 3D model.
| | Pyramid |
Represents the Pyramid 3D model.
|
Use the Model property, to choose a model for representation of 3D Bar series.
| Model = Box | Model = Cylinder |
|---|---|
| Model = Cone | Model = Pyramid |
For flat-top models ( Box and Cylinder ), you can also specify whether the top facet should be visible, via the Bar3DSeriesView.ShowFacet property.
This example demonstrates how to customize the Bar3DSeriesView.Model property of a Bar 3D series. Note that for flat-top models ( Box and Cylinder ), you can also choose whether to display the top-facet (via the Bar3DSeriesView.ShowFacet property).
// Create a Bar 3D series,
// and add it to your chart's collection.
Series series1 = new Series("Series 1", ViewType.Bar3D);
BarChart3D.Series.Add(series1);
// Cast the view type of a series to the Bar 3D view type.
Bar3DSeriesView myView = (Bar3DSeriesView)series1.View;
// Access the Model property, and enable the top-facet.
myView.Model = Bar3DModel.Cylinder;
myView.ShowFacet = false;
' Create a Bar 3D series,
' and add it to your chart's collection.
Dim Series1 As New Series("Series 1", ViewType.Bar3D)
BarChart3D.Series.Add(Series1)
' Cast the view type of a series to the Bar 3D view type.
Dim MyView As Bar3DSeriesView = CType(Series1.View, Bar3DSeriesView)
' Access the Model property, and enable the top-facet.
MyView.Model = Bar3DModel.Cylinder
MyView.ShowFacet = False
See Also