add UpdateThemeInfo API

This commit is contained in:
Jacob Rapoport
2019-10-26 17:19:09 -07:00
parent caab0fb412
commit 754acd3fa1

View File

@@ -416,6 +416,19 @@ namespace XCharts
RefreshChart();
}
/// <summary>
/// Update chart theme info.
/// 切换图表主题。
/// </summary>
/// <param name="themeInfo">themeInfo</param>
public void UpdateThemeInfo(ThemeInfo themeInfo)
{
m_ThemeInfo = themeInfo;
UpdateTheme(m_ThemeInfo.theme);
}
/// <summary>
/// Whether series animation enabel.
/// 启用或关闭起始动画。