Skip to main content
All docs
V24.1

DxPolarChartBarSeries<T, TArgument, TValue>.BarPadding Property

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

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.1.dll

NuGet Package: DevExpress.Blazor

Declaration

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

Property Value

Type Description
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:

Bar padding

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):

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