menu

ASP.NET MVC - EJ2

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class ChartTooltipSettingsBuilder - ASP.NETMVC-EJ2 API Reference | Syncfusion

    Show / Hide Table of Contents

    Class ChartTooltipSettingsBuilder

    Inheritance
    System.Object
    Syncfusion.EJ2.ControlBuilder
    ChartTooltipSettingsBuilder
    Namespace: Syncfusion.EJ2.Charts
    Assembly: Syncfusion.EJ2.dll
    Syntax
    public class ChartTooltipSettingsBuilder : ControlBuilder

    Constructors

    ChartTooltipSettingsBuilder()

    Declaration
    public ChartTooltipSettingsBuilder()

    ChartTooltipSettingsBuilder(ChartTooltipSettings)

    Declaration
    public ChartTooltipSettingsBuilder(ChartTooltipSettings model)
    Parameters
    Type Name Description
    ChartTooltipSettings model

    Methods

    Border(ChartTooltipBorder)

    Options for customizing the tooltip borders, including the color and width of the tooltip's border.

    Declaration
    public ChartTooltipSettingsBuilder Border(ChartTooltipBorder value)
    Parameters
    Type Name Description
    ChartTooltipBorder value
    Returns
    Type
    ChartTooltipSettingsBuilder

    Border(Action<ChartBorderBuilder>)

    Declaration
    public ChartTooltipSettingsBuilder Border(Action<ChartBorderBuilder> border)
    Parameters
    Type Name Description
    System.Action<ChartBorderBuilder> border
    Returns
    Type
    ChartTooltipSettingsBuilder

    Duration(Double)

    Duration of the tooltip animation, specified in milliseconds.

    Declaration
    public ChartTooltipSettingsBuilder Duration(double value)
    Parameters
    Type Name Description
    System.Double value
    Returns
    Type
    ChartTooltipSettingsBuilder

    Enable(Boolean)

    If set to true, enables tooltips for the data points.

    Declaration
    public ChartTooltipSettingsBuilder Enable(bool value)
    Parameters
    Type Name Description
    System.Boolean value
    Returns
    Type
    ChartTooltipSettingsBuilder

    EnableAnimation(Boolean)

    If set to true, the tooltip will animate as it moves from one point to another.

    Declaration
    public ChartTooltipSettingsBuilder EnableAnimation(bool value)
    Parameters
    Type Name Description
    System.Boolean value
    Returns
    Type
    ChartTooltipSettingsBuilder

    EnableHighlight(Boolean)

    When set to true, highlights all points in the hovered series while dimming points in other series for better focus and clarity.

    Declaration
    public ChartTooltipSettingsBuilder EnableHighlight(bool value)
    Parameters
    Type Name Description
    System.Boolean value
    Returns
    Type
    ChartTooltipSettingsBuilder

    EnableMarker(Boolean)

    If set to true, enables the marker in the chart tooltip.

    Declaration
    public ChartTooltipSettingsBuilder EnableMarker(bool value)
    Parameters
    Type Name Description
    System.Boolean value
    Returns
    Type
    ChartTooltipSettingsBuilder

    EnableTextWrap(Boolean)

    Wraps the tooltip's long text based on the available space.

    Note that this feature applies only to chart tooltips.

    Declaration
    public ChartTooltipSettingsBuilder EnableTextWrap(bool value)
    Parameters
    Type Name Description
    System.Boolean value
    Returns
    Type
    ChartTooltipSettingsBuilder

    FadeOutDuration(Double)

    Duration of the fade-out animation for hiding the tooltip, in milliseconds.

    Declaration
    public ChartTooltipSettingsBuilder FadeOutDuration(double value)
    Parameters
    Type Name Description
    System.Double value
    Returns
    Type
    ChartTooltipSettingsBuilder

    FadeOutMode(FadeOutMode)

    Specifies the mode for the fade-out animation when hiding the tooltip.

    Declaration
    public ChartTooltipSettingsBuilder FadeOutMode(FadeOutMode value)
    Parameters
    Type Name Description
    FadeOutMode value
    Returns
    Type
    ChartTooltipSettingsBuilder

    Fill(String)

    The fill color of the tooltip, specified as a valid CSS color string in hex or rgba format.

    Declaration
    public ChartTooltipSettingsBuilder Fill(string value)
    Parameters
    Type Name Description
    System.String value
    Returns
    Type
    ChartTooltipSettingsBuilder

    Format(String)

    Specifies the format for customizing the content of the tooltip.

    Declaration
    public ChartTooltipSettingsBuilder Format(string value)
    Parameters
    Type Name Description
    System.String value
    Returns
    Type
    ChartTooltipSettingsBuilder

    Header(String)

    Customizes the header text for the tooltip. By default, this property displays the series name.

    Declaration
    public ChartTooltipSettingsBuilder Header(string value)
    Parameters
    Type Name Description
    System.String value
    Returns
    Type
    ChartTooltipSettingsBuilder

    Location(Object)

    Specifies the location of the tooltip relative to the chart. If x is 20, the tooltip moves 20 pixels to the right of the chart.

    Declaration
    public ChartTooltipSettingsBuilder Location(object value)
    Parameters
    Type Name Description
    System.Object value
    Returns
    Type
    ChartTooltipSettingsBuilder

    Opacity(Double)

    The opacity of the tooltip, expressed as a numerical value.

    Declaration
    public ChartTooltipSettingsBuilder Opacity(double value)
    Parameters
    Type Name Description
    System.Double value
    Returns
    Type
    ChartTooltipSettingsBuilder

    Shared(Boolean)

    If set to true, a single tooltip will be displayed for each index.

    Declaration
    public ChartTooltipSettingsBuilder Shared(bool value)
    Parameters
    Type Name Description
    System.Boolean value
    Returns
    Type
    ChartTooltipSettingsBuilder

    ShowHeaderLine(Boolean)

    Specifies whether to display the header line in the tooltip.

    Declaration
    public ChartTooltipSettingsBuilder ShowHeaderLine(bool value)
    Parameters
    Type Name Description
    System.Boolean value
    Returns
    Type
    ChartTooltipSettingsBuilder

    ShowNearestPoint(Boolean)

    Specifies whether the nearest points should be included in the shared tooltip. By default, the nearest data points are displayed. Set this property to false to exclude the nearest point.

    Declaration
    public ChartTooltipSettingsBuilder ShowNearestPoint(bool value)
    Parameters
    Type Name Description
    System.Boolean value
    Returns
    Type
    ChartTooltipSettingsBuilder

    ShowNearestTooltip(Boolean)

    Enables or disables the display of tooltips for the nearest data point to the cursor.

    Declaration
    public ChartTooltipSettingsBuilder ShowNearestTooltip(bool value)
    Parameters
    Type Name Description
    System.Boolean value
    Returns
    Type
    ChartTooltipSettingsBuilder

    Template(String)

    A custom template used to format the tooltip content. Use ${x} and ${y} as placeholders for the corresponding data points.

    Declaration
    public ChartTooltipSettingsBuilder Template(string value)
    Parameters
    Type Name Description
    System.String value
    Returns
    Type
    ChartTooltipSettingsBuilder

    TextStyle(ChartTooltipTextStyle)

    This property defines the font family, size, style, weight, and color for the tooltip text.

    Declaration
    public ChartTooltipSettingsBuilder TextStyle(ChartTooltipTextStyle value)
    Parameters
    Type Name Description
    ChartTooltipTextStyle value
    Returns
    Type
    ChartTooltipSettingsBuilder

    TextStyle(Action<ChartFontBuilder>)

    Declaration
    public ChartTooltipSettingsBuilder TextStyle(Action<ChartFontBuilder> textStyle)
    Parameters
    Type Name Description
    System.Action<ChartFontBuilder> textStyle
    Returns
    Type
    ChartTooltipSettingsBuilder
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved