HtmlChartCrosshairOptions
ChartForgeX.Interactivity.Html
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.
Returned or exposed by 10
- Extension method HtmlChartCrosshairOptions.LineStyle
- Extension method HtmlChartCrosshairOptions.ShowLabel
- Extension method HtmlChartCrosshairOptions.Stroke
- Extension method HtmlChartCrosshairOptions.StrokeWidth
- Method HtmlChartCrosshairOptionsFluent.LineStyle
- Method HtmlChartCrosshairOptionsFluent.ShowLabel
- Method HtmlChartCrosshairOptionsFluent.Stroke
- Method HtmlChartCrosshairOptionsFluent.StrokeWidth
- Property HtmlChartInteractionOptions.Crosshair
- Property HtmlInteractiveDashboardOptions.Crosshair
Accepted by parameters 12
- Extension method HtmlChartCrosshairOptions.LineStyle
- Extension method HtmlChartCrosshairOptions.ShowLabel
- Extension method HtmlChartCrosshairOptions.Stroke
- Extension method HtmlChartCrosshairOptions.StrokeWidth
- Method HtmlChartCrosshairOptionsFluent.LineStyle
- Method HtmlChartCrosshairOptionsFluent.ShowLabel
- Method HtmlChartCrosshairOptionsFluent.Stroke
- Method HtmlChartCrosshairOptionsFluent.StrokeWidth
- Extension method HtmlChartInteractionOptions.Crosshair
- Method HtmlChartInteractionOptionsFluent.Crosshair
- Extension method HtmlInteractiveDashboardOptions.Crosshair
- Method HtmlInteractiveDashboardOptionsFluent.Crosshair
Constructors
public HtmlChartCrosshairOptions() #Inherited Methods
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
- The instance.
- value ChartForgeX.Interactivity.Html.HtmlChartCrosshairLineStyle?
- The value.
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
- The instance.
- value bool = true
- The value; true when omitted.
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
- The instance.
- value ChartForgeX.Primitives.ChartColor?
- The value.
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
- The instance.
- value double?
- The value.
Examples
// C# initializer or property // C# fluent
new global::ChartForgeX.Interactivity.Html.HtmlChartCrosshairOptions { StrokeWidth = value }; htmlChartCrosshairOptions.StrokeWidth(value);