@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.
27 lines (26 loc) • 1.95 kB
TypeScript
import type { ChartValue } from '@tanstack/charts';
import type { ChartProps } from './types';
declare function $$render<TDatum, TXValue extends ChartValue = ChartValue, TYValue extends ChartValue = ChartValue>(): {
props: ChartProps<TDatum, TXValue, TYValue>;
exports: {};
bindings: "";
slots: {};
events: {};
};
declare class __sveltets_Render<TDatum, TXValue extends ChartValue = ChartValue, TYValue extends ChartValue = ChartValue> {
props(): ReturnType<typeof $$render<TDatum, TXValue, TYValue>>['props'];
events(): ReturnType<typeof $$render<TDatum, TXValue, TYValue>>['events'];
slots(): ReturnType<typeof $$render<TDatum, TXValue, TYValue>>['slots'];
bindings(): "";
exports(): {};
}
interface $$IsomorphicComponent {
new <TDatum, TXValue extends ChartValue = ChartValue, TYValue extends ChartValue = ChartValue>(options: import('svelte').ComponentConstructorOptions<ReturnType<__sveltets_Render<TDatum, TXValue, TYValue>['props']>>): import('svelte').SvelteComponent<ReturnType<__sveltets_Render<TDatum, TXValue, TYValue>['props']>, ReturnType<__sveltets_Render<TDatum, TXValue, TYValue>['events']>, ReturnType<__sveltets_Render<TDatum, TXValue, TYValue>['slots']>> & {
$$bindings?: ReturnType<__sveltets_Render<TDatum, TXValue, TYValue>['bindings']>;
} & ReturnType<__sveltets_Render<TDatum, TXValue, TYValue>['exports']>;
<TDatum, TXValue extends ChartValue = ChartValue, TYValue extends ChartValue = ChartValue>(internal: unknown, props: ReturnType<__sveltets_Render<TDatum, TXValue, TYValue>['props']> & {}): ReturnType<__sveltets_Render<TDatum, TXValue, TYValue>['exports']>;
z_$$bindings?: ReturnType<__sveltets_Render<any, any, any>['bindings']>;
}
declare const Chart: $$IsomorphicComponent;
type Chart<TDatum, TXValue extends ChartValue = ChartValue, TYValue extends ChartValue = ChartValue> = InstanceType<typeof Chart<TDatum, TXValue, TYValue>>;
export default Chart;