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>.BarWidth Property

Specifies the width of an individual bar in the series, in pixels.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

#Declaration

C#
[Parameter]
public int BarWidth { get; set; }

#Property Value

Type Description
Int32

The bar width, in pixels.

#Remarks

The BarWidth property value cannot exceed the maximum width allocated for a bar in a bar group. To calculate the maximum bar width, the component divides the bar total group width by the number of bars in the group. Use the BarPadding property to specify the bar padding as a percentage. Note that the BarPadding property has no effect when BarWidth is specified.

The following image shows a Polar Chart whose Day series width is 15 pixels, and the Night series width is 7 pixels:

Bar width is specified

Razor
<DxPolarChart Data=@DataSource>
    <DxChartLegend Position="RelativePosition.Outside" />
    <DxPolarChartBarSeries ArgumentField="@((DiscretePoint i) => i.Arg)"
                           ValueField="@((DiscretePoint i) => i.Day)"
                           BarWidth="15"
                           Name="Day">
    </DxPolarChartBarSeries>
    <DxPolarChartBarSeries ArgumentField="@((DiscretePoint i) => i.Arg)"
                           ValueField="@((DiscretePoint i) => i.Night)"
                           BarWidth="7"
                           Name="Night">
    </DxPolarChartBarSeries>
</DxPolarChart>

You can use the Polar Chart’s BarGroupWidth and BarGroupPadding properties to configure the bar group width in multi-series charts. The BarGroupWidth property has a higher priority in single-series charts if the BarWidth and BarGroupWidth properties are set.

See Also