From b1561809939430bcd1f2f483e16dd888cbeece18 Mon Sep 17 00:00:00 2001 From: Jacob Rapoport Date: Sat, 26 Oct 2019 17:36:12 -0700 Subject: [PATCH] add UpdateThemeInfo API --- Runtime/API/BaseChart_API.cs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Runtime/API/BaseChart_API.cs b/Runtime/API/BaseChart_API.cs index 6ece0e4f..d9f2af90 100644 --- a/Runtime/API/BaseChart_API.cs +++ b/Runtime/API/BaseChart_API.cs @@ -416,6 +416,17 @@ namespace XCharts RefreshChart(); } + /// + /// Update chart theme info. + /// + /// info + public void UpdateThemeInfo(ThemeInfo info) + { + m_ThemeInfo = info; + UpdateTheme(m_ThemeInfo.theme); + } + + /// /// Whether series animation enabel. /// 启用或关闭起始动画。