UNPKG

@tanstack/charts

Version:

<div align="center"> <picture> <source media="(prefers-color-scheme: dark)" srcset="https://tanstack.com/api/readme/charts.png?theme=dark" /> <source media="(prefers-color-scheme: light)" srcset="https://tanstack.com/

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>[];