Bar3DSeriesView.Model Property

Specifies the 3D model used to draw series points of a Bar 3D series.

Namespace: DevExpress.XtraCharts

Assembly: DevExpress.XtraCharts.v20.1.dll

Declaration

[XtraChartsLocalizableCategory(XtraChartsCategory.Appearance)]
public Bar3DModel Model { get; set; }
<XtraChartsLocalizableCategory(XtraChartsCategory.Appearance)>
Public Property Model As Bar3DModel

Property Value

Type Description
Bar3DModel

The Bar3DModel enumeration value, which specifies the series model.

Remarks

Use the Model property, to choose a model for representation of 3D Bar series.

Model = Box Model = Cylinder
Model_Box Model_Cylinder
Model = Cone Model = Pyramid
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.

Examples

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;
See Also