Class ChartTooltipBorder
Provides options to customize the border of the tooltip.
Implements
System.IAsyncDisposable
Namespace: Syncfusion.Blazor.Toolkit.Charts
Assembly: Syncfusion.Blazor.Toolkit.dll
Syntax
public class ChartTooltipBorder : ChartDefaultBorder, IAsyncDisposable, ISubcomponentTracker
Remarks
This component is used within ChartTooltipSettings to customize the tooltip border (e.g., color and thickness). It cascades its configuration to the parent tooltip settings.
Examples
<SfChart>
<ChartTooltipSettings Enable="true">
<ChartTooltipBorder Width="2" Color="red"></ChartTooltipBorder>
</ChartTooltipSettings>
</SfChart>
Constructors
ChartTooltipBorder()
Declaration
public ChartTooltipBorder()
Properties
Width
Gets or sets the border width for the tooltip.
Declaration
public override double Width { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Double | A System.Double representing the width of the tooltip border. The default value is 0. |
Overrides
Remarks
Use this property to control the thickness of the tooltip's border.
Examples
<SfChart>
<ChartTooltipSettings Enable="true">
<ChartTooltipBorder Width="2" Color="red"></ChartTooltipBorder>
</ChartTooltipSettings>
</SfChart>
Methods
OnInitialized()
Initializes the component and registers the border settings with the parent tooltip.
Declaration
protected override void OnInitialized()
Remarks
Called by the framework when the component is initialized.
Implements
System.IAsyncDisposable