Class LinearGaugeAxis
Defines the annotation element for an axis in linear gauge component.
Inherited Members
Namespace: Syncfusion.Blazor.LinearGauge
Assembly: Syncfusion.Blazor.dll
Syntax
public class LinearGaugeAxis : SfOwningComponentBase, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Remarks
The LinearGaugeAxis class defines properties and methods for configuring an axis in a linear gauge, including its scale, orientation, tick marks, and labels. It serves as a fundamental component for presenting numerical data in linear form within the gauge.
Constructors
LinearGaugeAxis()
Declaration
public LinearGaugeAxis()
Properties
ChildContent
Gets or sets the content of the UI element.
Declaration
[Parameter]
public RenderFragment ChildContent { get; set; }
Property Value
| Type | Description |
|---|---|
| RenderFragment | A RenderFragment encapsulating the child content for customizing the axis. |
Remarks
This property allows embedding elements or components to further customize the appearance of the axis.
IsInversed
Gets or sets a value indicating whether or not to inverse the axis.
Declaration
[Parameter]
public bool IsInversed { get; set; }
Property Value
| Type | Description |
|---|---|
| bool | A boolean value specifying whether the axis direction is reversed. Default is |
Remarks
Inversing the axis can be useful for changing the orientation of scale representation in the gauge.
Maximum
Gets or sets the maximum value for the axis.
Declaration
[Parameter]
public double Maximum { get; set; }
Property Value
| Type | Description |
|---|---|
| double | A double specifying the upper bound of the axis range. Default is 100. |
Remarks
This property defines the maximum limit of values displayed on the axis.
Minimum
Gets or sets the minimum value for the axis.
Declaration
[Parameter]
public double Minimum { get; set; }
Property Value
| Type | Description |
|---|---|
| double | A double specifying the lower bound of the axis range. |
Remarks
This property defines the minimum limit of values displayed on the axis.
OpposedPosition
Gets or sets a value indicating whether or not to enable the opposed position of the axis in the linear gauge..
Declaration
[Parameter]
public bool OpposedPosition { get; set; }
Property Value
| Type | Description |
|---|---|
| bool | A boolean value specifying whether the axis should be displayed on the opposite side. Default is |
Remarks
Opposed position can be used to align the axis on the opposite side of the default configuration.
ShowLastLabel
Gets or sets a value indicating whether or not to show the last label in the linear gauge axis.
Declaration
[Parameter]
public bool ShowLastLabel { get; set; }
Property Value
| Type | Description |
|---|---|
| bool | A boolean value that specifies whether the last label should be shown. Default is |
Remarks
Showing the last label is helpful when you want to provide clear indicators for endpoints of the scale.
Methods
BuildRenderTree(RenderTreeBuilder)
Declaration
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
| Type | Name | Description |
|---|---|---|
| RenderTreeBuilder | __builder |
Overrides
Dispose(bool)
Disposes the property values during the destroy of the component that is hold up for the execution of the component.
Declaration
protected override void Dispose(bool disposing)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | disposing |
Overrides
OnInitializedAsync()
OnInitializedAsync method is called when the component has received its initial parameters.
Declaration
protected override Task OnInitializedAsync()
Returns
| Type | Description |
|---|---|
| Task | Task representing the asynchronous operation. |
Overrides
OnParametersSetAsync()
OnParametersSetAsync is a lifecycle method that is invoked when the component has received parameters, and the incoming values have been assigned to the properties.
Declaration
protected override Task OnParametersSetAsync()
Returns
| Type | Description |
|---|---|
| Task | Task representing the asynchronous operation. |