UNPKG

@antv/g2

Version:

the Grammar of Graphics in Javascript

17 lines (13 loc) 368 B
import { DataComponent as DC } from '../runtime'; import { LogDataTransform } from '../spec'; export type LogDataOptions = Omit<LogDataTransform, 'type'>; /** * Console.log the data section for dev debugger. */ export const Log: DC<LogDataOptions> = () => { return (data) => { console.log('G2 data section:', data); return data; }; }; Log.props = {};