SparklineData
ChartForgeX.Core
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.
Returned or exposed by 7
- Property VisualCanvasInfoTileLayer.SparklineData
- Property Sparkline.Data
- Method SparklineData.FromValues
- Method SparklineData.WithPointOptions
- Property ChartTableCell.SparklineData
- Property MetricCard.SecondarySparklineData
- Property MetricCard.SparklineData
Accepted by parameters 5
- Method VisualCanvasInfoTileLayer.Sparkline
- Constructor Sparkline.Sparkline
- Method ChartTableCell.Sparkline
- Method MetricCard.SecondarySparkline
- Method MetricCard.Sparkline
Constructors
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?>
- minimum double?
- maximum double?
- missingDataPolicy ChartForgeX.Core.ChartMissingDataPolicy
- includeZero bool
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?>
- minimum double? = null
- maximum double? = null
- missingDataPolicy ChartForgeX.Core.ChartMissingDataPolicy = Gap
- includeZero bool = false
- pointOptions System.Collections.Generic.IReadOnlyList<ChartForgeX.Core.ChartMarkOptions?>? = null
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>
- minimum double? = null
- maximum double? = null
- includeZero bool = false
Returns
SparklineDatapublic 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
- The original slot index, counting missing observations.
- options ChartForgeX.Core.ChartMarkOptions?
- Immutable metadata, or null to clear it.
Inherited Methods
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 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.