Skip to content
ChartForgeX

API Reference

Class

HtmlChartXRangePreset

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

A named fixed source-coordinate span anchored at the full-domain maximum.

Inheritance

  • Object
  • HtmlChartXRangePreset

Remarks

Time axes use OLE Automation days. Fixed durations do not represent calendar months, years, business days or trading sessions. A span covering the full domain selects its complete range.

Usage

Explore 2 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.

Constructors

public HtmlChartXRangePreset(String label, Double span) #

Creates a numeric source-coordinate range preset.

Parameters

label System.String requiredposition: 0
The visible and accessible control label.
span System.Double requiredposition: 1
A finite positive source-coordinate span; time axes use days.

Exceptions

  • ArgumentException – The label is empty.
  • ArgumentOutOfRangeException – The span is nonpositive or nonfinite.

Methods

public static HtmlChartXRangePreset FromDuration(String label, TimeSpan duration) #
Returns: HtmlChartXRangePreset

Creates a fixed-duration time-axis preset without requiring OLE Automation unit conversion.

Parameters

label System.String requiredposition: 0
The visible and accessible control label.
duration System.TimeSpan requiredposition: 1
A positive elapsed duration, independent of display time zone and calendar.

Returns

A preset whose source-coordinate span is the duration in days.

Exceptions

  • ArgumentException – The label is empty.
  • ArgumentOutOfRangeException – The duration is nonpositive.

Properties

public String Label { get; } #

Gets the visible and accessible control label.

public Double Span { get; } #

Gets the fixed source-coordinate span.