UNPKG

@antv/g2

Version:

the Grammar of Graphics in Javascript

14 lines (13 loc) 393 B
import { ShapeComponent as SC } from '../../runtime'; export type LabelOptions = { /** * Customize label with html string or element. */ render: (text: string, datum: any, index: number) => string | HTMLElement; [key: string]: any; }; /** * Render normal label for each mark. * @todo Support position option: middle... */ export declare const Label: SC<LabelOptions>;