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

ChartDataset`1

Namespace ChartForgeX.Data
Assembly ChartForgeX
Implements
IReadOnlyList<T> IReadOnlyCollection<T> IEnumerable<T> IEnumerable
Modifiers sealed
Attributes
DefaultMember("Item")

Represents an immutable, renderer-neutral collection of source rows that can be transformed before chart construction.

Inheritance

  • Object
  • ChartDataset`1

Usage

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

Type Parameters

T
The source row type.

Methods

Bin 2 overloads
public ChartDataset<ChartDataBin<T?>> Bin(Func<T?, Double> valueSelector, Int32 binCount) #
Returns: ChartDataset<ChartDataBin<T?>>

Partitions a numeric measure into the same rounded, equal-width layout used by scalar histogram ingestion.

Parameters

valueSelector System.Func<T?, System.Double> requiredposition: 0
binCount System.Int32 requiredposition: 1
public ChartDataset<ChartDataBin<T?>> Bin(Func<T?, Double> valueSelector, ChartHistogramBinLayout layout) #
Returns: ChartDataset<ChartDataBin<T?>>

Partitions measurements through an explicit shared layout, preserving empty intervals and rejecting observations outside intervals or in gaps.

Parameters

valueSelector System.Func<T?, System.Double> requiredposition: 0
layout ChartForgeX.Core.ChartHistogramBinLayout requiredposition: 1
public ChartDataset<T?> Filter(Func<T?, Boolean> predicate) #
Returns: ChartDataset<T?>

Returns rows accepted by the predicate without changing this dataset.

Parameters

predicate System.Func<T?, System.Boolean> requiredposition: 0
public static ChartDataset<T?> From(IEnumerable<T?> rows) #
Returns: ChartDataset<T?>

Materializes a source sequence once into an immutable dataset.

Parameters

rows System.Collections.Generic.IEnumerable<T?> requiredposition: 0
public IEnumerator<T?> GetEnumerator() #
Returns: IEnumerator<T?>

Returns an enumerator that iterates through the collection.

Returns

An enumerator that can be used to iterate through the collection.

public IReadOnlyList<ChartDataGroup<TKey?, T?>> GroupBy<TKey>(Func<T?, TKey?> keySelector, IEqualityComparer<TKey?>? comparer = null) #
Returns: IReadOnlyList<ChartDataGroup<TKey?, T?>>

Groups rows by key while preserving first-key and source-row order.

Type Parameters

TKey

Parameters

keySelector System.Func<T?, TKey?> requiredposition: 0
comparer System.Collections.Generic.IEqualityComparer<TKey?>? = null optionalposition: 1
public ChartDataset<TResult?> Select<TResult>(Func<T?, TResult?> selector) #
Returns: ChartDataset<TResult?>

Projects every row into a new immutable dataset.

Type Parameters

TResult

Parameters

selector System.Func<T?, TResult?> requiredposition: 0
public ChartDataset<T?> SortByDescending<TKey>(Func<T?, TKey?> keySelector, IComparer<TKey?>? comparer = null) #
Returns: ChartDataset<T?>

Returns rows ordered descending by the selected key without changing this dataset.

Type Parameters

TKey

Parameters

keySelector System.Func<T?, TKey?> requiredposition: 0
comparer System.Collections.Generic.IComparer<TKey?>? = null optionalposition: 1
public ChartDataset<T?> SortBy<TKey>(Func<T?, TKey?> keySelector, IComparer<TKey?>? comparer = null) #
Returns: ChartDataset<T?>

Returns rows ordered by the selected key without changing this dataset.

Type Parameters

TKey

Parameters

keySelector System.Func<T?, TKey?> requiredposition: 0
comparer System.Collections.Generic.IComparer<TKey?>? = null optionalposition: 1
public ChartDataset<TResult?> Summarize<TKey, TResult>(Func<T?, TKey?> keySelector, Func<TKey?, IReadOnlyList<T?>, TResult?> summarize, IEqualityComparer<TKey?>? comparer = null) #
Returns: ChartDataset<TResult?>

Creates one summary row per group.

Type Parameters

TKey
TResult

Parameters

keySelector System.Func<T?, TKey?> requiredposition: 0
summarize System.Func<TKey?, System.Collections.Generic.IReadOnlyList<T?>, TResult?> requiredposition: 1
comparer System.Collections.Generic.IEqualityComparer<TKey?>? = null optionalposition: 2

Properties

public static ChartDataset<T?> Empty { get; } #

Gets an empty dataset.

public Int32 Count { get; } #

Gets the number of rows.

public T? this[Int32 index] { get; } #

Gets the row at the specified position.

Parameters

index System.Int32 requiredposition: 0
public IReadOnlyList<T?> Rows { get; } #

Gets the rows through a read-only collection.