@alicloud/cloud-charts
Version:

38 lines (37 loc) • 1.21 kB
TypeScript
import { Chart, BaseChartConfig, Colors } from '../common/types';
import Base from '../common/Base';
import '@antv/data-set/lib/transform/diagram/sankey';
import '@antv/data-set/lib/connector/graph';
import { TooltipConfig } from '../common/rectTooltip';
import { LegendConfig } from '../common/rectLegend';
import { LabelConfig } from '../common/label';
import './index.scss';
interface edgeConfig {
color?: string;
}
interface nodeConfig {
nodeWidth?: number;
nodePadding?: number;
}
export interface WsankeyConfig extends BaseChartConfig {
colors?: Colors;
legend?: LegendConfig | false;
tooltip?: TooltipConfig | false;
labels?: LabelConfig | boolean;
primaryKey?: string;
edgeStyle?: edgeConfig;
nodeStyle?: nodeConfig;
}
export declare class Sankey extends Base<WsankeyConfig> {
chartName: string;
legendField: string;
convertData: boolean;
private sankeyDataView;
private edgeView;
private nodeView;
getDefaultConfig(): WsankeyConfig;
init(chart: Chart, config: WsankeyConfig, data: any): void;
changeData(chart: Chart, config: WsankeyConfig, data: any): void;
}
declare const Wsankey: typeof Sankey;
export default Wsankey;