Skip to content
ChartForgeX
Class

HtmlChartTooltipOptions

ChartForgeX.Interactivity.Html

Namespace
ChartForgeX.Interactivity.Html
Assembly
ChartForgeX.Interactivity.Html
Modifiers
sealed
Attributes
Fluent

Configures HTML tooltip content, acquisition, timing and positioning without enabling interaction features.

Inheritance

  • object
  • HtmlChartTooltipOptions

Usage

Explore 30 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Accepted by parameters 16

Constructors

public HtmlChartTooltipOptions() #

Properties

public bool PinOnSelect { get; set; } #

Gets or sets whether selecting a mark pins its readout. The default is true. Disabling pinning retains ordinary pointer and keyboard tooltips.

public HtmlChartTooltipMode Mode { get; set; } #

Gets or sets the readout mode. The default is HtmlChartTooltipMode.Auto. Shared-x readouts fall back to one target when comparable observations are unavailable.

public HtmlChartTooltipRange Range { get; set; } #

Gets or sets the pointer acquisition range. The default is HtmlChartTooltipRange.Auto: nearest category for line, area and bar charts, or nearest observation for other Cartesian charts, within 120 CSS pixels. Native hits, keyboard focus, and pinned readouts retain their target semantics. The ChartInteractionFeatures.Tooltips feature controls whether tooltips are enabled.

public int DelayMilliseconds { get; set; } #

Gets or sets how long a pointer target must remain acquired before its tooltip appears, in milliseconds. The default is zero (immediate). Values must be non-negative. Movement within the same target updates the tooltip position without restarting the delay. Keyboard focus and explicit pins are immediate.

public string? Template { get; set; } #

Gets or sets an optional plain-text tooltip template for saved HTML reports. The placeholders {title}, {series}, {category} and {value} insert the current formatted facts. Markup is displayed as text, never executed. A browser callback assigned to the chart section's cfxTooltipRenderer property takes precedence.

public HtmlChartTooltipPositionOptions Position { get; } #

Gets the anchor, ordered placement and CSS pixel offset options.

Extension Methods

public static HtmlChartTooltipOptions DelayMilliseconds(HtmlChartTooltipOptions htmlChartTooltipOptions, int value) #

Sets HtmlChartTooltipOptions.DelayMilliseconds: Gets or sets how long a pointer target must remain acquired before its tooltip appears, in milliseconds. The default is zero (immediate). Values must be non-negative. Movement within the same target updates the tooltip position without restarting the delay. Keyboard focus and explicit pins are immediate.

Parameters

htmlChartTooltipOptions ChartForgeX.Interactivity.Html.HtmlChartTooltipOptions required
The instance.
value int required
The value.

Returns

HtmlChartTooltipOptions The same instance.

Examples

// C# initializer or property                                                                        // C# fluent
new global::ChartForgeX.Interactivity.Html.HtmlChartTooltipOptions { DelayMilliseconds = value };    htmlChartTooltipOptions.DelayMilliseconds(value);
public static HtmlChartTooltipOptions Mode(HtmlChartTooltipOptions htmlChartTooltipOptions, HtmlChartTooltipMode value) #

Sets HtmlChartTooltipOptions.Mode: Gets or sets the readout mode. The default is HtmlChartTooltipMode.Auto. Shared-x readouts fall back to one target when comparable observations are unavailable.

Parameters

htmlChartTooltipOptions ChartForgeX.Interactivity.Html.HtmlChartTooltipOptions required
The instance.
value ChartForgeX.Interactivity.Html.HtmlChartTooltipMode required
The value.

Returns

HtmlChartTooltipOptions The same instance.

Examples

// C# initializer or property                                                           // C# fluent
new global::ChartForgeX.Interactivity.Html.HtmlChartTooltipOptions { Mode = value };    htmlChartTooltipOptions.Mode(value);
public static HtmlChartTooltipOptions PinOnSelect(HtmlChartTooltipOptions htmlChartTooltipOptions, bool value = true) #

Sets HtmlChartTooltipOptions.PinOnSelect: Gets or sets whether selecting a mark pins its readout. The default is true. Disabling pinning retains ordinary pointer and keyboard tooltips.

Parameters

htmlChartTooltipOptions ChartForgeX.Interactivity.Html.HtmlChartTooltipOptions required
The instance.
value bool = true optional
The value; true when omitted.

Returns

HtmlChartTooltipOptions The same instance.

Examples

// C# initializer or property                                                                  // C# fluent
new global::ChartForgeX.Interactivity.Html.HtmlChartTooltipOptions { PinOnSelect = value };    htmlChartTooltipOptions.PinOnSelect(value);
public static HtmlChartTooltipOptions Position(HtmlChartTooltipOptions htmlChartTooltipOptions, Action<HtmlChartTooltipPositionOptions> configure) #

Configures HtmlChartTooltipOptions.Position in place: Gets the anchor, ordered placement and CSS pixel offset options.

Parameters

htmlChartTooltipOptions ChartForgeX.Interactivity.Html.HtmlChartTooltipOptions required
The instance.
configure System.Action<ChartForgeX.Interactivity.Html.HtmlChartTooltipPositionOptions> required
Configures the value.

Returns

HtmlChartTooltipOptions The same instance.
public static HtmlChartTooltipOptions Range(HtmlChartTooltipOptions htmlChartTooltipOptions, HtmlChartTooltipRange value) #

Sets HtmlChartTooltipOptions.Range: Gets or sets the pointer acquisition range. The default is HtmlChartTooltipRange.Auto: nearest category for line, area and bar charts, or nearest observation for other Cartesian charts, within 120 CSS pixels. Native hits, keyboard focus, and pinned readouts retain their target semantics. The ChartInteractionFeatures.Tooltips feature controls whether tooltips are enabled.

Parameters

htmlChartTooltipOptions ChartForgeX.Interactivity.Html.HtmlChartTooltipOptions required
The instance.
value ChartForgeX.Interactivity.Html.HtmlChartTooltipRange required
The value.

Returns

HtmlChartTooltipOptions The same instance.

Examples

// C# initializer or property                                                            // C# fluent
new global::ChartForgeX.Interactivity.Html.HtmlChartTooltipOptions { Range = value };    htmlChartTooltipOptions.Range(value);
public static HtmlChartTooltipOptions Template(HtmlChartTooltipOptions htmlChartTooltipOptions, string? value) #

Sets HtmlChartTooltipOptions.Template: Gets or sets an optional plain-text tooltip template for saved HTML reports. The placeholders {title}, {series}, {category} and {value} insert the current formatted facts. Markup is displayed as text, never executed. A browser callback assigned to the chart section's cfxTooltipRenderer property takes precedence.

Parameters

htmlChartTooltipOptions ChartForgeX.Interactivity.Html.HtmlChartTooltipOptions required
The instance.
value string? required
The value.

Returns

HtmlChartTooltipOptions The same instance.

Examples

// C# initializer or property                                                               // C# fluent
new global::ChartForgeX.Interactivity.Html.HtmlChartTooltipOptions { Template = value };    htmlChartTooltipOptions.Template(value);