Class ChartTooltipTextStyle
Provides options to customize the text style of the tooltip.
Implements
System.IAsyncDisposable
Inherited Members
Namespace: Syncfusion.Blazor.Toolkit.Charts
Assembly: Syncfusion.Blazor.Toolkit.dll
Syntax
public class ChartTooltipTextStyle : ChartDefaultFont, IAsyncDisposable, ISubcomponentTracker, IChartDefaultFont
Remarks
Set font size, family, weight, color, and style for tooltip text. Values default to theme settings if empty.
Constructors
ChartTooltipTextStyle()
Declaration
public ChartTooltipTextStyle()
Properties
Color
Gets or sets the font color of the tooltip text.
Declaration
public override string Color { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String | CSS color string (hex/rgba). Defaults to theme value (e.g., rgba(249, 250, 251, 1)). |
Overrides
Examples
<ChartTooltipTextStyle Color="#d1d5db" />
FontFamily
Gets or sets the font family of the tooltip text.
Declaration
public override string FontFamily { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String | The font family string. Defaults to the theme's font family (e.g., Roboto in Fluent). |
Overrides
Examples
<ChartTooltipTextStyle FontFamily="Inter, Roboto, Arial" />
FontWeight
Gets or sets the font weight of the tooltip text.
Declaration
public override string FontWeight { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String | The font weight (e.g., |
Overrides
Examples
<ChartTooltipTextStyle FontWeight="600" />
Size
Gets or sets the font size for the tooltip text.
Declaration
public override string Size { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String | A string representing the font size. Defaults to 12px if not set (theme fallback). |
Overrides
Examples
<ChartTooltipTextStyle Size="15px" />
Implements
System.IAsyncDisposable