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) 495 B
import { type BandScale } from './band-kernel.js'; import type { ScaleDomainValue } from './intern.js'; export type { BandScale }; export declare function scaleBand<TDomain extends ScaleDomainValue = string>(): BandScale<TDomain>; export declare function scaleBand<TDomain extends ScaleDomainValue = string>(range: Iterable<number>): BandScale<TDomain>; export declare function scaleBand<TDomain extends ScaleDomainValue>(domain: Iterable<TDomain>, range: Iterable<number>): BandScale<TDomain>;