mirror of
https://github.com/XCharts-Team/XCharts.git
synced 2026-05-28 03:58:49 +00:00
重构Legend图例,改变样式,增加自定义图标等设置
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user