menu

Blazor

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

    Show / Hide Table of Contents

    Class ChartTooltipBorder

    Provides options to customize the border of the tooltip.

    Inheritance
    System.Object
    ChartSubComponent
    ChartDefaultBorder
    ChartTooltipBorder
    Inherited Members
    ChartDefaultBorder.Color
    Namespace: Syncfusion.Blazor.Charts
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class ChartTooltipBorder : ChartDefaultBorder, ISubcomponentTracker

    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 double value representing the width of the tooltip border. The default value is 0.

    Overrides
    ChartDefaultBorder.Width
    Remarks

    This property is used to specify the thickness of the tooltip's border.

    Examples
    // This example demonstrates how to customize the tooltip border width in a chart.
    <SfChart>
        <ChartTooltipSettings Enable="true">
            <ChartTooltipBorder Width="2" Color="red"></ChartTooltipBorder>
        </ChartTooltipSettings>
        <ChartSeriesCollection>
            <ChartSeries DataSource="@Data" XName="XValue" YName="YValue">
                <ChartMarker Visible="true" Width="10" Height="10" />
            </ChartSeries>
        </ChartSeriesCollection>
    </SfChart>
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved