UNPKG

@gooddata/react-components

Version:
14 lines (13 loc) 579 B
import { VisualizationObject } from '@gooddata/data-layer'; export interface ILegendConfig { enabled?: boolean; position?: 'top' | 'left' | 'right' | 'bottom'; responsive?: boolean; } export interface IVisConfig { type: string; buckets: VisualizationObject.IBuckets; legend: ILegendConfig; } export declare function getLegendConfig(metadata: VisualizationObject.IVisualizationObject, environment: string): ILegendConfig; export declare function getConfig(metadata: VisualizationObject.IVisualizationObject, type: string, environment: string): IVisConfig;