修复饼图添加数据时Label异常的问题

This commit is contained in:
monitor1394
2019-11-09 16:34:16 +08:00
parent ff4f682a7b
commit af5a7bfc59
3 changed files with 10 additions and 1 deletions

View File

@@ -387,6 +387,7 @@ namespace XCharts
protected void UpdateLabelPostion(Serie serie, SerieData serieData)
{
if (serieData.labelText == null) return;
var currAngle = serieData.runtimePieHalfAngle;
var currRad = currAngle * Mathf.Deg2Rad;
var offsetRadius = serieData.runtimePieOffsetRadius;