@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.
9 lines (8 loc) • 744 B
TypeScript
import type { ChartMark, ChartMarkDatum, ChartMarkMotionOptions, ChartMarkPointX, ChartMarkPointY, ChartMarkScaleX, ChartMarkScaleY } from './types.js';
type AnyChartMark = ChartMark<any, any, any, any, any>;
export interface CompositeMarkOptions<TDatum = unknown> extends ChartMarkMotionOptions<TDatum> {
id?: string;
}
/** Combines ordinary child marks into one namespaced chart mark. */
export declare function compositeMark<const TMarks extends readonly AnyChartMark[]>(marks: TMarks, options?: CompositeMarkOptions<ChartMarkDatum<TMarks[number]>>): ChartMark<ChartMarkDatum<TMarks[number]>, ChartMarkPointX<TMarks[number]>, ChartMarkPointY<TMarks[number]>, ChartMarkScaleX<TMarks[number]>, ChartMarkScaleY<TMarks[number]>>;
export {};