Skip to content
ChartForgeX
Struct

HtmlChartTooltipRange

ChartForgeX.Interactivity.Html

Namespace
ChartForgeX.Interactivity.Html
Assembly
ChartForgeX.Interactivity.Html
Base
ValueType
Implements
IEquatable<HtmlChartTooltipRange>
Modifiers
sealed

Controls how pointer movement acquires an HTML chart tooltip target.

Inheritance

  • ValueType
  • HtmlChartTooltipRange

Usage

Explore 12 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 7

Methods

Equals 2 overloads
public bool Equals(HtmlChartTooltipRange other) #

Returns whether another range has the same acquisition rule and distance.

Parameters

other ChartForgeX.Interactivity.Html.HtmlChartTooltipRange required

Returns

bool
public override bool Equals(object? obj) #

Returns whether an object is an equal tooltip range.

Parameters

obj object? required

Returns

bool
public override int GetHashCode() #

Returns a hash code for the acquisition rule and distance.

Returns

int
public static bool op_Equality(HtmlChartTooltipRange left, HtmlChartTooltipRange right) #

Compares two tooltip ranges for equality.

Parameters

left ChartForgeX.Interactivity.Html.HtmlChartTooltipRange required
right ChartForgeX.Interactivity.Html.HtmlChartTooltipRange required

Returns

bool
public static bool op_Inequality(HtmlChartTooltipRange left, HtmlChartTooltipRange right) #

Compares two tooltip ranges for inequality.

Parameters

left ChartForgeX.Interactivity.Html.HtmlChartTooltipRange required
right ChartForgeX.Interactivity.Html.HtmlChartTooltipRange required

Returns

bool
public static HtmlChartTooltipRange WithinDistance(double cssPixels) #

Creates a range that acquires a painted Cartesian observation within the given distance from its screen centre.

Parameters

cssPixels double required
A finite, non-negative distance in CSS pixels, independent of SVG scaling. Native hits remain eligible at zero.

Returns

HtmlChartTooltipRange The bounded pointer acquisition range.

Exceptions

  • ArgumentOutOfRangeException – The distance is negative or non-finite.

Properties

public static HtmlChartTooltipRange Exact { get; } #

Gets a range that requires a native hit on a painted target. This is also the default value of the struct.

public static HtmlChartTooltipRange Nearest { get; } #

Gets a range that acquires the nearest painted Cartesian observation anywhere inside the chart stage.

public static HtmlChartTooltipRange Auto { get; } #

Gets the default family-aware range: nearest category within 120 CSS pixels for line, area and bar charts, or nearest observation within 120 CSS pixels for other Cartesian charts.