diff --git a/Assets/XCharts/Runtime/API/BaseChart_API.cs b/Assets/XCharts/Runtime/API/BaseChart_API.cs index 6ece0e4f..1f940a15 100644 --- a/Assets/XCharts/Runtime/API/BaseChart_API.cs +++ b/Assets/XCharts/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. /// 启用或关闭起始动画。