Project

ChartForgeX

Render deterministic charts, dashboards, topology, hierarchy, and report visuals directly from .NET.

Stars 47
Forks 2
NuGet downloads 75,067
Release ChartForgeX-v2.0.0
Language: HTML Updated: 2026-10-12

API Reference

Class

SparklineData

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 11 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

public SparklineData(IEnumerable<Double?> values, Double? minimum = null, Double? maximum = null, ChartMissingDataPolicy missingDataPolicy = Gap, Boolean includeZero = false) #

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

Parameters

values System.Collections.Generic.IEnumerable<System.Double?> requiredposition: 0
minimum System.Double? = null optionalposition: 1
maximum System.Double? = null optionalposition: 2
missingDataPolicy ChartForgeX.Core.ChartMissingDataPolicy = Gap optionalposition: 3
includeZero System.Boolean = false optionalposition: 4

Methods

public static SparklineData FromValues(IEnumerable<Double> values, Double? minimum = null, Double? maximum = null, Boolean includeZero = false) #
Returns: SparklineData

Copies finite observations into sample slots without introducing missing values.

Parameters

values System.Collections.Generic.IEnumerable<System.Double> requiredposition: 0
minimum System.Double? = null optionalposition: 1
maximum System.Double? = null optionalposition: 2
includeZero System.Boolean = false optionalposition: 3
public ChartPoint[] ToPoints() #
Returns: ChartPoint[]

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

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 Boolean IncludeZero { get; } #

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