Base class for an axis in RadzenChart.
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
public abstract class AxisBase : RadzenChartComponentBase, IComponent, IHandleEvent, IHandleAfterRender, IChartAxisBase class for an axis in RadzenChart.
protected AxisBase()Gets or sets the child content.
public RenderFragment ChildContent { get; set; }
| Type | Description |
|---|---|
| RenderFragment | Gets or sets the child content. |
Specifies the value on the perpendicular axis where this axis should cross. When set, the axis line and ticks are positioned at the corresponding location instead of the chart edge. For example, setting CrossesAt="0" on the category axis positions it where 0 is on the value axis.
public object CrossesAt { get; set; }
| Type | Description |
|---|---|
| object | Specifies the value on the perpendicular axis where this axis should cross. When set, the axis line and ticks are positioned at the corresponding location instead of the chart edge. For example, setting CrossesAt="0" on the category axis positions it where 0 is on the value axis. |
Gets or sets the crosshair configuration of the current axis.
public RadzenAxisCrosshair Crosshair { get; set; }
| Type | Description |
|---|---|
| RadzenAxisCrosshair | Gets or sets the crosshair configuration of the current axis. |
Gets or sets the format string used to display the axis values.
public string FormatString { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the format string used to display the axis values. |
Gets or sets a formatter function that formats the axis values.
public Func<object, string> Formatter { get; set; }
| Type | Description |
|---|---|
| Func<object, string> | Gets or sets a formatter function that formats the axis values. |
Gets or sets the grid lines configuration of the current axis.
public RadzenGridLines GridLines { get; set; }
| Type | Description |
|---|---|
| RadzenGridLines | Gets or sets the grid lines configuration of the current axis. |
Gets or sets a value indicating whether this axis is inverted. When true, the axis direction is reversed: values increase in the opposite visual direction and categories are displayed in reverse order.
public bool Inverted { get; set; }
| Type | Description |
|---|---|
| bool | Gets or sets a value indicating whether this axis is inverted. When true, the axis direction is reversed: values increase in the opposite visual direction and categories are displayed in reverse order. |
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.
public double? LabelAutoRotation { get; set; }
| 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. |
Specifies the label rotation angle in degrees. Set to null by default which means no rotation is applied. Has higher precedence than LabelAutoRotation.
public double? LabelRotation { get; set; }
| 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. |
Gets or sets the type of the line used to display the axis.
public LineType LineType { get; set; }
| Type | Description |
|---|---|
| LineType | Gets or sets the type of the line used to display the axis. |
Gets or sets a value indicating whether this axis uses a logarithmic scale. When true, the axis displays values on a logarithmic scale (base 10 by default). Only positive values are supported. Set LogarithmicBase to change the base.
public bool Logarithmic { get; set; }
| Type | Description |
|---|---|
| bool | Gets or sets a value indicating whether this axis uses a logarithmic scale. When true, the axis displays values on a logarithmic scale (base 10 by default). Only positive values are supported. Set LogarithmicBase to change the base. |
Gets or sets the base of the logarithmic scale. Default is 10. Only used when Logarithmic is true.
public double LogarithmicBase { get; set; }
| Type | Description |
|---|---|
| double | Gets or sets the base of the logarithmic scale. Default is 10. Only used when Logarithmic is true. |
Specifies the maximum value of the axis.
public object Max { get; set; }
| Type | Description |
|---|---|
| object | Specifies the maximum value of the axis. |
Specifies the minimum value of the axis.
public object Min { get; set; }
| Type | Description |
|---|---|
| object | Specifies the minimum value of the axis. |
Specifies the step of the axis.
public object Step { get; set; }
| Type | Description |
|---|---|
| object | Specifies the step of the axis. |
Gets or sets the stroke (line color) of the axis.
public string Stroke { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the stroke (line color) of the axis. |
Gets or sets the pixel width of axis.
public double StrokeWidth { get; set; }
| Type | Description |
|---|---|
| double | Gets or sets the pixel width of axis. |
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.
public int TickDistance { get; set; }
| Type | Description |
|---|---|
| int | 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. |
Gets or sets the ticks configuration.
public RadzenTicks Ticks { get; set; }
| Type | Description |
|---|---|
| RadzenTicks | Gets or sets the ticks configuration. |
Gets or sets the title configuration.
public RadzenAxisTitle Title { get; set; }
| Type | Description |
|---|---|
| RadzenAxisTitle | Gets or sets the title configuration. |
Gets or sets a value indicating whether this AxisBase is visible.
public bool Visible { get; set; }
| Type | Description |
|---|---|
| bool | Gets or sets a value indicating whether this AxisBase is visible. |
Gets or sets the width of the axis in pixels. If not set, the width is calculated automatically based on the axis content. The parameter only has effect for vertically rendered value axes. It is ignored on the category axis in normal charts and on value axes in inverted (bar) charts
public int? Width { get; set; }
| Type | Description |
|---|---|
| int? | Gets or sets the width of the axis in pixels. If not set, the width is calculated automatically based on the axis content. The parameter only has effect for vertically rendered value axes. It is ignored on the category axis in normal charts and on value axes in inverted (bar) charts |
protected override bool ShouldRefreshChart(ParameterView parameters)
| Type | Name | Description |
|---|---|---|
| ParameterView | parameters |
| Type | Description |
|---|---|
| bool |