alexa
menu

Blazor Toolkit

    Show / Hide Table of Contents

    Class ChartTooltipTextStyle

    Provides options to customize the text style of the tooltip.

    Inheritance
    System.Object
    SfBaseComponent
    ChartSubComponent
    ChartDefaultFont
    ChartTooltipTextStyle
    Implements
    System.IAsyncDisposable
    Inherited Members
    ChartDefaultFont.FontStyle
    ChartDefaultFont.Opacity
    ChartDefaultFont.TextAlignment
    ChartDefaultFont.TextOverflow
    SfBaseComponent.DisposeAsync()
    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
    ChartDefaultFont.Color
    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
    ChartDefaultFont.FontFamily
    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., bold, 400). Defaults to theme value.

    Overrides
    ChartDefaultFont.FontWeight
    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
    ChartDefaultFont.Size
    Examples
    <ChartTooltipTextStyle Size="15px" />

    Implements

    System.IAsyncDisposable
    Back to top Generated by DocFX
    Copyright © 2001 - 2026 Syncfusion Inc. All Rights Reserved