优化PieLabelTooltip触发时的表现

This commit is contained in:
monitor1394
2024-07-22 22:58:27 +08:00
parent 9e1dd027e9
commit 378fccf8b4
2 changed files with 2 additions and 1 deletions

View File

@@ -75,6 +75,7 @@ slug: /changelog
## master
* (2024.07.22) 优化`Pie``Label``Tooltip`触发时的表现
* (2024.07.21) 修复`Tooltip`在开启`DataZoom`时指示内容不准确的问题
* (2024.07.17) 修复`MarkLine``Label`在初始化时可能会闪烁的问题
* (2024.07.16) 优化`Axis``Time`时间轴时的`Tooltip`默认效果

View File

@@ -470,7 +470,7 @@ namespace XCharts.Runtime
var rad = Mathf.Deg2Rad * serieData.context.halfAngle;
var lineLength1 = ChartHelper.GetActualValue(labelLine.lineLength1, serie.context.outsideRadius);
var lineLength2 = ChartHelper.GetActualValue(labelLine.lineLength2, serie.context.outsideRadius);
var radius = lineLength1 + serie.context.outsideRadius - serieData.context.outsideRadius;
var radius = lineLength1;
var pos1 = startPosition;
var pos2 = pos1 + new Vector3(Mathf.Sin(rad) * radius, Mathf.Cos(rad) * radius);
var pos5 = labelLine.lineType == LabelLine.LineType.HorizontalLine