mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-18 14:30:10 +00:00
修复PieChart的Label无法自动更新的问题
This commit is contained in:
@@ -639,6 +639,19 @@ namespace XCharts
|
||||
}
|
||||
}
|
||||
|
||||
public void UpdateDataName(int index, string name)
|
||||
{
|
||||
if (index >= 0 && index < m_Data.Count)
|
||||
{
|
||||
var serieData = m_Data[index];
|
||||
serieData.name = name;
|
||||
if (serieData.label != null)
|
||||
{
|
||||
serieData.label.text = name == null ? "" : name;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 清除所有数据的高亮标志
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user