Skip to content
ChartForgeX
Class

SparklineData

ChartForgeX.Core

Namespace
ChartForgeX.Core
Assembly
ChartForgeX
Modifiers
sealed

A detached sequence of compact-chart sample slots, where null is missing and zero is a real observation.

Inheritance

  • object
  • SparklineData

Usage

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

Constructors

SparklineData 2 overloads
public SparklineData(IEnumerable<double?> values, double? minimum, double? maximum, ChartMissingDataPolicy missingDataPolicy, bool includeZero) #

Copies sample slots with the established five-argument constructor contract.

Parameters

values System.Collections.Generic.IEnumerable<double?> required
minimum double? required
maximum double? required
missingDataPolicy ChartForgeX.Core.ChartMissingDataPolicy required
includeZero bool required
public SparklineData(IEnumerable<double?> values, double? minimum = null, double? maximum = null, ChartMissingDataPolicy missingDataPolicy = Gap, bool includeZero = false, IReadOnlyList<ChartMarkOptions?>? pointOptions = null) #

Copies sample slots and resolves a shared numeric domain. All-missing data uses zero through one.

Parameters

values System.Collections.Generic.IEnumerable<double?> required
minimum double? = null optional
maximum double? = null optional
missingDataPolicy ChartForgeX.Core.ChartMissingDataPolicy = Gap optional
includeZero bool = false optional
pointOptions System.Collections.Generic.IReadOnlyList<ChartForgeX.Core.ChartMarkOptions?>? = null optional

Methods

public static SparklineData FromValues(IEnumerable<double> values, double? minimum = null, double? maximum = null, bool includeZero = false) #

Copies finite observations into sample slots without introducing missing values.

Parameters

values System.Collections.Generic.IEnumerable<double> required
minimum double? = null optional
maximum double? = null optional
includeZero bool = false optional
public ChartPoint[] ToPoints() #

Creates finite points with one-based sample positions and explicit segment breaks.

Returns

ChartPoint[]
public SparklineData WithPointOptions(int sampleIndex, ChartMarkOptions? options) #

Returns independent data with replacement metadata on one zero-based sample slot.

Parameters

sampleIndex int required
The original slot index, counting missing observations.
options ChartForgeX.Core.ChartMarkOptions? required
Immutable metadata, or null to clear it.

Returns

SparklineData A detached sequence retaining its data, missing policy and requested bounds.

Properties

public IReadOnlyList<double?> Values { get; } #

Gets original sample slots, including missing leading, trailing and interior observations.

public ChartMissingDataPolicy MissingDataPolicy { get; } #

Gets the missing-observation connection policy.

public double Minimum { get; } #

Gets the resolved finite lower display bound.

public double Maximum { get; } #

Gets the resolved finite upper display bound.

public bool IncludeZero { get; } #

Gets whether automatic bounds include zero. Explicit bounds take precedence.

public IReadOnlyList<ChartMarkOptions?> PointOptions { get; } #

Gets immutable metadata for each original sample slot, including missing slots.