type FormatterFunction = (name: string) => any; interface TextStyle { overflow?: 'none' | 'truncate' ellipsis?: string } export interface LegendOptions { show?: boolean data?: string[] formatter?: string | FormatterFunction orient?: 'horizontal' | 'vertical', textStyle?: TextStyle justify?: 'left' | 'center' | 'right' top?: number; icon?: 'rect' | 'circle' };