UNPKG

@gooddata/react-components

Version:

GoodData.UI - A powerful JavaScript library for building analytical applications

39 lines (38 loc) 938 B
export declare type PositionType = "left" | "right" | "top" | "bottom" | "auto"; export interface ILegendOptions { enabled: boolean; toggleEnabled: boolean; position: PositionType; format: string; items: LegendOptionsItemType[]; responsive?: boolean; } export declare type LegendOptionsItemType = IBaseLegendItem | IHeatmapLegendItem; export interface IBaseLegendItem { name: string; color: string; legendIndex: number; yAxis: number; } export interface IHeatmapLegendItem { range: IRange; isVisible?: boolean; color: string; legendIndex: number; } export interface IColorLegendItem { range: IRange; color: string; } export interface IGeoChartLegendData { colorData?: IColorLegendItem[]; sizeData?: number[]; } export interface IRange { from: number; to: number; } export declare const DEFAULT_LEGEND_CONFIG: { enabled: boolean; position: string; };