@alicloud/cloud-charts
Version:

14 lines (13 loc) • 834 B
TypeScript
import { Chart } from '@antv/g2';
/** 计算每个legend的统计数据 */
export declare function getStatistics(chart: Chart, statistics: Array<'min' | 'max' | 'avg' | 'current'>, legendField: string): Record<string, any>;
/** 获取legend信息 */
export declare function getLegendItems(chart: Chart, legendField: string, statistics?: Array<'min' | 'max' | 'avg' | 'current'>, config?: any): any;
/** 过滤legend */
export declare function filterLegend(chart: Chart, condition: (value: any) => boolean, legendField: string): void;
/** 高亮legend */
export declare function highlightLegend(chart: Chart, condition: (value: any) => boolean, legendField: string): void;
/** 清除高亮 */
export declare function clearHighlight(chart: Chart): void;
declare const _default: (base: any, config: any) => any;
export default _default;