fix : 饼图D3 窗口变动时数据不变
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user