Table of Contents

Class AxisBase

Namespace
Radzen.Blazor
Assembly
Radzen.Blazor.dll

Base class for an axis in RadzenChart.

public abstract class AxisBase : RadzenChartComponentBase, IComponent, IHandleEvent, IHandleAfterRender, IChartAxis
Inheritance
AxisBase
Implements
Derived
Inherited Members

Constructors

AxisBase()

protected AxisBase()

Properties

ChildContent

Gets or sets the child content.

[Parameter]
public RenderFragment ChildContent { get; set; }

Property Value

RenderFragment

The child content.

FormatString

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

[Parameter]
public string FormatString { get; set; }

Property Value

string

The format string.

Formatter

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

[Parameter]
public Func<object, string> Formatter { get; set; }

Property Value

Func<object, string>

The formatter.

GridLines

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

public RadzenGridLines GridLines { get; set; }

Property Value

RadzenGridLines

The grid lines.

LineType

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

[Parameter]
public LineType LineType { get; set; }

Property Value

LineType

The type of the line.

Max

Specifies the maximum value of the axis.

[Parameter]
public object Max { get; set; }

Property Value

object

The maximum.

Min

Specifies the minimum value of the axis.

[Parameter]
public object Min { get; set; }

Property Value

object

The minimum.

Step

Specifies the step of the axis.

[Parameter]
public object Step { get; set; }

Property Value

object

Stroke

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

[Parameter]
public string Stroke { get; set; }

Property Value

string

The stroke.

StrokeWidth

Gets or sets the pixel width of axis.

[Parameter]
public double StrokeWidth { get; set; }

Property Value

double

The width of the stroke.

TickDistance

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.

[Parameter]
public int TickDistance { get; set; }

Property Value

int

The desired pixel distance between ticks.

Ticks

Gets or sets the ticks configuration.

public RadzenTicks Ticks { get; set; }

Property Value

RadzenTicks

The ticks.

Title

Gets or sets the title configuration.

public RadzenAxisTitle Title { get; set; }

Property Value

RadzenAxisTitle

The title.

Visible

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

[Parameter]
public bool Visible { get; set; }

Property Value

bool

true if visible; otherwise, false.

Methods

ShouldRefreshChart(ParameterView)

protected override bool ShouldRefreshChart(ParameterView parameters)

Parameters

parameters ParameterView

Returns

bool