@visactor/vchart
Version:
charts lib based @visactor/VGrammar
13 lines (12 loc) • 399 B
TypeScript
import type { DataView } from '@visactor/vdataset';
import type { Datum } from '../../typings';
export interface ILookUpOpt {
from: () => object[];
key: string;
fields: string | (() => string);
values?: string[];
as?: string[];
default?: unknown;
set?: (A: Datum, B?: Datum) => void;
}
export declare const lookup: (data: Array<DataView>, opt: ILookUpOpt) => DataView[];