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.

6 lines (5 loc) 579 B
import type { ChartAdapter } from './adapter-shared.js'; import type { ChartHostOptions } from './dom-types.js'; import type { ChartValue } from './types.js'; export { resolveChartAdapterLayout, type ChartAdapter, type ChartAdapterLayout, type ChartAdapterLayoutOptions, } from './adapter-shared.js'; export declare function createChartAdapter<TDatum, TXValue extends ChartValue = ChartValue, TYValue extends ChartValue = ChartValue>(initialOptions: ChartHostOptions<TDatum, TXValue, TYValue>): ChartAdapter<ChartHostOptions<TDatum, TXValue, TYValue>, TDatum, TXValue, TYValue>;