Back to Devexpress

BarSeries2DBase.BarWidth Property

wpf-devexpress-dot-xpf-dot-charts-dot-barseries2dbase-f3747c30.md

latest1.8 KB
Original Source

BarSeries2DBase.BarWidth Property

Gets or sets the width of a bar.

Namespace : DevExpress.Xpf.Charts

Assembly : DevExpress.Xpf.Charts.v25.2.dll

NuGet Package : DevExpress.Wpf.Charts

Declaration

csharp
public double BarWidth { get; set; }
vb
Public Property BarWidth As Double

Property Value

TypeDescription
Double

A Double value that is the bar’s width in fractions of axis units , where an axis unit is the distance between two major values on the axis. This value should be greater than or equal to 0.

|

Remarks

The BarWidth property specifies the bar width for all 2D Bar Series. This property’s value is measured as a fraction of axis measurement unit , allowing bars to be automatically resized when the size of a chart is changed.

Note

When the series type is Side-by-Side Bar, then the distance between bars is defined by the XYDiagram2D.BarDistance and XYDiagram2D.BarDistanceFixed properties.

See Also

BarSeries2DBase Class

BarSeries2DBase Members

DevExpress.Xpf.Charts Namespace