Skip to content
ChartForgeX
Class

Sparkline

ChartForgeX.Core

Namespace
ChartForgeX.Core
Assembly
ChartForgeX
Modifiers
sealed
Attributes
Fluent

A compact chart over the shared Cartesian compiler, with explicit missing-observation semantics.

Inheritance

  • object
  • Sparkline

Usage

Explore 16 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 8

Accepted by parameters 8

Constructors

public Sparkline(SparklineData data) #

Creates a compact visual from detached sample data.

Parameters

data ChartForgeX.Core.SparklineData required

Methods

public PreparedVisual Prepare(VisualRenderContext context) #

Prepares compact marks through the same compiler and frame contract as a full Cartesian chart.

Parameters

context ChartForgeX.Rendering.VisualRenderContext required

Properties

public SparklineData Data { get; } #

Gets the immutable samples and resolved bounds.

public SparklineStyle Style { get; set; } #

Gets or sets the compact mark style.

public ChartColor? Color { get; set; } #

Gets or sets the optional series colour; null uses the shared theme.

public bool Smooth { get; set; } #

Gets or sets whether line and area segments use the shared curve interpolation.

public ChartValueFormat ValueFormat { get; set; } #

Gets or sets the shared numeric display policy, compact by default.

Extension Methods

public static Sparkline Color(Sparkline sparkline, ChartColor? value) #

Sets Sparkline.Color: Gets or sets the optional series colour; null uses the shared theme.

Parameters

sparkline ChartForgeX.Core.Sparkline required
The instance.
value ChartForgeX.Primitives.ChartColor? required
The value.

Returns

Sparkline The same instance.

Examples

// C# initializer or property    // C# fluent
sparkline.Color = value;         sparkline.Color(value);
public static Sparkline Smooth(Sparkline sparkline, bool value = true) #

Sets Sparkline.Smooth: Gets or sets whether line and area segments use the shared curve interpolation.

Parameters

sparkline ChartForgeX.Core.Sparkline required
The instance.
value bool = true optional
The value; true when omitted.

Returns

Sparkline The same instance.

Examples

// C# initializer or property    // C# fluent
sparkline.Smooth = value;        sparkline.Smooth(value);
public static Sparkline Style(Sparkline sparkline, SparklineStyle value) #

Sets Sparkline.Style: Gets or sets the compact mark style.

Parameters

sparkline ChartForgeX.Core.Sparkline required
The instance.
value ChartForgeX.Core.SparklineStyle required
The value.

Returns

Sparkline The same instance.

Examples

// C# initializer or property    // C# fluent
sparkline.Style = value;         sparkline.Style(value);
public static Sparkline ValueFormat(Sparkline sparkline, ChartValueFormat value) #

Sets Sparkline.ValueFormat: Gets or sets the shared numeric display policy, compact by default.

Parameters

sparkline ChartForgeX.Core.Sparkline required
The instance.
value ChartForgeX.Core.ChartValueFormat required
The value.

Returns

Sparkline The same instance.

Examples

// C# initializer or property     // C# fluent
sparkline.ValueFormat = value;    sparkline.ValueFormat(value);