diff --git a/nezha-fronted/src/components/chart/chart/chartPieD3.vue b/nezha-fronted/src/components/chart/chart/chartPieD3.vue index 111e37da8..b7a216967 100644 --- a/nezha-fronted/src/components/chart/chart/chartPieD3.vue +++ b/nezha-fronted/src/components/chart/chart/chartPieD3.vue @@ -230,7 +230,7 @@ export default { // return y - Math.sqrt(2) / 2 * (this.outerRadius / 2) + Math.ceil(this.outerRadius / 16) // 居中 - return y - Math.sqrt(2) / 2 * (this.outerRadius / 2) + arc.centroid(d)[1] / 2 + Math.ceil(this.outerRadius / 16) + return y - Math.sqrt(2) / 2 * (this.outerRadius / 2) + arc.centroid(d)[1] / 2 + Math.ceil(this.outerRadius / 16) + Math.ceil(this.outerRadius / 16) }) .attr('transform', (d, i) => { // if ((d.endAngle - d.startAngle) > 6.28) {