Skip to main content

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

DxChartBarSeriesBase<T, TArgument, TValue>.MinBarHeight Property

Specifies the minimum bar height in pixels.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

#Declaration

C#
[DefaultValue(null)]
[Parameter]
public int? MinBarHeight { get; set; }

#Property Value

Type Default Description
Nullable<Int32> null

A value that specifies the bar size.

#Remarks

A chart can significantly scale down bars to visualize disparate series values and their ratios. Use the MinBarHeight property to increase the height of these bars and enhance user interaction with them. The property value has no effect on the underlying point values.

The images below show how the MinBarHeight property values affect bars:

The charts with different MinBarHeight values

The following example specifies the minimum bar height:

<DxChartBarSeries ArgumentField="@((WeatherForecast i) => i.Date)"
                  ValueField="@((WeatherForecast i) => i.Precipitation)"
                  Name="Precipitation" 
                  MinBarHeight=50>
    <DxChartSeriesLabel Visible="true" />
</DxChartBarSeries>
See Also