@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.
4 lines (3 loc) • 464 B
TypeScript
import type { ChartMark, ChartValue } from './types.js';
/** Keeps one mark's scale and painted geometry while removing interaction ownership. */
export declare function decorative<TDatum, TXPointValue extends ChartValue, TYPointValue extends ChartValue, TXScaleValue extends ChartValue, TYScaleValue extends ChartValue>(mark: ChartMark<TDatum, TXPointValue, TYPointValue, TXScaleValue, TYScaleValue>): ChartMark<TDatum, never, never, TXScaleValue, TYScaleValue>;