Commit 6a3e6895 by 姜雷

修改饼状图遮罩

parent 892f8545
...@@ -63,10 +63,10 @@ function initChart(canvas, width, height, F2) { ...@@ -63,10 +63,10 @@ function initChart(canvas, width, height, F2) {
const coord = paytypeChart.get('coord'); // 获取坐标系对象 const coord = paytypeChart.get('coord'); // 获取坐标系对象
frontPlot.addShape('sector', { frontPlot.addShape('sector', {
attrs: { attrs: {
x: coord.center.x - coord.circleRadius - coord.start.x + coord.endAngle, x: coord.circleRadius * (1 + coord.innerRadius) + coord.endAngle,
y: coord.center.y, y: coord.center.y,
r: 0, // 全半径 r: 0, // 全半径
r0: coord.circleRadius * coord.innerRadius, r0: coord.circleRadius * coord.innerRadius * 1.1,
fill: '#fff', fill: '#fff',
}, },
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment