echarts
Version:
Apache ECharts is a powerful, interactive charting and data visualization library for browser
19 lines (18 loc) • 612 B
TypeScript
declare type SSRItemType = 'legend' | 'chart';
export interface ECSSRClientEventParams {
type: ECSSREvent;
ssrType: SSRItemType;
seriesIndex?: number;
dataIndex?: number;
event: Event;
}
export interface ECSSRClientOptions {
on?: {
mouseover?: (params: ECSSRClientEventParams) => void;
mouseout?: (params: ECSSRClientEventParams) => void;
click?: (params: ECSSRClientEventParams) => void;
};
}
export declare type ECSSREvent = 'mouseover' | 'mouseout' | 'click';
export declare function hydrate(dom: HTMLElement, options: ECSSRClientOptions): void;
export {};