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.

4 lines (3 loc) 424 B
import type { ChartHost, ChartHostOptions } from './dom-types.js'; import type { ChartRuntime, ChartValue } from './types.js'; export declare function mountChart<TDatum, TXValue extends ChartValue = ChartValue, TYValue extends ChartValue = ChartValue>(container: HTMLElement, initialOptions: ChartHostOptions<TDatum, TXValue, TYValue>, runtime?: ChartRuntime<TDatum, TXValue, TYValue>): ChartHost<TDatum, TXValue, TYValue>;