RadzenCategoryAxis Class

Inheritance

Object

ComponentBase

RadzenChartComponentBase

AxisBase

RadzenCategoryAxis

Implements

IComponent

IHandleEvent

IHandleAfterRender

IChartAxis

Inherited Members

AxisBase.Stroke

AxisBase.StrokeWidth

AxisBase.ChildContent

AxisBase.FormatString

AxisBase.Formatter

AxisBase.LineType

AxisBase.GridLines

AxisBase.Crosshair

AxisBase.Title

AxisBase.Ticks

AxisBase.TickDistance

AxisBase.Width

AxisBase.Min

AxisBase.Max

AxisBase.Step

AxisBase.Visible

AxisBase.Inverted

AxisBase.Logarithmic

AxisBase.LogarithmicBase

AxisBase.CrossesAt

AxisBase.LabelRotation

AxisBase.LabelAutoRotation

RadzenChartComponentBase.SetParametersAsync

RadzenChartComponentBase.ValidateParameters

RadzenChartComponentBase.DidParameterChange

RadzenChartComponentBase.Chart

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 RadzenCategoryAxis : AxisBase, IComponent, IHandleEvent, IHandleAfterRender, IChartAxis

Constructors

RadzenCategoryAxisLink to this section

Declaration
public RadzenCategoryAxis()

Properties

LabelFitLink to this section

Specifies how category labels that do not fit the available space are displayed. A Template displays every category unchanged. Auto fits the labels once the chart knows its size: LabelRotation and LabelAutoRotation only choose the angle of the rotated labels, which are still skipped when they overlap and shortened when they are too long. None displays every label in full, rotated only as LabelRotation and LabelAutoRotation specify. Shortened labels keep their full text in the SVG title shown on hover and in the series tooltips.

Declaration
public CategoryAxisLabelFit LabelFit { get; set; }
Property Value
Type Description
CategoryAxisLabelFitSpecifies how category labels that do not fit the available space are displayed. A Template displays every category unchanged. Auto fits the labels once the chart knows its size: LabelRotation and LabelAutoRotation only choose the angle of the rotated labels, which are still skipped when they overlap and shortened when they are too long. None displays every label in full, rotated only as LabelRotation and LabelAutoRotation specify. Shortened labels keep their full text in the SVG title shown on hover and in the series tooltips.

PaddingLink to this section

Declaration
public double Padding { get; set; }
Property Value
Type Description
double

TickPlacementLink to this section

Specifies whether categories are placed between ticks (reserving half a band at each end) or on the ticks (flush to the plot edges). The default is Between.

Declaration
public TickPlacement TickPlacement { get; set; }
Property Value
Type Description
TickPlacementSpecifies whether categories are placed between ticks (reserving half a band at each end) or on the ticks (flush to the plot edges). The default is Between.

Methods

BuildRenderTreeLink to this section

Declaration
protected override void BuildRenderTree(Rendering.RenderTreeBuilder __builder)
Parameters
Type Name Description
Rendering.RenderTreeBuilder __builder

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 🗙