Skip to main content

DxChartBarSeriesBase<T, TArgument, TValue>.MinBarHeight Property

Specifies the minimum bar height in pixels.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v23.2.dll

NuGet Package: DevExpress.Blazor

Declaration

[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