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.

9 lines (8 loc) 770 B
import type { ChartMark, ChartValue, MarkScene } from './types.js'; interface DecorativeMarkLifecycleOptions { conditional: 'remove' | 'reject'; layoutLabels: 'preserve' | 'remove'; } /** Reuses one post-domain lifecycle for always-decorative and filtered marks. */ export declare function createDecorativeMark<TDatum, TXPointValue extends ChartValue, TYPointValue extends ChartValue, TXScaleValue extends ChartValue, TYScaleValue extends ChartValue>(mark: ChartMark<TDatum, TXPointValue, TYPointValue, TXScaleValue, TYScaleValue>, transform: (scene: MarkScene<TDatum, TXPointValue, TYPointValue>) => MarkScene<TDatum, TXPointValue, TYPointValue>, options: DecorativeMarkLifecycleOptions): ChartMark<TDatum, never, never, TXScaleValue, TYScaleValue>; export {};