@echarts-component/vue
Version:
Echarts component for Vue
10 lines (9 loc) • 587 B
TypeScript
import { AxisOption, LineStyleOption, AreaStyleOption, ZRColor } from '../components/type';
export type AxisType = "axisLine" | "axisTick" | "minorTick" | "splitLine" | "minorSplitLine" | "splitArea";
export interface AxisContext {
defaultAxisLineStyle?: LineStyleOption<ZRColor | ZRColor[]>;
defaultAxisAreaStyle?: AreaStyleOption<ZRColor | ZRColor[]>;
updateAxisStyle: (name: AxisType, data: AxisOption) => void;
updateAxisLineStyle: (data: LineStyleOption<ZRColor | ZRColor[]>) => void;
updateAxisAreaStyle: (data: AreaStyleOption<ZRColor | ZRColor[]>) => void;
}