@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.
6 lines (5 loc) • 483 B
TypeScript
import type { RenderChartSvgOptions, SceneGroup, SceneNode } from './types.js';
export type SvgRenderChildren = (group: SceneGroup) => readonly SceneNode[] | undefined;
export declare function svgRenderChildren(options: RenderChartSvgOptions): SvgRenderChildren | undefined;
/** Keep renderer-local presentation out of the public scene and options. */
export declare function withSvgRenderChildren<T>(options: RenderChartSvgOptions, children: SvgRenderChildren, render: () => T): T;