@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.
16 lines (15 loc) • 777 B
TypeScript
export interface SerializeChartSvgOptions {
width?: number;
height?: number;
includeFocus?: boolean;
}
export interface RenderChartImageOptions extends SerializeChartSvgOptions {
scale?: number;
background?: string;
type?: 'image/png' | 'image/jpeg' | 'image/webp';
quality?: number;
}
export declare function serializeChartSvg(target: Element, options?: SerializeChartSvgOptions): string;
export declare function downloadChartSvg(target: Element, filename?: string, options?: SerializeChartSvgOptions): void;
export declare function renderChartImage(target: Element, options?: RenderChartImageOptions): Promise<Blob>;
export declare function downloadChartImage(target: Element, filename?: string, options?: RenderChartImageOptions): Promise<void>;