Class AxisBase
Base class for an axis in RadzenChart.
Implements
Inherited Members
Namespace: Radzen.Blazor
Assembly: Radzen.Blazor.dll
Syntax
public abstract class AxisBase : RadzenChartComponentBase, IChartAxis
Properties
ChildContent
Gets or sets the child content.
Declaration
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
public string FormatString { get; set; }
Property Value
Type | Description |
---|---|
System.String | The format string. |
Formatter
Gets or sets a formatter function that formats the axis values.
Declaration
public Func<object, string> Formatter { get; set; }
Property Value
Type | Description |
---|---|
Func<System.Object, System.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
public double? LabelAutoRotation { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.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
public double? LabelRotation { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Double> |
LineType
Gets or sets the type of the line used to display the axis.
Declaration
public LineType LineType { get; set; }
Property Value
Type | Description |
---|---|
LineType | The type of the line. |
Max
Specifies the maximum value of the axis.
Declaration
public object Max { get; set; }
Property Value
Type | Description |
---|---|
System.Object | The maximum. |
Min
Specifies the minimum value of the axis.
Declaration
public object Min { get; set; }
Property Value
Type | Description |
---|---|
System.Object | The minimum. |
Step
Specifies the step of the axis.
Declaration
public object Step { get; set; }
Property Value
Type | Description |
---|---|
System.Object |
Stroke
Gets or sets the stroke (line color) of the axis.
Declaration
public string Stroke { get; set; }
Property Value
Type | Description |
---|---|
System.String | The stroke. |
StrokeWidth
Gets or sets the pixel width of axis.
Declaration
public double StrokeWidth { get; set; }
Property Value
Type | Description |
---|---|
System.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
public int TickDistance { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 | 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
public bool Visible { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
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 |
---|---|
System.Boolean |