Back to Devexpress

DxPolarChartBarSeries<T, TArgument, TValue>.BarPadding Property

blazor-devexpress-dot-blazor-dot-dxpolarchartbarseries-3-ac8fbc9c.md

latest2.1 KB
Original Source

DxPolarChartBarSeries<T, TArgument, TValue>.BarPadding Property

Specifies the padding between bars in a bar group, as a percentage.

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

csharp
[Parameter]
public double BarPadding { get; set; }

Property Value

TypeDescription
Double

A value from 0 to 1. If 0, no padding is added. If 1, an individual bar has the minimum width.

|

Remarks

The BarPadding property allows you to specify the bar padding of an individual series. Specify BarWidth and DxPolarChart.BarGroupWidth properties to set bar width and bar group width in pixels. These BarWidth and BarGroupWidth properties have priority over the BarPadding property.

The images below demonstrate how different BarPadding property values affect the bars of the Day series:

The following code sets the bar padding to 0.6 (60% of the maximum bar width), and therefore, sets the bar width to 0.4 (40% of the maximum bar width):

razor
<DxPolarChartBarSeries ArgumentField="@((WeatherForecast i) => i.Date)"
                       ValueField="@((WeatherForecast i) => i.Precipitation)"
                       Name="Day" 
                       BarPadding="0.6">
   @*...*@
</DxPolarChartBarSeries>

See Also

DxPolarChartBarSeries<T, TArgument, TValue> Class

DxPolarChartBarSeries<T, TArgument, TValue> Members

DevExpress.Blazor Namespace