echart 饼状图设置渐变色
const getLinearColor = function(color1, color2, pos) { const p = Object.assign({ x: 0.5, y: 0, x2: 0.5, y2: 1 }, pos) return { type: 'linear', ...p, colorStops: [ { offset: 0, color: color1 }, { of.