mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-28 12:08:46 +00:00
修复SerieLabel在重新添加数据时可能不显示的问题
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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++)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user