Skip to main content
All docs
V24.2

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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.2.dll

NuGet Package: DevExpress.Blazor

#Declaration

C#
[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