Class LinearGaugeTooltipSettings
Defines the annotation element for an axis in linear gauge component.
Inheritance
Namespace: Syncfusion.Blazor.LinearGauge
Assembly: Syncfusion.Blazor.dll
Syntax
public class LinearGaugeTooltipSettings : OwningComponentBase
Constructors
LinearGaugeTooltipSettings()
Declaration
public LinearGaugeTooltipSettings()
Properties
ChildContent
Gets or sets the content of the UI element.
Declaration
public RenderFragment ChildContent { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.RenderFragment | A Microsoft.AspNetCore.Components.RenderFragment representing the child content of the tooltip. |
Remarks
Use this property to include custom UI elements as content within the tooltip.
Enable
Gets or sets a value indicating whether or not to enable the visibility of tooltip.
Declaration
public bool Enable { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | A boolean indicating the visibility of the tooltip. |
Remarks
Set this to true
to make the tooltip visible, or false
to hide it.
EnableAnimation
Gets or sets a value indicating whether or not to enable the animation for the tooltip while moving from one place to another.
Declaration
public bool EnableAnimation { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | A boolean indicating whether animation is enabled for the tooltip. The default is |
Remarks
Enable smooth transitions by setting this property to true
.
Fill
Gets or sets the color of the tooltip. This property accepts value in hex code, rgba string as a valid CSS color string.
Declaration
public string Fill { get; set; }
Property Value
Type | Description |
---|---|
System.String | A string specifying the background color of the tooltip. |
Remarks
Customize tooltip appearance by specifying its color using standard CSS color formats.
Format
Gets or sets the format of the tooltip content in the linear gauge.
Declaration
public string Format { get; set; }
Property Value
Type | Description |
---|---|
System.String | A string that defines the content format of the tooltip. |
Remarks
Use placeholders like ${value} to format the displayed data dynamically.
Position
Gets or sets the position type to place the tooltip in the axis.
Declaration
public TooltipPosition Position { get; set; }
Property Value
Type | Description |
---|---|
TooltipPosition | A TooltipPosition value that determines the tooltip's position. The default is End. |
Remarks
This property controls where on the axis the tooltip is shown (Start, Center, End).
ShowAtMousePosition
Gets or sets a value indicating whether or not to show the tooltip at the mouse pointer position.
Declaration
public bool ShowAtMousePosition { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | A boolean specifying whether to display the tooltip at the mouse pointer location. |
Remarks
Set this to true
to position the tooltip at the mouse pointer, instead of the default position.
Template
Gets or sets the custom template to format the tooltip content. Use ${x} and ${y} as placeholder text to display the corresponding data point.
Declaration
public string Template { get; set; }
Property Value
Type | Description |
---|---|
System.String | A string that contains the template format for tooltip content. |
Remarks
This enables dynamic content formatting within tooltips using placeholders for variable data.
TooltipTemplate
Gets or sets the tooltip template content for display.
Declaration
public RenderFragment TooltipTemplate { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.AspNetCore.Components.RenderFragment | A Microsoft.AspNetCore.Components.RenderFragment that defines the custom template for the tooltip. |
Remarks
This allows for customized display layouts within the tooltip, using templating.
Type
Gets or sets the option to display the tooltip for range, annotation, or pointer.
Declaration
public string[] Type { get; set; }
Property Value
Type | Description |
---|---|
System.String[] | An array of strings indicating the elements for which tooltips are shown which takes the values such as Pointer and Range. |
Remarks
Allows customization of tooltip visibility, enabling selective display on range, annotation, or pointer elements within the gauge.
Methods
BuildRenderTree(RenderTreeBuilder)
Declaration
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder | __builder |
Dispose(Boolean)
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 |
---|---|---|
System.Boolean | disposing |
OnInitializedAsync()
OnInitializedAsync method is called when the component has received its initial parameters.
Declaration
protected override Task OnInitializedAsync()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | System.Threading.Tasks.Task representing the asynchronous operation. |
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 |
---|---|
System.Threading.Tasks.Task | System.Threading.Tasks.Task representing the asynchronous operation. |