HtmlChartTooltipPositionOptions
ChartForgeX.Interactivity.Html
Configures HTML tooltip anchoring, ordered placement fallback, and screen offsets.
Inheritance
- object
- HtmlChartTooltipPositionOptions
Usage
Explore 23 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.
Returned or exposed by 11
- Property HtmlChartTooltipOptions.Position
- Extension method HtmlChartTooltipPositionOptions.Anchor
- Extension method HtmlChartTooltipPositionOptions.Gap
- Extension method HtmlChartTooltipPositionOptions.OffsetX
- Extension method HtmlChartTooltipPositionOptions.OffsetY
- Extension method HtmlChartTooltipPositionOptions.Placements
- Method HtmlChartTooltipPositionOptionsFluent.Anchor
- Method HtmlChartTooltipPositionOptionsFluent.Gap
- Method HtmlChartTooltipPositionOptionsFluent.OffsetX
- Method HtmlChartTooltipPositionOptionsFluent.OffsetY
- Method HtmlChartTooltipPositionOptionsFluent.Placements
Accepted by parameters 12
- Extension method HtmlChartTooltipOptions.Position
- Method HtmlChartTooltipOptionsFluent.Position
- Extension method HtmlChartTooltipPositionOptions.Anchor
- Extension method HtmlChartTooltipPositionOptions.Gap
- Extension method HtmlChartTooltipPositionOptions.OffsetX
- Extension method HtmlChartTooltipPositionOptions.OffsetY
- Extension method HtmlChartTooltipPositionOptions.Placements
- Method HtmlChartTooltipPositionOptionsFluent.Anchor
- Method HtmlChartTooltipPositionOptionsFluent.Gap
- Method HtmlChartTooltipPositionOptionsFluent.OffsetX
- Method HtmlChartTooltipPositionOptionsFluent.OffsetY
- Method HtmlChartTooltipPositionOptionsFluent.Placements
Constructors
public HtmlChartTooltipPositionOptions() #Inherited Methods
Properties
public HtmlChartTooltipAnchor Anchor { get; set; } #Gets or sets the anchor. The default is HtmlChartTooltipAnchor.Pointer.
Exceptions
ArgumentOutOfRangeException– The anchor is not a defined enum value.
public IReadOnlyList<HtmlChartTooltipPlacement> Placements { get; set; } #Gets or sets a copied, read-only sequence of directions, tried in order against the browser viewport with an 8 CSS pixel inset. An assigned sequence clamps its first direction if none fits. Until assigned, the browser chooses family defaults: above-right for bars and right for lines, with opposite-side fallbacks. If none fits, automatic placement tries a clamped position that keeps the gap from the anchor. The initial sequence describes the general above-right fallback. Assigning a sequence makes that exact order authoritative, even if it equals the initial sequence.
Exceptions
ArgumentNullException– The sequence is null.ArgumentException– The sequence is empty.ArgumentOutOfRangeException– A direction is not a defined enum value.
public double Gap { get; set; } #Gets or sets the finite, non-negative gap in CSS pixels, applied on each directed axis. The default is 12; diagonal directions apply the gap both horizontally and vertically.
Exceptions
ArgumentOutOfRangeException– The gap is negative or non-finite.
public double OffsetX { get; set; } #Gets or sets a finite horizontal CSS pixel offset. Positive values move right. The default is zero.
Exceptions
ArgumentOutOfRangeException– The offset is non-finite.
public double OffsetY { get; set; } #Gets or sets a finite vertical CSS pixel offset. Positive values move down. The default is zero.
Exceptions
ArgumentOutOfRangeException– The offset is non-finite.
Extension Methods
public static HtmlChartTooltipPositionOptions Anchor(HtmlChartTooltipPositionOptions htmlChartTooltipPositionOptions, HtmlChartTooltipAnchor value) #Sets HtmlChartTooltipPositionOptions.Anchor: Gets or sets the anchor. The default is HtmlChartTooltipAnchor.Pointer.
Parameters
- htmlChartTooltipPositionOptions ChartForgeX.Interactivity.Html.HtmlChartTooltipPositionOptions
- The instance.
- value ChartForgeX.Interactivity.Html.HtmlChartTooltipAnchor
- The value.
Examples
// C# initializer or property // C# fluent
new global::ChartForgeX.Interactivity.Html.HtmlChartTooltipPositionOptions { Anchor = value }; htmlChartTooltipPositionOptions.Anchor(value);public static HtmlChartTooltipPositionOptions Gap(HtmlChartTooltipPositionOptions htmlChartTooltipPositionOptions, double value) #Sets HtmlChartTooltipPositionOptions.Gap: Gets or sets the finite, non-negative gap in CSS pixels, applied on each directed axis. The default is 12; diagonal directions apply the gap both horizontally and vertically.
Parameters
- htmlChartTooltipPositionOptions ChartForgeX.Interactivity.Html.HtmlChartTooltipPositionOptions
- The instance.
- value double
- The value.
Examples
// C# initializer or property // C# fluent
new global::ChartForgeX.Interactivity.Html.HtmlChartTooltipPositionOptions { Gap = value }; htmlChartTooltipPositionOptions.Gap(value);public static HtmlChartTooltipPositionOptions OffsetX(HtmlChartTooltipPositionOptions htmlChartTooltipPositionOptions, double value) #Sets HtmlChartTooltipPositionOptions.OffsetX: Gets or sets a finite horizontal CSS pixel offset. Positive values move right. The default is zero.
Parameters
- htmlChartTooltipPositionOptions ChartForgeX.Interactivity.Html.HtmlChartTooltipPositionOptions
- The instance.
- value double
- The value.
Examples
// C# initializer or property // C# fluent
new global::ChartForgeX.Interactivity.Html.HtmlChartTooltipPositionOptions { OffsetX = value }; htmlChartTooltipPositionOptions.OffsetX(value);public static HtmlChartTooltipPositionOptions OffsetY(HtmlChartTooltipPositionOptions htmlChartTooltipPositionOptions, double value) #Sets HtmlChartTooltipPositionOptions.OffsetY: Gets or sets a finite vertical CSS pixel offset. Positive values move down. The default is zero.
Parameters
- htmlChartTooltipPositionOptions ChartForgeX.Interactivity.Html.HtmlChartTooltipPositionOptions
- The instance.
- value double
- The value.
Examples
// C# initializer or property // C# fluent
new global::ChartForgeX.Interactivity.Html.HtmlChartTooltipPositionOptions { OffsetY = value }; htmlChartTooltipPositionOptions.OffsetY(value);public static HtmlChartTooltipPositionOptions Placements(HtmlChartTooltipPositionOptions htmlChartTooltipPositionOptions, IReadOnlyList<HtmlChartTooltipPlacement> value) #Sets HtmlChartTooltipPositionOptions.Placements: Gets or sets a copied, read-only sequence of directions, tried in order against the browser viewport with an 8 CSS pixel inset. An assigned sequence clamps its first direction if none fits. Until assigned, the browser chooses family defaults: above-right for bars and right for lines, with opposite-side fallbacks. If none fits, automatic placement tries a clamped position that keeps the gap from the anchor. The initial sequence describes the general above-right fallback. Assigning a sequence makes that exact order authoritative, even if it equals the initial sequence.
Parameters
- htmlChartTooltipPositionOptions ChartForgeX.Interactivity.Html.HtmlChartTooltipPositionOptions
- The instance.
- value System.Collections.Generic.IReadOnlyList<ChartForgeX.Interactivity.Html.HtmlChartTooltipPlacement>
- The value.
Examples
// C# initializer or property // C# fluent
new global::ChartForgeX.Interactivity.Html.HtmlChartTooltipPositionOptions { Placements = value }; htmlChartTooltipPositionOptions.Placements(value);