修复SerieLabel在重新添加数据时可能不显示的问题

This commit is contained in:
monitor1394
2020-06-18 08:57:11 +08:00
parent 17c8b76c54
commit 715574b483
3 changed files with 5 additions and 1 deletions

View File

@@ -1,6 +1,7 @@
# 更新日志 # 更新日志
* (2020.06.18) 修复`SerieLabel`在重新添加数据时可能不显示的问题
* (2020.06.17) 增加`SerieData`可单独设置`SerieSymbol`#66 * (2020.06.17) 增加`SerieData`可单独设置`SerieSymbol`#66
* (2020.06.17) 修复`Check For Update``Unity 2018`部分版本报错的问题#63 * (2020.06.17) 修复`Check For Update``Unity 2018`部分版本报错的问题#63
* (2020.06.16) 增加`Serie``avoidLabelOverlap`参数避免饼图标签堆叠的情况#56 * (2020.06.16) 增加`Serie``avoidLabelOverlap`参数避免饼图标签堆叠的情况#56

View File

@@ -176,9 +176,11 @@ namespace XCharts
{ {
index = 0; index = 0;
labelObject = null; labelObject = null;
highlighted = false;
m_Name = string.Empty; m_Name = string.Empty;
m_Show = true;
m_Selected = false; m_Selected = false;
m_CanShowLabel = false; m_CanShowLabel = true;
m_EnableSymbol = false; m_EnableSymbol = false;
m_EnableLabel = false; m_EnableLabel = false;
m_EnableEmphasis = false; m_EnableEmphasis = false;

View File

@@ -435,6 +435,7 @@ namespace XCharts
for (int i = 0; i < m_Series.Count; i++) for (int i = 0; i < m_Series.Count; i++)
{ {
var serie = m_Series.list[i]; var serie = m_Series.list[i];
serie.index = i;
SerieHelper.UpdateCenter(serie, chartPosition, chartWidth, chartHeight); SerieHelper.UpdateCenter(serie, chartPosition, chartWidth, chartHeight);
for (int j = 0; j < serie.data.Count; j++) for (int j = 0; j < serie.data.Count; j++)
{ {