|
|
@@ -259,12 +259,15 @@ function getDistributionOption(
|
|
|
formatter: '{b}\n{d}%',
|
|
|
color: 'inherit',
|
|
|
fontSize: layout.distributionLabelFontSize,
|
|
|
+ distanceToLabelLine: 1, // 标签与引导线的距离
|
|
|
fontWeight: 500,
|
|
|
fontFamily: FONT_FAMILY
|
|
|
},
|
|
|
labelLine: {
|
|
|
show: true,
|
|
|
minTurnAngle: 90,
|
|
|
+ length: layout.compact ? 10 : 15, // 引导线第一段长度
|
|
|
+ length2: layout.compact ? 12 : 20, // 引导线第二段长度
|
|
|
lineStyle: {
|
|
|
width: 1.5,
|
|
|
opacity: 1
|