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