menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class AccumulationChartTooltipTextStyle - Blazor API Reference | Syncfusion

    Show / Hide Table of Contents

    Class AccumulationChartTooltipTextStyle

    Gets and sets the Textstyle of the Accumulation chart's tooltip.

    Inheritance
    System.Object
    ChartCommonFont
    AccumulationChartTooltipTextStyle
    Inherited Members
    ChartCommonFont.Color
    ChartCommonFont.FontStyle
    ChartCommonFont.Opacity
    ChartCommonFont.TextAlignment
    ChartCommonFont.TextOverflow
    Namespace: Syncfusion.Blazor.Charts
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class AccumulationChartTooltipTextStyle : ChartCommonFont

    Constructors

    AccumulationChartTooltipTextStyle()

    Declaration
    public AccumulationChartTooltipTextStyle()

    Properties

    FontFamily

    Gets or sets the font family of the tooltip text in the SfAccumulationChart.

    Declaration
    public override string FontFamily { get; set; }
    Property Value
    Type Description
    System.String

    A string representing the font family of the tooltip text. The default font family is determined by the SfAccumulationChart theme. By default, the theme is set to Bootstrap4 with tooltip font family Segoe UI.

    Overrides
    ChartCommonFont.FontFamily
    Remarks

    The font family accepts typical CSS font family syntax, allowing customization to match the desired text style.

    Examples
    // Example setting a custom font family for the tooltip text:
    <SfAccumulationChart>
        <AccumulationChartSeriesCollection>
            <AccumulationChartSeries DataSource="@StatisticsDetails" XName="Browser" YName="Users"></AccumulationChartSeries>
        </AccumulationChartSeriesCollection>
        <AccumulationChartTooltipSettings Enable="true">
            <AccumulationChartTooltipTextStyle FontFamily="Arial" />
        </AccumulationChartTooltipSettings>
    </SfAccumulationChart>

    FontWeight

    Gets or sets the font weight of the tooltip text in the SfAccumulationChart.

    Declaration
    public override string FontWeight { get; set; }
    Property Value
    Type Description
    System.String

    A string representing the font weight of the tooltip text. The default font weight is determined by the SfAccumulationChart theme. By default, the theme is set to Bootstrap4 with a tooltip font weight of Normal.

    Overrides
    ChartCommonFont.FontWeight
    Remarks

    The font weight can be a number (100 to 900), or a keyword such as 'normal', 'bold', 'bolder', or 'lighter'.

    Examples
    // Example setting a custom font weight for the tooltip text:
    <SfAccumulationChart>
        <AccumulationChartSeriesCollection>
            <AccumulationChartSeries DataSource="@StatisticsDetails" XName="Browser" YName="Users"></AccumulationChartSeries>
        </AccumulationChartSeriesCollection>
        <AccumulationChartTooltipSettings Enable="true">
            <AccumulationChartTooltipTextStyle FontWeight="bold" />
        </AccumulationChartTooltipSettings>
    </SfAccumulationChart>

    Size

    Gets or sets the font size of the tooltip text in the SfAccumulationChart.

    Declaration
    public override string Size { get; set; }
    Property Value
    Type Description
    System.String

    A string representing the font size of the tooltip text. The default size is determined by the SfAccumulationChart theme. By default, the theme is set to Bootstrap4 with a tooltip text size of 13px.

    Overrides
    ChartCommonFont.Size
    Remarks

    This property accepts standard CSS font-size specifications, such as values in 'px'.

    Examples
    // Example setting a custom font size for the tooltip text:
    <SfAccumulationChart>
        <AccumulationChartSeriesCollection>
            <AccumulationChartSeries DataSource="@StatisticsDetails" XName="Browser" YName="Users"></AccumulationChartSeries>
        </AccumulationChartSeriesCollection>
        <AccumulationChartTooltipSettings Enable="true">
            <AccumulationChartTooltipTextStyle Size="16px" />
        </AccumulationChartTooltipSettings>
    </SfAccumulationChart>

    Methods

    BuildRenderTree(RenderTreeBuilder)

    Declaration
    protected override void BuildRenderTree(RenderTreeBuilder __builder)
    Parameters
    Type Name Description
    Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved