Back to Devexpress

SideBySideFullStackedBar3DSeriesView.BarDistance Property

corelibraries-devexpress-dot-xtracharts-dot-sidebysidefullstackedbar3dseriesview-35c58cfb.md

latest3.6 KB
Original Source

SideBySideFullStackedBar3DSeriesView.BarDistance Property

Specifies the distance between two bars of different series shown at the same axis value, as a fraction of axis units.

Namespace : DevExpress.XtraCharts

Assembly : DevExpress.XtraCharts.v25.2.dll

NuGet Package : DevExpress.Charts

Declaration

csharp
[XtraChartsLocalizableCategory(XtraChartsCategory.Layout)]
public double BarDistance { get; set; }
vb
<XtraChartsLocalizableCategory(XtraChartsCategory.Layout)>
Public Property BarDistance As Double

Property Value

TypeDescription
Double

A Double value that represents the distance between two neighboring bars, as a fraction of axis units.

|

Remarks

The BarDistance property specifies the distance between two bars in a 3D Side-by-Side Full-Stacked Bar series. This property’s value is given as a fraction, allowing the distance to be automatically resized when the size of the Chart is changed. For instance, if the BarDistance property is set to 0.5 , then the distance between the two bars will be always equal to half the range between the two major values on the axis.

To specify the distance between two bars in pixels, use the SideBySideFullStackedBar3DSeriesView.BarDistanceFixed property. If both the BarDistance and SideBySideFullStackedBar3DSeriesView.BarDistanceFixed properties are specified, their values are accumulated together as constant and variable distances.

Note

The BarDistance property is synchronized in all Side-by-Side Full-Stacked Bars, present in a ChartControl, and all of them always return the same value. So, changing the BarDistance property for any such series, affects the BarDistance property value in all other similar series.

For the same reason, when trying to set the BarDistance property before a Series is added to a chart’s collection, an ArgumentException is thrown.

See Also

BarDistanceFixed

BarWidth

SideBySideFullStackedBar3DSeriesView Class

SideBySideFullStackedBar3DSeriesView Members

DevExpress.XtraCharts Namespace