重构Legend图例,改变样式,增加自定义图标等设置

This commit is contained in:
monitor1394
2020-02-26 22:52:57 +08:00
parent 8c1cc28776
commit 5cf7b5d571
22 changed files with 197836 additions and 73324 deletions

View File

@@ -67,6 +67,18 @@ namespace XChartsDemo
InitModuleButton();
}
void ResetParam()
{
var charts = transform.GetComponentsInChildren<BaseChart>();
foreach (var chart in charts)
{
chart.themeInfo.defaultLegendTextColor = ThemeInfo.GetColor("#514D4D");
chart.legend.itemWidth = 20f;
chart.legend.itemHeight = 10f;
chart.legend.textStyle.fontSize = 16;
}
}
void Update()
{
#if UNITY_EDITOR