import { graphic } from 'echarts' export function linearColor(color1: string, color2: string) { return new graphic.LinearGradient(0, 0, 1, 1, [ { offset: 0, color: color1, }, { offset: 1, color: color2, }, ]) }