UNPKG

@yelon/chart

Version:

Cache the dictionary, city data etc.

18 lines (17 loc) 538 B
import type * as _echarts from 'echarts'; export type ChartECharts = _echarts.ECharts; export type ChartEChartsOption = _echarts.EChartsCoreOption; export type ChartEChartsEventType = 'ready' | 'init' | 'destroy' | 'set-option'; export interface ChartEChartsEvent { type: ChartEChartsEventType; chart?: ChartECharts; option?: ChartEChartsOption; } export interface ChartEChartsOn { eventName: string; query?: string | object; handler: (options: { event: any; chart: ChartECharts; }) => void; }