修复PieChart的Label无法自动更新的问题

This commit is contained in:
monitor1394
2019-08-14 08:52:28 +08:00
parent 09674add2a
commit 52ee1fe788
5 changed files with 99 additions and 10 deletions

View File

@@ -341,6 +341,7 @@ namespace XCharts
var isHighlight = (serieData.highlighted && serie.highlightLabel.show);
if (serie.label.show || isHighlight)
{
ChartHelper.SetActive(serieData.label.gameObject,true);
float rotate = 0;
bool isInsidePosition = serie.label.position == SerieLabel.Position.Inside;
if (serie.label.rotate > 0 && isInsidePosition)