AxisBase Class

Base class for an axis in RadzenChart.

Inheritance

Implements

IComponent

IHandleEvent

IHandleAfterRender

IChartAxis

Inherited Members

RadzenChartComponentBase.Initialize

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 abstract class AxisBase : RadzenChartComponentBase, IComponent, IHandleEvent, IHandleAfterRender, IChartAxis

Constructors

AxisBaselink

Base class for an axis in RadzenChart.

Declaration
protected AxisBase()

Properties

ChildContentlink

Gets or sets the child content.

Declaration
public RenderFragment ChildContent { get; set; }
Property Value
Type Description
RenderFragmentGets or sets the child content.

FormatStringlink

Gets or sets the format string used to display the axis values.

Declaration
public string FormatString { get; set; }
Property Value
Type Description
stringGets or sets the format string used to display the axis values.

Formatterlink

Gets or sets a formatter function that formats the axis values.

Declaration
public Func<object, string> Formatter { get; set; }
Property Value
Type Description
Func<object, string>Gets or sets a formatter function that formats the axis values.

GridLineslink

Gets or sets the grid lines configuration of the current axis.

Declaration
public RadzenGridLines GridLines { get; set; }
Property Value
Type Description
RadzenGridLinesGets or sets the grid lines configuration of the current axis.

LabelAutoRotationlink

Specifies the automatic label rotation angle in degrees. If set RadzenChart will automatically rotate the labels to fit the available space by the specified value. Has lower precedence than LabelRotation.

Declaration
public double? LabelAutoRotation { get; set; }
Property Value
Type Description
double?Specifies the automatic label rotation angle in degrees. If set RadzenChart will automatically rotate the labels to fit the available space by the specified value. Has lower precedence than LabelRotation.

LabelRotationlink

Specifies the label rotation angle in degrees. Set to null by default which means no rotation is applied. Has higher precedence than LabelAutoRotation.

Declaration
public double? LabelRotation { get; set; }
Property Value
Type Description
double?Specifies the label rotation angle in degrees. Set to null by default which means no rotation is applied. Has higher precedence than LabelAutoRotation.

LineTypelink

Gets or sets the type of the line used to display the axis.

Declaration
public LineType LineType { get; set; }
Property Value
Type Description
LineTypeGets or sets the type of the line used to display the axis.

Maxlink

Specifies the maximum value of the axis.

Declaration
public object Max { get; set; }
Property Value
Type Description
objectSpecifies the maximum value of the axis.

Minlink

Specifies the minimum value of the axis.

Declaration
public object Min { get; set; }
Property Value
Type Description
objectSpecifies the minimum value of the axis.

Steplink

Specifies the step of the axis.

Declaration
public object Step { get; set; }
Property Value
Type Description
objectSpecifies the step of the axis.

Strokelink

Gets or sets the stroke (line color) of the axis.

Declaration
public string Stroke { get; set; }
Property Value
Type Description
stringGets or sets the stroke (line color) of the axis.

StrokeWidthlink

Gets or sets the pixel width of axis.

Declaration
public double StrokeWidth { get; set; }
Property Value
Type Description
doubleGets or sets the pixel width of axis.

TickDistancelink

Gets or sets the pixel distance between axis ticks. It is used to calculate the number of visible ticks depending on the available space. Set to 100 by default; Setting Step will override this value.

Declaration
public int TickDistance { get; set; }
Property Value
Type Description
intGets or sets the pixel distance between axis ticks. It is used to calculate the number of visible ticks depending on the available space. Set to 100 by default; Setting Step will override this value.

Tickslink

Gets or sets the ticks configuration.

Declaration
public RadzenTicks Ticks { get; set; }
Property Value
Type Description
RadzenTicksGets or sets the ticks configuration.

Titlelink

Gets or sets the title configuration.

Declaration
public RadzenAxisTitle Title { get; set; }
Property Value
Type Description
RadzenAxisTitleGets or sets the title configuration.

Visiblelink

Gets or sets a value indicating whether this AxisBase is visible.

Declaration
public bool Visible { get; set; }
Property Value
Type Description
boolGets or sets a value indicating whether this AxisBase is visible.

Methods

ShouldRefreshChartlink

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 🗙