@qn-pandora/pandora-visualization
Version:
Pandora 通用可视化库
20 lines (19 loc) • 749 B
TypeScript
import { ISingleEventParams, IBucket } from '../../constants/action-event';
import { TChartFieldDataItem, IChartField } from '@qn-pandora/app-sdk';
import ChartCommonActionService from './base-chart-action';
/**
* 单值图的Link Service
*/
export default class SingleChartActionService extends ChartCommonActionService<ISingleEventParams> {
toEvent(params: ISingleEventParams): import("../..").ICommonEvent;
getBucketsViaRow(row: TChartFieldDataItem[], currentBuckets: IChartField[], fields: IChartField[]): IBucket[];
toActionToken(params: ISingleEventParams): {
row: IKeyValues<any>;
click: {
name: string;
value: any;
name1: string;
value1: any;
};
};
}