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.

7 lines (6 loc) 276 B
export type ScaleDomainValue = string | number | Date; export declare function intern(value: ScaleDomainValue): string; export declare function uniqueDomain<TValue extends ScaleDomainValue>(values: Iterable<TValue>): { domain: TValue[]; index: Map<string, number>; };