UNPKG

@tanstack/charts

Version:

A chart grammar for TypeScript and JavaScript. Marks consume your data directly, channels describe visual encodings, and the engine compiles them into a renderer-neutral keyed scene. TanStack's compact scales cover common numeric and categorical mappings.

12 lines (11 loc) 474 B
import type { ChartKey } from './types.js'; export interface SpatialGroupedRow { readonly group: ChartKey | null; } export interface SpatialRowGroup<TRow> { readonly group: ChartKey | null; readonly identity: string; readonly rows: readonly TRow[]; } /** Partitions spatial rows by canonical ChartKey identity and order. */ export declare function groupRowsByChartKey<TRow extends SpatialGroupedRow>(rows: readonly TRow[]): readonly SpatialRowGroup<TRow>[];