@antv/g2plot
Version:
G2 Plot, a market of plots built with the Grammar of Graphics'
6 lines (5 loc) • 489 B
TypeScript
import { Formatter } from '../interface/config';
export declare const combineFormatter: (...formatters: Formatter[]) => (text: string, item: any, idx: any) => string;
export declare const getNoopFormatter: () => (text: string, item: any, idx: number) => string;
export declare const getPrecisionFormatter: (precision?: number) => (text: string, item: any, idx: number) => string;
export declare const getSuffixFormatter: (suffix?: string) => (text: string, item: any, idx: any) => string;