Skip to content
ChartForgeX
Class

ChartRangeBands

ChartForgeX.Core

Namespace
ChartForgeX.Core
Assembly
ChartForgeX
Modifiers
static

Materializes typed paired observations from nullable sample slots without synthesizing values.

Inheritance

  • object
  • ChartRangeBands

Methods

public static ChartRangeBand[] FromXY(IEnumerable<double> x, IEnumerable<double?> lower, IEnumerable<double?> upper, ChartMissingDataPolicy missingDataPolicy = Gap, CancellationToken cancellationToken = default) #

Omits incomplete pairs. Gap starts a new segment after a missing slot; Connect joins the surviving pairs.

Parameters

x System.Collections.Generic.IEnumerable<double> required
Finite X positions, including positions whose pair is incomplete.
lower System.Collections.Generic.IEnumerable<double?> required
Nullable finite lower values.
upper System.Collections.Generic.IEnumerable<double?> required
Nullable finite upper values.
missingDataPolicy ChartForgeX.Core.ChartMissingDataPolicy = Gap optional
The explicit missing-slot policy. No policy interpolates or inserts source values.
cancellationToken System.Threading.CancellationToken = default optional
Cancellation checked during materialization; no series is changed on failure.

Returns

ChartRangeBand[] Complete typed pairs in source order. Observation indices address these returned pairs.