Skip to content
ChartForgeX
Class

HtmlChartCrosshairOptions

ChartForgeX.Interactivity.Html

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

Configures HTML crosshair presentation independently of tooltip acquisition and palette.

Inheritance

  • object
  • HtmlChartCrosshairOptions

Usage

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

Constructors

public HtmlChartCrosshairOptions() #

Properties

public bool ShowLabel { get; set; } #

Gets or sets whether the crosshair includes a target label. The default is true for every palette. The ChartInteractionFeatures.Crosshair feature controls whether the guide is enabled.

public ChartColor? Stroke { get; set; } #

Gets or sets the color of both guide lines. Null retains the palette's line color. A transparent color hides the lines while retaining the label and guide identity. Explicit line styling uses a crisp stroke without glow.

public double? StrokeWidth { get; set; } #

Gets or sets the finite, non-negative width of both guide lines in CSS pixels. Null retains the default width. Zero hides the lines without disabling the guide or its label.

Exceptions

  • ArgumentOutOfRangeException – The width is negative or non-finite.
public HtmlChartCrosshairLineStyle? LineStyle { get; set; } #

Gets or sets the pattern of both guide lines. Null retains the default dashed pattern for every palette.

Exceptions

  • ArgumentOutOfRangeException – The line style is not a defined enum value.

Extension Methods

public static HtmlChartCrosshairOptions LineStyle(HtmlChartCrosshairOptions htmlChartCrosshairOptions, HtmlChartCrosshairLineStyle? value) #

Sets HtmlChartCrosshairOptions.LineStyle: Gets or sets the pattern of both guide lines. Null retains the default dashed pattern for every palette.

Parameters

htmlChartCrosshairOptions ChartForgeX.Interactivity.Html.HtmlChartCrosshairOptions required
The instance.
value ChartForgeX.Interactivity.Html.HtmlChartCrosshairLineStyle? required
The value.

Returns

HtmlChartCrosshairOptions The same instance.

Examples

// C# initializer or property                                                                  // C# fluent
new global::ChartForgeX.Interactivity.Html.HtmlChartCrosshairOptions { LineStyle = value };    htmlChartCrosshairOptions.LineStyle(value);
public static HtmlChartCrosshairOptions ShowLabel(HtmlChartCrosshairOptions htmlChartCrosshairOptions, bool value = true) #

Sets HtmlChartCrosshairOptions.ShowLabel: Gets or sets whether the crosshair includes a target label. The default is true for every palette. The ChartInteractionFeatures.Crosshair feature controls whether the guide is enabled.

Parameters

htmlChartCrosshairOptions ChartForgeX.Interactivity.Html.HtmlChartCrosshairOptions required
The instance.
value bool = true optional
The value; true when omitted.

Returns

HtmlChartCrosshairOptions The same instance.

Examples

// C# initializer or property                                                                  // C# fluent
new global::ChartForgeX.Interactivity.Html.HtmlChartCrosshairOptions { ShowLabel = value };    htmlChartCrosshairOptions.ShowLabel(value);
public static HtmlChartCrosshairOptions Stroke(HtmlChartCrosshairOptions htmlChartCrosshairOptions, ChartColor? value) #

Sets HtmlChartCrosshairOptions.Stroke: Gets or sets the color of both guide lines. Null retains the palette's line color. A transparent color hides the lines while retaining the label and guide identity. Explicit line styling uses a crisp stroke without glow.

Parameters

htmlChartCrosshairOptions ChartForgeX.Interactivity.Html.HtmlChartCrosshairOptions required
The instance.
value ChartForgeX.Primitives.ChartColor? required
The value.

Returns

HtmlChartCrosshairOptions The same instance.

Examples

// C# initializer or property                                                               // C# fluent
new global::ChartForgeX.Interactivity.Html.HtmlChartCrosshairOptions { Stroke = value };    htmlChartCrosshairOptions.Stroke(value);
public static HtmlChartCrosshairOptions StrokeWidth(HtmlChartCrosshairOptions htmlChartCrosshairOptions, double? value) #

Sets HtmlChartCrosshairOptions.StrokeWidth: Gets or sets the finite, non-negative width of both guide lines in CSS pixels. Null retains the default width. Zero hides the lines without disabling the guide or its label.

Parameters

htmlChartCrosshairOptions ChartForgeX.Interactivity.Html.HtmlChartCrosshairOptions required
The instance.
value double? required
The value.

Returns

HtmlChartCrosshairOptions The same instance.

Examples

// C# initializer or property                                                                    // C# fluent
new global::ChartForgeX.Interactivity.Html.HtmlChartCrosshairOptions { StrokeWidth = value };    htmlChartCrosshairOptions.StrokeWidth(value);