@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.
7 lines (6 loc) • 549 B
TypeScript
import type { ChartColorOptions, ChartKey, ChartTheme, ResolvedColorScale } from './types.js';
export declare function createColorScale(values: readonly unknown[], options: ChartColorOptions | undefined, theme: ChartTheme): ResolvedColorScale;
export declare function isChartKey(value: unknown): value is ChartKey;
export declare function valueKey(value: unknown): string;
/** Orders ChartKey values independently from their collision-safe identity. */
export declare function compareChartKey(left: ChartKey | null, right: ChartKey | null): number;