INNER CODE UNIT · JavaScript
point
CCZX/wechat · chatAdmin/src/components/BizChart/DashBoard/index.js:11
let point = cfg.points[0]; // 获取第一个标记点
point = this.parsePoint(point);
const center = this.parsePoint({ // 获取极坐标系下画布中心点
x: 0,
y: 0,
});
// 绘制指针
group.addShape('line', {
attrs: {
x1: center.x,
y1: center.y,
x2: point.x,
y2: point.y - 20,
stroke: cfg.color,
lineWidth: 2,
lineCap: 'round',
},
});