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

Sparkline

Namespace ChartForgeX.Core
Assembly ChartForgeX
Modifiers sealed

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

Inheritance

  • Object
  • Sparkline

Usage

Explore 3 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 3

Constructors

public Sparkline(SparklineData data) #

Creates a compact visual from detached sample data.

Parameters

data ChartForgeX.Core.SparklineData requiredposition: 0

Methods

public PreparedVisual Prepare(VisualRenderContext context) #
Returns: PreparedVisual

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

Parameters

context ChartForgeX.Rendering.VisualRenderContext requiredposition: 0
public Sparkline WithColor(ChartColor? color) #
Returns: Sparkline

Sets the optional series colour.

Parameters

color ChartForgeX.Primitives.ChartColor? requiredposition: 0
public Sparkline WithStyle(SparklineStyle style, Boolean smooth = false) #
Returns: Sparkline

Sets the mark style and optional curve interpolation.

Parameters

style ChartForgeX.Core.SparklineStyle requiredposition: 0
smooth System.Boolean = false optionalposition: 1
public Sparkline WithValueFormat(ChartValueFormat format) #
Returns: Sparkline

Sets the shared numeric display policy.

Parameters

format ChartForgeX.Core.ChartValueFormat requiredposition: 0

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 Boolean 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.