echarts-tooltip-auto-show
Version:
Echarts Tooltip自动轮播工具
22 lines • 798 B
TypeScript
import type { EChartsType, EChartsOption } from 'echarts';
export interface IEChartsToolOptions {
interval: number;
loopSeries: boolean;
seriesIndex: number;
updateData?: (() => void) | null;
bounce?: ((data: any, seriesIndex: number, dataIndex: number) => void) | null;
}
export interface IEChartsToolResult {
clearLoop: () => void;
pause: () => void;
resume: () => void;
}
export type IEChartsToolReturn = IEChartsToolResult | undefined;
/**
* 循环显示tooltip工具
* @param chart echarts实例对象
* @param chartOption echarts配置项对象
* @param options 配置项对象
*/
export declare function loopShowTooltip(chart: EChartsType, chartOption: EChartsOption, options: IEChartsToolOptions): IEChartsToolReturn;
//# sourceMappingURL=index.d.ts.map