RadzenBarOptions Class

Common configuration of RadzenBarSeries<T>.

Inheritance

Object

ComponentBase

RadzenChartComponentBase

RadzenBarOptions

Implements

IComponent

IHandleEvent

IHandleAfterRender

Inherited Members

RadzenChartComponentBase.SetParametersAsync

RadzenChartComponentBase.ValidateParameters

RadzenChartComponentBase.DidParameterChange

RadzenChartComponentBase.Chart

ComponentBase.BuildRenderTree

ComponentBase.OnInitialized

ComponentBase.OnInitializedAsync

ComponentBase.OnParametersSet

ComponentBase.OnParametersSetAsync

ComponentBase.StateHasChanged

ComponentBase.ShouldRender

ComponentBase.OnAfterRender

ComponentBase.OnAfterRenderAsync

ComponentBase.InvokeAsync

ComponentBase.DispatchExceptionAsync

ComponentBase.RendererInfo

ComponentBase.Assets

ComponentBase.AssignedRenderMode

Namespace: Radzen.Blazor

Assembly: Radzen.Blazor.dll

Syntax

public class RadzenBarOptions : RadzenChartComponentBase, IComponent, IHandleEvent, IHandleAfterRender

Constructors

RadzenBarOptionsLink to this section

Common configuration of RadzenBarSeries<T>.

Declaration
public RadzenBarOptions()

Properties

CategoryGapLink to this section

Gets or sets the fraction (0 to 1) of each category band left empty as a gap, controlling how thick the bars are relative to the space available per category. For example 0.4 makes the bars occupy 60% of the band. When null (the default) the height is derived from the chart size automatically. Has no effect when Height is set.

Declaration
public double? CategoryGap { get; set; }
Property Value
Type Description
double?Gets or sets the fraction (0 to 1) of each category band left empty as a gap, controlling how thick the bars are relative to the space available per category. For example 0.4 makes the bars occupy 60% of the band. When null (the default) the height is derived from the chart size automatically. Has no effect when Height is set.

HeightLink to this section

Gets or sets the height of all bars in pixels. By default it is automatically calculated depending on the chart height.

Declaration
public double? Height { get; set; }
Property Value
Type Description
double?Gets or sets the height of all bars in pixels. By default it is automatically calculated depending on the chart height.

MarginLink to this section

Gets or sets the margin between bars.

Declaration
public double Margin { get; set; }
Property Value
Type Description
doubleGets or sets the margin between bars.

MaxHeightLink to this section

Gets or sets the maximum height of a bar in pixels. When the automatically calculated height exceeds this value the bars are capped to it and stay centered on their category. Has no effect when Height is set.

Declaration
public double? MaxHeight { get; set; }
Property Value
Type Description
double?Gets or sets the maximum height of a bar in pixels. When the automatically calculated height exceeds this value the bars are capped to it and stay centered on their category. Has no effect when Height is set.

RadiusLink to this section

Gets or sets the border radius of the bars.

Declaration
public double Radius { get; set; }
Property Value
Type Description
doubleGets or sets the border radius of the bars.

Methods

InitializeLink to this section

Declaration
protected override void Initialize()

ShouldRefreshChartLink to this section

Declaration
protected override bool ShouldRefreshChart(ParameterView parameters)
Parameters
Type Name Description
ParameterView parameters
Returns
Type Description
bool
An error has occurred. This app may no longer respond until reloaded. Reload 🗙