Class AxisBase
Base class for an axis in RadzenChart.
Inheritance
Inherited Members
Namespace: Radzen.Blazor
Assembly: Radzen.Blazor.dll
Syntax
public abstract class AxisBase : RadzenChartComponentBase, IComponent, IHandleEvent, IHandleAfterRender, IChartAxis
Constructors
AxisBase()
Base class for an axis in RadzenChart.
Declaration
protected AxisBase()
Properties
ChildContent
Gets or sets the child content.
Declaration
[Parameter]
public RenderFragment ChildContent { get; set; }
Property Value
Type | Description |
---|---|
RenderFragment | The child content. |
FormatString
Gets or sets the format string used to display the axis values.
Declaration
[Parameter]
public string FormatString { get; set; }
Property Value
Type | Description |
---|---|
string | The format string. |
Formatter
Gets or sets a formatter function that formats the axis values.
Declaration
[Parameter]
public Func<object, string> Formatter { get; set; }
Property Value
Type | Description |
---|---|
Func<object, string> | The formatter. |
GridLines
Gets or sets the grid lines configuration of the current axis.
Declaration
public RadzenGridLines GridLines { get; set; }
Property Value
Type | Description |
---|---|
RadzenGridLines | The grid lines. |
LabelAutoRotation
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
[Parameter]
public double? LabelAutoRotation { get; set; }
Property Value
Type | Description |
---|---|
double? |
LabelRotation
Specifies the label rotation angle in degrees. Set to null
by default which means no rotation is applied. Has higher precedence than LabelAutoRotation.
Declaration
[Parameter]
public double? LabelRotation { get; set; }
Property Value
Type | Description |
---|---|
double? |
LineType
Gets or sets the type of the line used to display the axis.
Declaration
[Parameter]
public LineType LineType { get; set; }
Property Value
Type | Description |
---|---|
LineType | The type of the line. |
Max
Specifies the maximum value of the axis.
Declaration
[Parameter]
public object Max { get; set; }
Property Value
Type | Description |
---|---|
object | The maximum. |
Min
Specifies the minimum value of the axis.
Declaration
[Parameter]
public object Min { get; set; }
Property Value
Type | Description |
---|---|
object | The minimum. |
Step
Specifies the step of the axis.
Declaration
[Parameter]
public object Step { get; set; }
Property Value
Type | Description |
---|---|
object |
Stroke
Gets or sets the stroke (line color) of the axis.
Declaration
[Parameter]
public string Stroke { get; set; }
Property Value
Type | Description |
---|---|
string | The stroke. |
StrokeWidth
Gets or sets the pixel width of axis.
Declaration
[Parameter]
public double StrokeWidth { get; set; }
Property Value
Type | Description |
---|---|
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.
Declaration
[Parameter]
public int TickDistance { get; set; }
Property Value
Type | Description |
---|---|
int | The desired pixel distance between ticks. |
Ticks
Gets or sets the ticks configuration.
Declaration
public RadzenTicks Ticks { get; set; }
Property Value
Type | Description |
---|---|
RadzenTicks | The ticks. |
Title
Gets or sets the title configuration.
Declaration
public RadzenAxisTitle Title { get; set; }
Property Value
Type | Description |
---|---|
RadzenAxisTitle | The title. |
Visible
Gets or sets a value indicating whether this AxisBase is visible.
Declaration
[Parameter]
public bool Visible { get; set; }
Property Value
Type | Description |
---|---|
bool |
|
Methods
ShouldRefreshChart(ParameterView)
Determines if RadzenChart should render.
Declaration
protected override bool ShouldRefreshChart(ParameterView parameters)
Parameters
Type | Name | Description |
---|---|---|
ParameterView | parameters | The parameters. |
Returns
Type | Description |
---|---|
bool |