|
@@ -44,7 +44,7 @@
|
|
|
|
|
|
series: [{
|
|
|
type: 'pie',
|
|
|
- radius: ['80%', '85%'],
|
|
|
+ radius: [radiusMax,radiusMin],
|
|
|
startAngle: 180,
|
|
|
endAngle: 360,
|
|
|
avoidLabelOverlap: false,
|
|
@@ -134,6 +134,7 @@
|
|
|
const deltaY = y - centerY
|
|
|
const angle = Math.atan2(deltaY, deltaX) * 180 / Math.PI
|
|
|
return (angle + 450) % 360 // 调整为0-360度
|
|
|
+
|
|
|
}
|
|
|
|
|
|
onMounted(() => {
|
|
@@ -156,6 +157,8 @@
|
|
|
const height = props.chartProps.height
|
|
|
const left = props.chartProps.left
|
|
|
const top = props.chartProps.top
|
|
|
+ const radiusMax = props.chartProps.radiusMax
|
|
|
+ const radiusMin = props.chartProps.radiusMin
|
|
|
const center_x = left + width / 2
|
|
|
const center_y = top + height / 2
|
|
|
|