Skip to main content
A newer version of this page is available. .

SideBySideBarSeriesView.BarDistanceFixed Property

Gets or sets the fixed distance value (in pixels) between two bars of different series shown at the same argument point.

Namespace: DevExpress.XtraCharts

Assembly: DevExpress.XtraCharts.v18.2.dll

Declaration

[XtraSerializableProperty(XtraSerializationVisibility.Hidden)]
[XtraChartsLocalizableCategory(XtraChartsCategory.Layout)]
public int BarDistanceFixed { get; set; }

Property Value

Type Description
Int32

An integer value that represents the distance between two neighboring bars, in pixels.

Remarks

The BarDistanceFixed property specifies the distance between two bars in a Side-by-Side Bar series. This property’s value is measured in pixels, and doesn’t depend on the size of a Chart.

To specify the distance between two bars as a fraction of axis units, use the SideBySideBarSeriesView.BarDistance property. If both the BarDistanceFixed and SideBySideBarSeriesView.BarDistance properties are in effect at the same time, their values are combined together as constant and variable distances.

BarDistance_2DBars

Note

The BarDistanceFixed property is synchronized in all Side-by-Side Bar Series which are present in a ChartControl, and all of them always return the same value. If you change the distance between two bars for one Side-by-Side Bar series view, it will affect the BarDistanceFixed property in all other Side-by-Side Bar series views.

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

See Also