@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.
15 lines (14 loc) • 590 B
TypeScript
import type { VNode, VNodeChild } from 'vue';
import type { ChartValue } from '@tanstack/charts';
import type { ChartProps, ChartTooltipBodySlotContext } from './types.js';
interface ChartComponent {
<TDatum, TXValue extends ChartValue = ChartValue, TYValue extends ChartValue = ChartValue>(props: ChartProps<TDatum, TXValue, TYValue>): VNode & {
__ctx?: {
slots: {
tooltipBody?: (context: ChartTooltipBodySlotContext<TDatum, TXValue, TYValue>) => VNodeChild;
};
};
};
}
export declare const Chart: ChartComponent;
export {};