修复SerieLabel设置color不生效的问题

This commit is contained in:
monitor1394
2019-11-16 20:15:35 +08:00
parent 38d9232136
commit dc3168747c
2 changed files with 3 additions and 0 deletions

View File

@@ -1,6 +1,7 @@
# 更新日志
* (2019.11.16) 修复`SerieLabel`设置`color`不生效的问题
* (2019.11.12) 发布`v1.0.5`版本
* (2019.11.12) 修复`2018.3`以下版本打开项目报错的问题
* (2019.11.12) 增加`IconStyle`子组件,优化`SerieData`的图标配置

View File

@@ -7,6 +7,7 @@
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
namespace XCharts
{
@@ -29,6 +30,7 @@ namespace XCharts
element = m_Stack.Pop();
element.name = name;
element.transform.SetParent(parent);
element.GetComponentInChildren<Text>().color = color;
ChartHelper.SetActive(element, true);
}
return element;