UNPKG

@visactor/vchart

Version:

charts lib based @visactor/VGrammar

13 lines (12 loc) 515 B
export type AddVChartPropertyContext = { keyMap: Map<string, number>; needDefaultSeriesField: boolean; defaultSeriesField?: string; getKey?: (d: any, i: number, context: AddVChartPropertyContext) => string; categoryField?: string; }; export interface IAddVChartPropertyOpt { beforeCall: () => AddVChartPropertyContext; call: (d: any, i: number, context: AddVChartPropertyContext) => void; } export declare const addVChartProperty: (data: Array<any>, op: IAddVChartPropertyOpt) => any[];